summaryrefslogtreecommitdiffstats
path: root/runtime/unwind.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2008-09-10 17:43:42 +0200
committerMark Wielaard <mjw@redhat.com>2008-09-10 17:43:42 +0200
commit675fb1ddeec8cd22e17ab989f8a813a375ae6226 (patch)
tree75909a476c3dbeef1ee440cf8f78f68c6ed31a01 /runtime/unwind.c
parente0c72583f8fb7a61d052c58b8e9c6df0925bc234 (diff)
downloadsystemtap-steved-675fb1ddeec8cd22e17ab989f8a813a375ae6226.tar.gz
systemtap-steved-675fb1ddeec8cd22e17ab989f8a813a375ae6226.tar.xz
systemtap-steved-675fb1ddeec8cd22e17ab989f8a813a375ae6226.zip
Rename _stp_module module_base output to dwarf_module_base and document.
Diffstat (limited to 'runtime/unwind.c')
-rw-r--r--runtime/unwind.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/unwind.c b/runtime/unwind.c
index db8ae664..bc8a93dc 100644
--- a/runtime/unwind.c
+++ b/runtime/unwind.c
@@ -550,7 +550,9 @@ static int processCFI(const u8 *start, const u8 *end, unsigned long targetLoc, s
return result && ptr.p8 == end && (targetLoc == 0 || state->label == NULL);
}
-// This is an address inside a module, adjust.
+// If this is an address inside a module, adjust for section relocation
+// and the elfutils base relocation done during loading of the .dwarf_frame
+// in translate.cxx.
static unsigned long
adjustStartLoc (unsigned long startLoc,
struct _stp_module *m,
@@ -560,7 +562,7 @@ adjustStartLoc (unsigned long startLoc,
{
startLoc = _stp_module_relocate (m->name, s->name,
startLoc);
- startLoc -= m->module_base;
+ startLoc -= m->dwarf_module_base;
}
return startLoc;
}