diff options
-rw-r--r-- | gdb/dtrace-probe.c | 2 | ||||
-rw-r--r-- | gdb/stap-probe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c index ea4999c..9aeefb6 100644 --- a/gdb/dtrace-probe.c +++ b/gdb/dtrace-probe.c @@ -684,7 +684,7 @@ dtrace_probe::is_enabled () const CORE_ADDR dtrace_probe::get_relocated_address (struct objfile *objfile) { - return this->get_address () + objfile->data_section_offset (); + return this->get_address () + objfile->text_section_offset (); } /* Implementation of the get_argument_count method. */ diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 2310fde..c4b24df 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -1330,7 +1330,7 @@ stap_probe::parse_arguments (struct gdbarch *gdbarch) static CORE_ADDR relocate_address (CORE_ADDR address, struct objfile *objfile) { - return address + objfile->data_section_offset (); + return address + objfile->text_section_offset (); } /* Implementation of the get_relocated_address method. */ |