Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / src / xbt / backtrace_dummy.cpp
1 /* backtrace_dummy -- stubs of this module for non-supported archs          */
2
3 /* Copyright (c) 2008-2014. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #include "xbt/ex.h"
10 #include "src/xbt_modinter.h"
11 #include "src/xbt/ex_interface.h"
12
13 #include <xbt/backtrace.hpp>
14
15 /* Module creation/destruction */
16 void xbt_backtrace_preinit(void)
17 {
18 }
19
20 void xbt_backtrace_postexit(void)
21 {
22 }
23
24 /* create a backtrace in the given exception */
25 size_t xbt_backtrace_current(xbt_backtrace_location_t* loc, size_t count)
26 {
27   return 0;
28 }
29
30 int xbt_backtrace_no_malloc(void **array, int size) {
31   return 0;
32 }
33
34 namespace simgrid {
35 namespace xbt {
36
37 std::vector<std::string> resolveBacktrace(
38   xbt_backtrace_location_t const* loc, std::size_t count)
39 {
40   return std::vector<std::string>();
41 }
42
43 }
44 }