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 Mon, May 15, 2006 at 04:34:26PM -0400, Bob Rossi wrote:
> > > If I use a PTY, which I'm going to have to reimplement. I'll except
> > > signals like SIGINT, cause I'll forward them with 'write' to the PTY
> > > between GDB and CGDB. 
> > 
> > I don't think "write" will do it; you need something more complicated.
> > Maybe I'm wrong and writing the interrupt character will do it.
> 
> I desire that CGDB works exactly the same as if the user was at the
> terminal with GDB. So, ^c probably is what I want, since it's what 
> the user would have to do anyways. Does this sound correct to you?

The interrupt character is actually configurable; C-c might not
generate an interrupt, et cetera.  All this stuff is very complex :-)

(man stty, search for intr)

-- 
Daniel Jacobowitz
CodeSourcery


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