From: Jim Ingham <jingham@apple.com>
To: Bob Rossi <bob@brasko.net>
Cc: Alain Magloire <alain@qnx.com>, Eli Zaretskii <eliz@gnu.org>,
Andrew Cagney <cagney@gnu.org>,
nick@nick.uklinux.net, gdb-patches@sources.redhat.com
Subject: Re: MI handshaking
Date: Wed, 05 Jan 2005 02:01:00 -0000 [thread overview]
Message-ID: <903D3836-89F2-4080-B978-3CFD9868B623@apple.com> (raw)
In-Reply-To: <20050105015323.GC25675@white>
On Jan 4, 2005, at 5:53 PM, Bob Rossi wrote:
> On Tue, Jan 04, 2005 at 05:50:41PM -0800, Jim Ingham wrote:
>>
>> On Jan 4, 2005, at 5:36 PM, Bob Rossi wrote:
>>
>>>>
>>>> I've been very busy, so sorry about the delay.
>>>>
>>>> I'll look into what we discussed here and come up with something
>>>> that
>>>> fits all the new needs. Does Jim care about any of this?
>>
>> I didn't see this question in the original note. The answer is we
>> always ship the Developer Tools as a whole package, which includes
>> Xcode & gdb, and just ask for the mi version we know it supports
>> explicitly. We don't support taking one version of gdb & using it
>> under an older or newer version of Xcode. I don't see any plans for
>> us
>> to separate the two in the forseeable future. So while I do care
>> about
>> this in an abstract sort of way, I can't see us using it.
>>
>>
>>>
>>> Sorry about the delay.
>>>
>>> I plan on getting at least this patch into GDB. So, to recap, I neede
>>> to add
>>> a new mi-command that would output all of the info discovered during
>>> the
>>> handshaking phase. Is there anything else that needs to be added?
>>>
>>
>> Xcode does use the "does this command exist" mi command Jason
>> mentioned
>> in a few places. This was more for the convenience of the Xcode
>> developers - so they could ask me to implement a command, then sketch
>> out the implementation right away without having to wait for me to
>> implement it. That is the level of handshaking that we do.
>
> Thanks for the info, that sounds usefull. Is it available?
It's in the Darwin repository - you can get this by CVS or in tarball
form or on the web.
http://developer.apple.com/darwin/projects/darwin/
is a good place to start.
It's a trivial command (we call it mi-verify-command):
enum mi_cmd_result
mi_cmd_mi_verify_command (char *command, char **argv, int argc)
{
char *command_name = argv[0];
struct mi_cmd *cmd;
if (argc != 1)
{
error ("mi_cmd_mi_verify_command: Usage: MI_COMMAND_NAME.");
}
cmd = mi_lookup (command_name);
ui_out_field_string (uiout, "name", command_name);
if (cmd != NULL)
{
ui_out_field_string (uiout, "defined", "true");
ui_out_field_string (uiout, "implemented",
((cmd->cli != NULL) ||
(cmd->argv_func != NULL) ||
(cmd->args_func != NULL)) ? "true" : "false");
}
else
{
ui_out_field_string (uiout, "defined", "false");
}
return MI_CMD_DONE;
}
Jim
>
> Thanks,
> Bob Rossi
next prev parent reply other threads:[~2005-01-05 2:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200411120344.WAA24018@smtp.ott.qnx.com>
2004-11-12 22:59 ` Andrew Cagney
2004-11-13 9:01 ` Eli Zaretskii
2004-11-13 13:48 ` Bob Rossi
2004-11-17 16:05 ` Alain Magloire
2004-11-17 16:32 ` Bob Rossi
2004-11-18 1:35 ` Alain Magloire
[not found] ` <200411180135.UAA14730@smtp.ott.qnx.com>
2004-11-19 19:23 ` Bob Rossi
2005-01-05 1:36 ` Bob Rossi
2005-01-05 1:51 ` Jim Ingham
2005-01-05 1:53 ` Bob Rossi
2005-01-05 2:01 ` Jim Ingham [this message]
2005-01-05 2:34 ` Bob Rossi
2005-01-05 2:40 ` Bob Rossi
2004-11-17 16:05 ` Alain Magloire
[not found] <200411171514.KAA17361@smtp.ott.qnx.com>
2004-11-17 17:30 ` Eli Zaretskii
2004-11-12 9:54 Nick Roberts
-- strict thread matches above, loose matches on Subject: below --
2004-11-04 19:57 Bob Rossi
2004-11-04 19:59 ` Bob Rossi
2004-11-11 20:30 ` Andrew Cagney
2004-11-12 3:44 ` Alain Magloire
2004-11-04 21:28 ` Eli Zaretskii
2004-11-05 16:39 ` Bob Rossi
2004-11-05 17:50 ` Eli Zaretskii
2004-11-05 22:12 ` Bob Rossi
2004-11-06 10:12 ` Eli Zaretskii
2004-11-08 14:49 ` Bob Rossi
2004-11-08 15:01 ` 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=903D3836-89F2-4080-B978-3CFD9868B623@apple.com \
--to=jingham@apple.com \
--cc=alain@qnx.com \
--cc=bob@brasko.net \
--cc=cagney@gnu.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=nick@nick.uklinux.net \
/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