From: Jason Molenda <jmolenda@apple.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFC patch mi-cmds.c table format (pedantic)
Date: Fri, 19 Mar 2004 00:34:00 -0000 [thread overview]
Message-ID: <3489FABC-793D-11D8-A2F0-000393D457E2@apple.com> (raw)
In-Reply-To: <4059FEA9.4030401@gnu.org>
On Mar 18, 2004, at 11:55 AM, Andrew Cagney wrote:
> First, have a look at:
> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-
> trail&database=gdb&pr=496
Ah, I hadn't seen that.
How do you envision the cli-mapped mi commands working (e.g. -gdb-set),
where files in the gdb/ directory are registering the commands?
>> the mi-cmds table changed from this format:
>> {"break-info", "info break %s", 0},
>> {"break-insert", 0, 0, mi_cmd_break_insert},
>> to this format:
>> { "break-info", { "info break", 1 }, NULL, NULL },
>> { "break-insert", { NULL, 0 }, 0, mi_cmd_break_insert},
>> As you can see here, the use of 0 vs NULL is inconsistent,
>
> That's cos it was converted using an emacs macro.
Emacs? Ah, well, I think we can all see the problem right there. :-)
>> ok, but perhaps don't bother with the trailing initializers.
OK I'll come up with a real/tested patch. The trailing initializers --
you don't mean this kind of change, do you?
>> - { "exec-step", { NULL, 0 }, mi_cmd_exec_step},
>> + { "exec-step", { NULL, 0 }, mi_cmd_exec_step, NULL},
I think you were talking about the final NULL entry.
> Should I ask what motived this?
Our GUI guys asked for -exec-abort to be implemented so I had cause to
look at our tasty-fresh-mid-merge sources for the first time, where
we're just picking up FSF gdb changes from the last year or so.
J
next prev parent reply other threads:[~2004-03-19 0:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-19 0:09 Jason Molenda
2004-03-17 23:47 ` Jason Molenda
2004-03-19 0:09 ` Andrew Cagney
2004-03-19 0:34 ` Jason Molenda [this message]
2004-03-19 15:12 ` Andrew Cagney
2004-03-19 0:09 ` Eli Zaretskii
2004-03-18 5:53 ` Eli Zaretskii
2004-03-19 0:09 ` Jason Molenda
2004-03-18 19:26 ` Jason Molenda
2004-03-19 14:36 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3489FABC-793D-11D8-A2F0-000393D457E2@apple.com \
--to=jmolenda@apple.com \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox