Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Greg Watson <g.watson@computer.org>
To: gdb@sources.redhat.com
Subject: Re: gdb/mi
Date: Wed, 10 Jul 2002 16:10:00 -0000	[thread overview]
Message-ID: <p05111718b9525ee971d9@[10.0.1.2]> (raw)
In-Reply-To: <3D2CA9E4.8030209@ges.redhat.com>

>>I have some questions/comments about gdb/mi if someone could help out:
>>
>>1. I've configure gdb 5.2 with --enable-gdbmi and --with-uiout. 
>>However when I run "gdb --interpreter=mi" the initial messages are 
>>not in console stream output format, but later messages are. Is 
>>this by design?
>
>You mean the (C) startup message?  No one has thought about that.
>(BTW, you no longer need to explicitly configure in GDB/MI, since 
>5.2, it has been enabled by default).

Seems like Apple must have already fixed this in the MacOS X version 
(which is 5.0). Here is the output from 'gdb -i mi' to prove it. :-)

~"GNU gdb 5.0 (Thu Jun 20 15:19:17 GMT 2002)\n"
~"Copyright 2002 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, 
and you are\n"
~"welcome to change it and/or distribute copies of it under certain 
conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB.  Type \"show warranty\" 
for details.\n"
~"This GDB was configured as \"powerpc-apple-darwin5.5\".\n"
~"Setting up the environment for debugging gdb.\n"

>>2. When I run a target program, it's output is not in target stream 
>>output format. Should this be the case?
>
>It depends.
>
>This is a problem that has been discussed before on this list.  If 
>the target program is native then GDB would need to do something 
>like play with pty's or start a separate terminal program.  If the 
>target is remote then the output being encapsulated depends on 
>support for this in the remote protocol.

Oh damn! I thought you'd already done the hard stuff and I could get 
rid of the pty code from my front end. I guess that means that 
asynchronous commands will only work with remote targets as well? Can 
you point me at the approximate archive so I can review this 
discussion?

>
>>3. The gdb/mi output syntax in the manual does not quite reflect 
>>reality. In particular the 'console-stream-output', 
>>'target-stream-output' and 'log-stream-output' rules should be 
>>suffixed with 'nl'.  Also, I've observed an 'out-of-band-record' 
>>appearing after a 'result-record' but the syntax doesn't allow 
>>this. I guess it should be something like:
>>
>>output -> (out-of-band-record)* [result-record] 
>>(out-of-band-record)* "(gdb)" nl
>
>Yes (but I'll fix it a different way).  Good catch.

If you're going to allow general program output to be intermingled 
with the mi output then this should probably also be reflected in the 
syntax.

Do you know if there are any plans to handle native output within the 
mi syntax, or would you be interested in someone adding this 
functionality, or is it likely to be too difficult?

Cheers,

Greg




  reply	other threads:[~2002-07-10 23:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05 13:27 gdb/mi Greg Watson
2002-07-10 14:40 ` gdb/mi Andrew Cagney
2002-07-10 16:10   ` Greg Watson [this message]
2002-07-10 16:47     ` gdb/mi Keith Seitz
     [not found] <1026391983.21348.ezmlm@sources.redhat.com>
2002-07-11 10:47 ` gdb/mi Jim Ingham
2003-02-21  1:20 GDB/MI Nick Roberts
2003-02-21  1:45 ` GDB/MI Andrew Cagney
2003-02-21 20:30   ` GDB/MI Nick Roberts
2003-02-22 20:02   ` GDB/MI Eli Zaretskii
2003-02-26 15:03     ` GDB/MI Andrew Cagney

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='p05111718b9525ee971d9@[10.0.1.2]' \
    --to=g.watson@computer.org \
    --cc=gdb@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