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


Bob Rossi <bob_rossi@cox.net> writes:

> I find in emacs:process.c code that they send the SIGINT in different
> ways
>     /* If possible, send signals to the entire pgrp
>        by sending an input character to it.  */
>
>     /* TERMIOS is the latest and bestest, and seems most likely to
>        work.  If the system has it, use it.  */
>     case SIGINT:
>       sig_char = &t.c_cc[VINTR];
>       break;
>     ...
>     send_process (proc, sig_char, 1, Qnil);

This part is only active if SIGNALS_VIA_CHARACTERS is defined.  That is
defined mostly for BSD-derived systems, but not, for example, for Linux.
The fallback is to send the signal to the foreground process group of the
terminal.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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