From: Nick Roberts <nickrob@snap.net.nz>
To: Pankaj Pal <pankaj_pal@mentor.com>
Cc: gdb@sources.redhat.com
Subject: Re: Query regarding GDB-Mi interface
Date: Fri, 01 Aug 2008 23:34:00 -0000 [thread overview]
Message-ID: <18579.40281.652068.445410@kahikatea.snap.net.nz> (raw)
In-Reply-To: <488FF89A.3020609@mentor.com>
> We have a debugging front end which uses gdb-6.6 We were using
> annotations till now but
> as annotations have been made obsolete we are shifting to MI
> interpreter. I have a few queries regarding MI.
>
> 1) Why few commands are still un implemented like attach, info program
> etc. Is there any plan to support them.
I think the plan is only to implement commands as they are needed. Probably
many of the commands listed in the MI section don't need to be implemented.
> 2) Is there any way to stop the MI interpreter like we have with
> annotations (set annotate 0 whenever we wish to do so).
No. Annotations just markup the output and are easy to turn off. MI uses
a different interpreter, which is a more fundamental change and allows
a different set of input commands.
Apple GDB, however, does allow switching of interpreters, e.g MI to CLI
(normal output) and it may be useful for FSF GDB to do this too.
> 3) We need 'info line *addr' command when we are shifting to MI from
> annotations. I have been doing few changes in
> the gdb source code to get this information (source file and line
> number), however annotations have this information.
> I would like to know is there any known issue due to which this
> command has not been implemented.
MI will accept CLI commands but you need to parse the output, e.g.,
info line
&"info line\n"
~"Line 146 of \"myprog.c\" starts at address 0x80486e9 <main>\n"
~" and ends at 0x8048706 <main+29>.\n"
^done
(gdb)
However, it doen't print the annotation that "info line" generates with
annotations if you need that.
--
Nick http://www.inet.net.nz/~nickrob
next parent reply other threads:[~2008-08-01 23:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <488FE9AF.5060008@mentor.com>
[not found] ` <488FF89A.3020609@mentor.com>
2008-08-01 23:34 ` Nick Roberts [this message]
2008-07-30 6:53 Pankaj Pal
2008-07-30 7:07 ` Vladimir Prus
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=18579.40281.652068.445410@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb@sources.redhat.com \
--cc=pankaj_pal@mentor.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