Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Ingham <jingham@apple.com>
To: gdb@sources.redhat.com
Subject: Re: gdb/mi
Date: Thu, 11 Jul 2002 10:47:00 -0000	[thread overview]
Message-ID: <4242089A-94F6-11D6-AD3A-00039379E320@apple.com> (raw)
In-Reply-To: <1026391983.21348.ezmlm@sources.redhat.com>

>
>
> On Wed, 10 Jul 2002, Greg Watson wrote:
>
>> 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. :-)
>
> I've already fixed this in my branch, based on Apple's work:
>
> $ ./gdb --i=mi
> ~"GNU gdb 2002-06-19-cvs\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 \"i686-pc-linux-gnu\"."
> ~"\n"
> (gdb)
>
> We should see these changes rolling into mainline sources sometime in 
> the
> coming weeks. I've still a few anomalies to hammer out.

Cool!

>
>> 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?
>
> Yes, async on remotes only. I haven't even attempted to do this work 
> yet.
> I figure sync is good enough to get my MI project moving.

We use the async mode for the MacOS X native target.  It took a bit of 
thinking to get this right, partly because MacOS X itself is a little 
complicated (you have to talk both to mach & to the bsd layer...) and 
because there were many aspects of the async support that weren't fully 
worked out (like how exactly are user-defined & breakpoint commands 
going to work in async gdb...).  I also am pretty sure I broke remote 
async targets, there were some hacks involving who had the terminal in 
the remote async code which were wrong I am pretty sure (and the 
comments in the code indicated the original author suspected that as 
well) and kept our native async support from working.

But if you are interested, all the code is in the Darwin repository (or 
in opendarwin for those who would prefer not to give Apple their e-mail 
address)...

>
>> 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?
>
> If you want to help, we could use the help. I don't think anyone is
> even thinking about how to do this yet, so almost anything is better 
> than
> nothing. The solution to this problem is almost certainly going to 
> differ
> from system to system, but we've got to start somewhere IMO.

Not sure here.  We switched ProjectBuilder over to using a separate tty 
for program output, it wasn't that hard to do, and it makes life just 
SO much easier.  So while it would be great if somebody was going to 
put the work into separating the output, given how easy the workaround 
is, it would be way way down on my list of things to do...

Jim
--
Jim Ingham                                   jingham@apple.com
Developer Tools - gdb
Apple Computer


       reply	other threads:[~2002-07-11 17:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1026391983.21348.ezmlm@sources.redhat.com>
2002-07-11 10:47 ` Jim Ingham [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
2002-07-05 13:27 gdb/mi Greg Watson
2002-07-10 14:40 ` gdb/mi Andrew Cagney
2002-07-10 16:10   ` gdb/mi Greg Watson
2002-07-10 16:47     ` gdb/mi Keith Seitz

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=4242089A-94F6-11D6-AD3A-00039379E320@apple.com \
    --to=jingham@apple.com \
    --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