aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-13 21:06:48 +0000
committerTom Tromey <tromey@redhat.com>2010-07-13 21:06:48 +0000
commitbb3fa9d02ef94efbcbed615d34874433a03fe9ca (patch)
tree428551f8129255b87f166ec09c64d3827e000402 /gdb/dwarf2read.c
parentdd78685836dcecb25b85b2166b2b5c04b54cdd14 (diff)
downloadgdb-bb3fa9d02ef94efbcbed615d34874433a03fe9ca.zip
gdb-bb3fa9d02ef94efbcbed615d34874433a03fe9ca.tar.gz
gdb-bb3fa9d02ef94efbcbed615d34874433a03fe9ca.tar.bz2
* dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
objfile.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 0a8190d..6dcd243 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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));
}