Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Kwok Cheung Yeung <kcy@codesourcery.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Add the "-info-os" command to MI
Date: Tue, 29 Nov 2011 19:01:00 -0000	[thread overview]
Message-ID: <m3k46in47h.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4ECECFEB.8020807@codesourcery.com> (Kwok Cheung Yeung's message	of "Thu, 24 Nov 2011 23:14:51 +0000")

>>>>> ">" == Kwok Cheung Yeung <kcy@codesourcery.com> writes:

>> I've now created a new mi_cmd_info_os function to service -info-os,
>> which delegates to info_osdata_command in osdata.c. This is the same
>> backend that 'info os' in the CLI uses, but at least now we don't go
>> through the CLI code.
>> info_osdata_command now needs to be non-static.

Thanks for doing this.

>> gdb/
>> 	* Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
>> 	(SUBDIR_MI_SRCS): Add mi-cmd-info.c.
>> 	(mi-cmd-info.o): New rule.
>> 	* osdata.h: Add declaration for info_osdata_command.
>> 	* osdata.c (info_osdata_command): Change to non-static.
>> 	* mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
>> 	* mi/mi-cmd-info.c: New.

Two nits...

>> +  { "info-os", { NULL, 0 }, mi_cmd_info_os},

mi_cmd_info_os doesn't seem to be declared anywhere.
I think this ought to cause a compilation error.

>> +      info_osdata_command (argv [0], 0);

No space before the '['.

Tom


  parent reply	other threads:[~2011-11-29 19:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13 15:52 Kwok Cheung Yeung
2011-10-13 16:13 ` Eli Zaretskii
2011-11-23 23:37   ` Kwok Cheung Yeung
2011-12-06 18:53     ` Pedro Alves
2011-10-21 20:53 ` Tom Tromey
2011-10-27  0:24   ` Stan Shebs
2011-10-27 16:45     ` Tom Tromey
2011-11-24 23:15   ` Kwok Cheung Yeung
2011-11-25 11:56     ` Eli Zaretskii
2011-11-29 19:01     ` Tom Tromey [this message]
2011-11-29 23:18       ` Kwok Cheung Yeung
2011-11-30 14:47         ` Tom Tromey

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=m3k46in47h.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=kcy@codesourcery.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