aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
commita99dad3d8972683d60088bfde8031c61596f2b94 (patch)
tree285d364f434fdf2bf9452082a97a20d69dc8b41c /gdb
parent3bff1ecdba50002f6b35276808dd7833156e7c07 (diff)
downloadgdb-a99dad3d8972683d60088bfde8031c61596f2b94.zip
gdb-a99dad3d8972683d60088bfde8031c61596f2b94.tar.gz
gdb-a99dad3d8972683d60088bfde8031c61596f2b94.tar.bz2
* hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/hppa-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 333c534..c15dd32 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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.
* utils.c (gnu_debuglink_crc32): Remove.
* utils.h (gnu_debuglink_crc32): Don't declare.
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index c82ea55..837b10c 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));