X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..c752f076366685d0b31efe4745774aa3a2ff7270:/src/xbt/backtrace_linux.c diff --git a/src/xbt/backtrace_linux.c b/src/xbt/backtrace_linux.c index 89e229f753..da489dc102 100644 --- a/src/xbt/backtrace_linux.c +++ b/src/xbt/backtrace_linux.c @@ -1,10 +1,8 @@ -/* $Id: ex.c 5173 2008-01-07 22:10:52Z mquinson $ */ - /* backtrace_linux - backtrace displaying on linux platform */ /* This file is included by ex.c on need (have execinfo.h, popen & addrline)*/ -/* Copyright (c) 2007 The SimGrid team */ -/* All rights reserved. */ +/* Copyright (c) 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -19,11 +17,11 @@ extern char **environ; /* the environment, as specified by the opengroup */ /* Module creation/destruction: nothing to do on linux */ -void xbt_backtrace_init(void) +void xbt_backtrace_preinit(void) { } -void xbt_backtrace_exit(void) +void xbt_backtrace_postexit(void) { } @@ -285,8 +283,8 @@ void xbt_ex_setup_backtrace(xbt_ex_t * e) /* Mask the bottom of the stack */ if (!strncmp("main", line_func, strlen("main")) || - !strncmp("xbt_thread_context_wrapper", line_func, - strlen("xbt_thread_context_wrapper"))) { + !strncmp("xbt_thread_context_wrapper", line_func, strlen("xbt_thread_context_wrapper"))|| + !strncmp("smx_ctx_sysv_wrapper",line_func,strlen("smx_ctx_sysv_wrapper"))) { int j; for (j = i + 1; j < e->used; j++)