public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* [delayed-symfile] [commit] Fix a crash on missing `.debug_aranges' section.
@ 2009-02-24 23:12 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2009-02-24 23:12 UTC (permalink / raw)
  To: Tom Tromey; +Cc: archer

commit 170e8fd8d1b89fe0ceb001b854701d04c5a18513

Regressed on gdb.base/type-opaque.exp.

	* dwarf2read.c (dwarf2_create_quick_addrmap): Do nothing if
	DWARF_ARANGES_SECTION is NULL.
---
 gdb/dwarf2read.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 29ff4d5..e8bde0c 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1296,6 +1296,9 @@ dwarf2_create_quick_addrmap (struct objfile *objfile)
   struct obstack temp_obstack;
   struct addrmap *mutable_map;
 
+  if (!dwarf_aranges_section)
+    return;
+
   baseaddr = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
 
   aranges_buffer = dwarf2_read_section_1 (objfile, NULL, dwarf_aranges_section);
-- 
1.6.0.6

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-24 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 23:12 [delayed-symfile] [commit] Fix a crash on missing `.debug_aranges' section Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).