summaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-30 20:42:11 +0000
committerTom Tromey <tromey@redhat.com>2013-01-30 20:42:11 +0000
commitbf056ec3c9f4f3ce83cb45ea310c3dd676c877ea (patch)
tree79f4889c1de8ab28e7d1a28416b79fdda585f155 /gdb/hppa-tdep.c
parentd3e3baae6bb3881df8adb6fdf52225c4987f5284 (diff)
downloadgdb-bf056ec3c9f4f3ce83cb45ea310c3dd676c877ea.tar.gz
* hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index c82ea552e99..837b10ca9cc 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -327,7 +327,7 @@ read_unwind_info (struct objfile *objfile)
struct hppa_unwind_info *ui;
struct hppa_objfile_private *obj_private;
- text_offset = ANOFFSET (objfile->section_offsets, 0);
+ text_offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
ui = (struct hppa_unwind_info *) obstack_alloc (&objfile->objfile_obstack,
sizeof (struct hppa_unwind_info));