patch for info threads problem with target arm-elf (PR 1199).
Andrea Michelotti
amichelotti@ipitec.it
Mon Jul 28 10:17:00 GMT 2003
Daniel Jacobowitz wrote:
>On Fri, Jul 25, 2003 at 10:10:40PM -0400, Andrew Cagney wrote:
>
>
>>>- /* Avoid coredumps which would happen if we tried to access a NULL
>>>- deprecated_selected_frame. */
>>>- if (!target_has_stack)
>>>- error ("No stack.");
>>>+ /* Check that there really is a frame. This happens when a simulator
>>>+ is connected but not loaded or running, for instance. */
>>>+ if (saved_frame_level < 0)
>>>+ error ("No frame.");
>>>
>>>
>>This would only happen to old architectures (legacy_get_prev_frame).
>>With new architectures (get_prev_frame), frame creation is so lazy that
>>an inner most frame is (hopefully?) always created. Can you make this
>>check conditional on legacy_frame_p?
>>
>>
>
>Ah, that's the bit I was missing. Thanks, sounds reasonable to me.
>
>
>
I've tried the patch, it's ok.
thanks.
ciao
Andrea.
--------------------------------------
Andrea Michelotti
HW/SW Co-Design Manager
IPITEC (ATMEL)
More information about the Gdb-patches
mailing list