* dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
authorTom Tromey <tromey@redhat.com>
Tue, 13 Jul 2010 21:06:48 +0000 (21:06 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 13 Jul 2010 21:06:48 +0000 (21:06 +0000)
objfile.

gdb/ChangeLog
gdb/dwarf2read.c

index 43de1d98ada373eda3e9ae49a8ecae054f6c1c64..cb0c6cd37a5ca9da5c44c8ce480b2ae078ecf24b 100644 (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.
index 0a8190dfd04dda09f0c323edaa9b7ab040670a01..6dcd24331638bf6bab0c7d31a93b9f38fef46e57 100644 (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));
 }