public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10389] New: script field of -break-info uses braces instead of brackets, violating MI syntax
@ 2009-07-14 10:12 dima at sphinx dot net dot ru
  2009-07-14 12:48 ` [Bug mi/10389] " dima at sphinx dot net dot ru
  0 siblings, 1 reply; 2+ messages in thread
From: dima at sphinx dot net dot ru @ 2009-07-14 10:12 UTC (permalink / raw)
  To: gdb-prs

When GDB/MI includes script information in `-break-info`, it violates
its own syntax by wrapping script field value in curly braces (like
for tuples) instead of brackets (like for lists, which should be the
case for script listing), for example:

script={"silent","xgetptr Vinitial_window_system","set $tem = ( struct
Lisp_Symbol *) $ptr","xgetptr $tem->xname","set $tem = (struct
Lisp_String *) $ptr","set $tem = (char *) $tem->data","if $tem[0] ==
'x' && $tem[1] == '\0'","break x_error_quitter","end","continue"}

Whereas according to GDB/MI Output Syntax tuples (enclosed in {}) may
contain only variable=value pairs.

In Emacs, I just replace braces with brackets and parse it like a list.
Not a serious bug, just a nuisance.

-- 
           Summary: script field of -break-info uses braces instead of
                    brackets, violating MI syntax
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: mi
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: dima at sphinx dot net dot ru
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10389

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug mi/10389] script field of -break-info uses braces instead of brackets, violating MI syntax
  2009-07-14 10:12 [Bug mi/10389] New: script field of -break-info uses braces instead of brackets, violating MI syntax dima at sphinx dot net dot ru
@ 2009-07-14 12:48 ` dima at sphinx dot net dot ru
  0 siblings, 0 replies; 2+ messages in thread
From: dima at sphinx dot net dot ru @ 2009-07-14 12:48 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From dima at sphinx dot net dot ru  2009-07-14 12:48 -------


*** This bug has been marked as a duplicate of 9659 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://sourceware.org/bugzilla/show_bug.cgi?id=10389

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-14 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 10:12 [Bug mi/10389] New: script field of -break-info uses braces instead of brackets, violating MI syntax dima at sphinx dot net dot ru
2009-07-14 12:48 ` [Bug mi/10389] " dima at sphinx dot net dot ru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).