This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]