return;
}
- (*fun_set_options) ((*fun_get_options) () |
+ fun_set_options(fun_get_options() |
SYMOPT_LOAD_LINES | SYMOPT_DEFERRED_LOADS);
- if (!(*fun_initialize) (process_handle, 0, 1)) {
+ if (!fun_initialize(process_handle, 0, 1)) {
FreeLibrary(hlp_dbg_instance);
hlp_dbg_instance = NULL;
}
if (!hlp_dbg_instance)
return;
- if ((*fun_cleanup) (process_handle))
+ if (fun_cleanup(process_handle))
FreeLibrary(hlp_dbg_instance);
hlp_dbg_instance = NULL;
int i;
char **backtrace_syms;
- xbt_assert0(e
- && e->used,
- "Backtrace not setup yet, cannot set it up for display");
+ xbt_assert(e, "Backtrace not setup yet, cannot set it up for display");
+
+ if (!e->used)
+ return;
backtrace_syms = backtrace_symbols(e->bt, e->used);
e->bt_strings = NULL;
/* parse the output and build a new backtrace */
e->bt_strings = xbt_new(char *, e->used);
-
for (i = 0; i < e->used; i++)
e->bt_strings[i] = backtrace_syms[i];
if (NULL != stack_frame) {
- if ((*fun_get_sym_from_addr)
+ if (fun_get_sym_from_addr
(process_handle, stack_frame->AddrPC.Offset, &offset, pSym)) {
- if ((*fun_get_line_from_addr)
+ if (fun_get_line_from_addr
(process_handle, stack_frame->AddrPC.Offset, &offset,
&line_info)) {
strings[pos] =