Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move the backtrace code out of the exception code
[simgrid.git] / 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)
@@ -19,15 +19,23 @@ void xbt_backtrace_postexit(void)
 }
 
 /* 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