Adding -file-list-exec-source-file command to GDB/MI

Andrew Cagney ac131313@redhat.com
Mon Mar 31 18:52:00 GMT 2003


> On Mon, Mar 31, 2003 at 09:31:36AM -0500, Andrew Cagney wrote:
> 
>> 
> 
>> > -stack-list-frames
>> > ^done,stack=[frame={level="0",addr="0x00001dc8",fp="0xbffffca0",func="foo",file="f/a.c",line="3",dir="/tmp/e/"}, [...]
> 
>> 
>> [...]
>> 
> 
>> > The other difference is the addition of FP here -- our UI uses the
>> > PC and FP to uniquely identify stack frames
> 
>> 
>> That doesn't work.  The MI needs to be updated so that it uses frame 
>> ID's when identifying frames.
> 
> 
> Uh, we have a bit of an existance proof that it does--in the form
> of a PB+GDB that have been shipping like this for over a year.

Unfortunatly, that doesn't mean that it works:

- it doesn't handle architectures with multiple stacks (ia64)
- it relies on $fp being constant through out the lifetime of the frame 
(including the prologue) and that is definitly not true
- I suspect it is also making similar assumptions about $pc, it should 
be using func.

Andrew



More information about the Gdb-patches mailing list