public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* [delayed-symfile] [commit] Fix a regression on delayed retrieving of the unwinding debug info.
@ 2009-02-24 23:14 Jan Kratochvil
  2009-02-25  1:47 ` Tom Tromey
  2010-07-14 20:32 ` [delayed-symfile] [commit] Fix a regression on CFI without DIE [Re: [delayed-symfile] [commit] Fix a regression on delayed retrieving of the unwinding debug info.] Jan Kratochvil
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Kratochvil @ 2009-02-24 23:14 UTC (permalink / raw)
  To: Tom Tromey; +Cc: archer

commit 6a37c2b9962258ecf9299cc34a650e64a06acaa5

There was a regression on gdb.base/savedregs.exp.

quick_addrmap/require_partial_symbols should be used even for the unwind debug
info checking as its load has been also delayed by this branch.

Disputable is whether the delayed reading of partial symtabs and unwind info
should not be split in half and read separately on their specific demand.
Assuming their current load together has been decided for the GDB code
simplicity and it has no real performance impact.

	* dwarf2-frame.c: Include addrmap.h.
	(dwarf2_frame_find_fde): Check quick_addrmap, call
	require_partial_symbols.
---
 gdb/dwarf2-frame.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index ce11d89..eaa6a13 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -38,6 +38,7 @@
 
 #include "complaints.h"
 #include "dwarf2-frame.h"
+#include "addrmap.h"
 
 struct comp_unit;
 
@@ -1499,6 +1500,14 @@ dwarf2_frame_find_fde (CORE_ADDR *pc)
       struct dwarf2_fde *fde;
       CORE_ADDR offset;
 
+      if (objfile->quick_addrmap)
+	{
+	  if (!addrmap_find (objfile->quick_addrmap, *pc))
+	    continue;
+	}
+      /* FIXME: Read-in only .debug_frame/.eh_frame without .debug_info?  */
+      require_partial_symbols (objfile);
+
       fde = objfile_data (objfile, dwarf2_frame_objfile_data);
       if (fde == NULL)
 	continue;
-- 
1.6.0.6

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-14 21:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 23:14 [delayed-symfile] [commit] Fix a regression on delayed retrieving of the unwinding debug info Jan Kratochvil
2009-02-25  1:47 ` Tom Tromey
2009-02-25 14:47   ` Jan Kratochvil
2009-02-25 16:11   ` Jan Kratochvil
2010-07-14 20:32 ` [delayed-symfile] [commit] Fix a regression on CFI without DIE [Re: [delayed-symfile] [commit] Fix a regression on delayed retrieving of the unwinding debug info.] Jan Kratochvil
2010-07-14 21:20   ` Tom Tromey

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).