This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Inconsistency on MI/2 interface
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 02 Jun 2010 11:30:26 +0400
- Subject: Re: Inconsistency on MI/2 interface
- Connect(): No such file or directory
- Followup-to: gmane.comp.gdb.devel
- References: <4C04ED36.4020400@fastwebnet.it>
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