This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: invoking GDB from FE and signals


On Sat, May 13, 2006 at 11:48:16AM -0400, Daniel Jacobowitz wrote:
> On Sat, May 13, 2006 at 11:20:21AM -0400, Bob Rossi wrote:
> > When I say "the supported way", I'm assuming there is a way GDB provides
> > for FE's to work with it in regards to sending signals, in particularly
> > ^c.
> 
> But there isn't :-)
> 
> > If GDB doesn't provide this functionality and it's mere hackers
> > chance that all of us FE's are getting this to work most of the time,
> > then I understand what you mean.
> > 
> > Othewise, if GDB has been designed to accept signal during certain
> > circumstances, and not during others, I would love to know what those
> > are so that I can benefit from using this functionality.
> 
> If there were such a design, hopefully, it would be in the manual.  All
> of this is generally legacy from the GDB CLI, which is designed to work
> with the host's job control.  When the inferior is running and you
> press Control-C, the signal goes to the inferior, not to GDB.
> 
> Your needs may be different.

Nick,

Would you mind posting how Emacs starts up GDB both in annotate mode and
in mi mode? Does it use a pty or pipe?

Also, what does it do when ^c is read? Does it 'write' the byte to GDB's
stdin? or does it use 'kill(gdb_pid, SIGINT)'?

Thanks,
Bob Rossi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]