|
From: | Doriano Blengino |
Subject: | Inconsistency on MI/2 interface |
Date: | Tue, 01 Jun 2010 13:12:18 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; it-IT; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17 |
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... wouldn't it be better to use a more uniform syntax? In the second case, a form like [local={name="..",value="..."},local={}...] would be uniform and open to future additions. Thanks for your attention, and regards. Doriano Blengino |
[Prev in Thread] | Current Thread | [Next in Thread] |