From: Tom Tromey Date: Wed, 30 Jan 2013 20:42:11 +0000 (+0000) Subject: * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a99dad3d8972683d60088bfde8031c61596f2b94;p=binutils-gdb.git * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 333c53459ac..c15dd327741 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-01-30 Tom Tromey + + * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0". + 2013-01-30 Tom Tromey * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32. 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));