A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the backtrace code out of the exception code
[simgrid.git]
/
src
/
xbt
/
backtrace_dummy.cpp
diff --git
a/src/xbt/backtrace_dummy.c
b/src/xbt/backtrace_dummy.cpp
similarity index 73%
rename from
src/xbt/backtrace_dummy.c
rename to
src/xbt/backtrace_dummy.cpp
index
65a4fda
..
8d5c57a
100644
(file)
--- a/
src/xbt/backtrace_dummy.c
+++ b/
src/xbt/backtrace_dummy.cpp
@@
-19,15
+19,23
@@
void xbt_backtrace_postexit(void)
}
/* create a backtrace in the given exception */
}
/* create a backtrace in the given exception */
-
void xbt_backtrace_current(xbt_ex_t * e
)
+
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;
}
}
-/* prepare a backtrace for display */
-void xbt_ex_setup_backtrace(xbt_ex_t * e)
+namespace simgrid {
+namespace xbt {
+
+std::vector<std::string> resolveBacktrace(
+ xbt_backtrace_location_t* loc, std::size_t count)
{
{
+ return [};]
}
}
-int xbt_backtrace_no_malloc(void **array, int size) {
- return 0;
}
}
+}
\ No newline at end of file