* hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".

This commit is contained in:
Tom Tromey 2013-01-30 20:42:11 +00:00
parent 3bff1ecdba
commit a99dad3d89
2 changed files with 5 additions and 1 deletions

View 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.

View 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));