From 52df7f5eb437144aa996f25f7bcfbcce0b879eca Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Wed, 16 Aug 2000 23:02:40 +0000 Subject: [PATCH] Change the stack trace format printed by the Boehm GC on Linux so it can be post-processed by addr2line. r=wade git-svn-id: svn://10.0.0.236/trunk@76477 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gc/boehm/misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mozilla/gc/boehm/misc.c b/mozilla/gc/boehm/misc.c index e28a851359d..a39e01dce19 100644 --- a/mozilla/gc/boehm/misc.c +++ b/mozilla/gc/boehm/misc.c @@ -878,10 +878,9 @@ void GC_print_callers(struct callinfo info[NFRAMES]) GC_err_printf0("Callers at location:\n"); while (current_tree && current_tree->pc) { if (dladdr(current_tree->pc, &dlinfo) >= 0) { - GC_err_printf4("%s[%s,0x%08X,0x%08X]\n", dlinfo.dli_sname, dlinfo.dli_fname, current_tree->pc, dlinfo.dli_saddr); + int offset = (int)current_tree->pc - (int)dlinfo.dli_fbase; + GC_err_printf3("%s[%s +0x%08X]\n", dlinfo.dli_sname, dlinfo.dli_fname, offset); } else { - /* pc2name((word)current_tree->pc, symbol_name, sizeof(symbol_name)); */ - /* MWUnmangle(symbol_name, unmangled_name, sizeof(unmangled_name)); */ GC_err_printf2("%s(%08X)\n", "(unknown)", current_tree->pc); } current_tree = current_tree->parent;