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


Jim Blandy <jimb@codesourcery.com> writes:

> Andreas Schwab <schwab@suse.de> writes:
>> 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.
>
> Do you know why they prefer that approach on Linux?

According to s/gnu-linux.h:

/* Let's try this out, just in case.
   Nah.  Rik Faith <faith@cs.unc.edu> says it doesn't work well.  */
/* #define SIGNALS_VIA_CHARACTERS */

1993-06-09  Jim Blandy  (jimb@wookumz.gnu.ai.mit.edu)

	* s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.

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]