* dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to

objfile.
This commit is contained in:
Tom Tromey 2010-07-13 21:06:48 +00:00
parent dd78685836
commit bb3fa9d02e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-07-13 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
objfile.
2010-07-13 Tom Tromey <tromey@redhat.com>
* symfile.c (set_initial_language): Update.

View File

@ -13108,7 +13108,7 @@ dwarf2_per_cu_offset_size (struct dwarf2_per_cu_data *per_cu)
CORE_ADDR
dwarf2_per_cu_text_offset (struct dwarf2_per_cu_data *per_cu)
{
struct objfile *objfile = per_cu->psymtab->objfile;
struct objfile *objfile = per_cu->objfile;
return ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
}