🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1086

Inconsistency on MI/2 interface

#1086
From: Doriano Blengino
Date: Tue, 01 Jun 2010 11:12
71 lines
4602 bytes
This is a multi-part message in MIME format.
--------------000105070800060407090801
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------000105070800060407090801
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I am using gdb version "GNU gdb 6.8-debian" from an IDE I am writing.<br>
<br>
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:<br>
<br>
<tt>^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"}]</tt><br>
<br>
<u>The "stack" value contains a list of "frame" values</u>. When I send
the command "stack-list-locals 1", the reply is:<br>
<br>
<tt>^done,locals=[{name="result",value="-1215643660"},{name="ONEOFPAR",value="-1215643660"},{name="RESULT",value="-1215643660"}]</tt><br>
<br>
<u>The "locals" value is a comma-separated list of unnamed values</u>.<br>
<br>
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.<br>
<br>
Thanks for your attention, and regards.<br>
<br>
Doriano Blengino<br>
<br>
</body>
</html>

--------------000105070800060407090801--
Technical Details
Message-ID: <mailman.0.1275483081.31003.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f0ead4270c,1a5c9cdc87458864,start
X-Google-Attributes: gidf0ead4270c,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!not-for-mail
From: Doriano Blengino <doriano.blengino@fastwebnet.it>
Newsgroups: gnu.gdb.bug
Subject: Inconsistency on MI/2 interface
Date: Tue, 01 Jun 2010 13:12:18 +0200
Lines: 72
Approved: bug-gdb@gnu.org
Message-ID: <mailman.0.1275483081.31003.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------000105070800060407090801"
X-Trace: usenet.stanford.edu 1275483082 20858 199.232.76.165 (2 Jun 2010 12:51:22 GMT)
X-Complaints-To: action@cs.stanford.edu
To: bug-gdb@gnu.org, gdb@sourceware.org
Envelope-to: bug-gdb@gnu.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; it-IT;
 rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Mailman-Approved-At: Wed, 02 Jun 2010 08:51:19 -0400
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>