From bb3fa9d02ef94efbcbed615d34874433a03fe9ca Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Jul 2010 21:06:48 +0000 Subject: [PATCH] * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to objfile. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 43de1d98ada..cb0c6cd37a5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-07-13 Tom Tromey + + * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to + objfile. + 2010-07-13 Tom Tromey * symfile.c (set_initial_language): Update. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 0a8190dfd04..6dcd2433163 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)); } -- 2.30.2