X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c329ffaab94a1ec5eeb3f24a8da70790c79af923..528fa2ce6be027b5428d122666ffc37706155449:/src/xbt/backtrace_dummy.cpp diff --git a/src/xbt/backtrace_dummy.cpp b/src/xbt/backtrace_dummy.cpp new file mode 100644 index 0000000000..8d5c57aab1 --- /dev/null +++ b/src/xbt/backtrace_dummy.cpp @@ -0,0 +1,41 @@ +/* backtrace_dummy -- stubs of this module for non-supported archs */ + +/* Copyright (c) 2008-2014. 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. */ + +#include "xbt/ex.h" +#include "src/xbt_modinter.h" + +/* Module creation/destruction */ +void xbt_backtrace_preinit(void) +{ +} + +void xbt_backtrace_postexit(void) +{ +} + +/* create a backtrace in the given exception */ +size_t xbt_backtrace_current(xbt_backtrace_location_t* loc, size_t count) +{ + return 0; +} + +int xbt_backtrace_no_malloc(void **array, int size) { + return 0; +} + +namespace simgrid { +namespace xbt { + +std::vector resolveBacktrace( + xbt_backtrace_location_t* loc, std::size_t count) +{ + return [};] +} + +} +} \ No newline at end of file