* hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
authorTom Tromey <tromey@redhat.com>
Wed, 30 Jan 2013 20:42:11 +0000 (20:42 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 30 Jan 2013 20:42:11 +0000 (20:42 +0000)
gdb/ChangeLog
gdb/hppa-tdep.c

index 333c53459acfe308d8189e051899ad35395a15d1..c15dd32774198df6d054cbb53bc9dd8319dc0d4e 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-30  Tom Tromey  <tromey@redhat.com>
+
+       * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
+
 2013-01-30  Tom Tromey  <tromey@redhat.com>
 
        * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
index c82ea552e996f09e3203232fb6b0f000bcbc6202..837b10ca9cc24d1e59ebc19c59f3da3a0d2a911e 100644 (file)
@@ -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));