This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] dwarf2loc, guard against null
On Mon, Sep 17, 2007 at 03:10:52PM +0200, Jerome Guitton wrote:
> When the inferior is dead, target_has_registers (resp.
> target_has_memory, target_has_stack) should be false and
> deprecated_safe_get_selected_frame should return NULL. This is the bug
> in my vxWorks-specific backend (I should pop some target vector at
> mourn_inferior, I guess).
Yes, that's probably it. If you stay connected to the target after
mourning, you may want to look at the new target_mark_exited. I
haven't had time to contribute the target extended-remote bits that
go along with that yet but soon, soon...
> Now back to the original problem: assertion or error? I guess that the
> question is: in which cases get_frame_block can return NULL?
Assertion, please. If we found a frame-relative symbol then it was
certainly within some function associated with a frame. If we can't
find the frame, something has gone wrong.
--
Daniel Jacobowitz
CodeSourcery