Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* crasher in dwarf2loc.c
@ 2003-04-23  0:50 Michael Snyder
  2003-04-23  9:37 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2003-04-23  0:50 UTC (permalink / raw)
  To: drow, gdb-patches

Hey Daniel, 

I've got a core dump coming from dwarf_expr_frame_base.
First you call get_frame_function, and then you immediately
use its return value.  But get_frame_function can return zero, 
so I think you need to check for zero before using it.

Michael

PS: more details:  get_frame_block returns zero, because
frame_address_in_block returns a pc that is not in any block.

The crash occurs while running recurse.exp, when we have a
watchpoint on a local variable in an inner frame, and we 
continue -- so I don't know the exact context; but I'm 
willing to bet that it is trying to evaluate the local
variable after the stack frame has been destroyed.


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

end of thread, other threads:[~2003-06-21 17:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23  0:50 crasher in dwarf2loc.c Michael Snyder
2003-04-23  9:37 ` Daniel Jacobowitz
2003-04-25  1:47   ` Michael Snyder
2003-06-21 17:27     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox