This is the mail archive of the gdb@sourceware.org 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: Inconsistency on MI/2 interface


Doriano Blengino wrote:

> Hi,
> 
> I am using gdb version "GNU gdb 6.8-debian" from an IDE I am writing.
> 
> I noticed what seems to me an inconsistency in replies using MI/2. If I
> send then command "stack-list-frames", the reply is something like:
> 
> 
^done,stack=[frame={level="0",addr="0x080533d2",func="ONEOFPAR",file="xfpide.pas",fullname="/mnt/data/Appl/linux/fpcgui/xfpide.pas",line="44"},frame={level="1",addr="0x08053923",func="main",file="xfpide.pas",fullname="/mnt/data/Appl/linux/fpcgui/xfpide.pas",line="145"}]
> 
> _The "stack" value contains a list of "frame" values_. When I send the
> command "stack-list-locals 1", the reply is:
> 
> ^done,locals=[{name="result",value="-1215643660"},{name="ONEOFPAR",value="-1215643660"},
{name="RESULT",value="-1215643660"}]
> 
> _The "locals" value is a comma-separated list of unnamed values_.
> 
> This is not an important issue, but I would like to understand why the
> two cases use different structures... 

The reasons are purely historic, and this cannot be changed due to backward
compatibility concerns.

- Volodya



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