This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: symbolic debug of loadable modules with kgdb light
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Caz Yokoyama <cazyokoyama at gmail dot com>, 'Pedro Alves' <pedro at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Tue, 22 Sep 2009 21:39:17 -0400
- Subject: Re: symbolic debug of loadable modules with kgdb light
- References: <!&!GAAAAAAAAABdM4dVxRoXQaLE4hMch+sCwoAAABgAAAAAAAAAXTOHVcUaF0GixOITHIfrAsT+SQAAAAAAEAAAALUY4hYH8mJOgogphhqVzEU3AAAAUkU6IHN5bWJvbGljIGRlYnVnIG9mIGxvYWRhYmxlIG1vZHVsZXMgd2l0aCBrZ2RiIGxpZ2h0AA==@caztech.com> <m3hc0enk36.fsf@fleche.redhat.com> <409D09C1E1964C5EAFF5EFBAD6E936ED@xpjpn> <200905152223.58241.pedro@codesourcery.com> <20090515213410.GA10064@caradoc.them.org> <8AA4B846934A4A9081F778449B96F416@xpjpn> <4A0DE914.1050800@vmware.com> <D4F6E14FCE904FF5813F6BD1615A3934@xpjpn> <20090923004802.GA20859@adacore.com>
On Tue, Sep 22, 2009 at 05:48:02PM -0700, Joel Brobecker wrote:
> Pedro, Daniel, or anyone with experience in remote.c,
>
> I'd love your feedback on this patch... Especially the part
> that sends an interrupt after having established the connection
> with the remote agent if the interrupt is set to BREAK+g...
> See below.
I have no particular comments. But it sounds like these are two
orthogonal settings.
> However, this being said, I really don't know about this change.
> It seems to me that this part should not be controlled by the setting
> that you're modifying, but by another setting. At the very least.
> In fact, why do you need this at all? Can't your remote agent achieve
> the same effect as you've established the connection???
Hey, that sounds familiar.
You can't acheive this in an agent, because we're talking about serial
consoles here - there's no other way for the agent to know there's a
debugger attached.
This sounds more like "set remote interrupt-sequence break-g" and
"set remote interrupt-after-connection on".
--
Daniel Jacobowitz
CodeSourcery