This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][PATCH] GDB kills itself instead of interrupting inferior
- From: Cyril Nikolaev <cyril at nichtverstehen dot de>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 27 Jul 2013 03:49:07 +0400
- Subject: Re: [RFC][PATCH] GDB kills itself instead of interrupting inferior
- References: <CAMx6oW7asrxWqsZZB1Ej6FAwmmP0y8KOHm8zYeV6ACe-cK_rsw at mail dot gmail dot com> <51F25F13 dot 1060908 at redhat dot com>
Hi Pedro,
thanks for feedback! I'm happy to see it finally fixed.
> Yep, thanks! It just needed a regression test. I went ahead and wrote
> one. I mulled over how to spawn GDB like in your reproducer (eventually
> had a wrapper shell script, and pointed the tcl GDB variable to it),
> but then realized that "set interactive-mode off" is enough to trigger
> badness
This was the thing I originally upon when I tried to write a test:
didn't find a simple way to run gdb that way from Tcl. Turning off
interactive mode with a switch is neat.
-- Cyril
On Fri, Jul 26, 2013 at 3:35 PM, Pedro Alves <palves@redhat.com> wrote:
> Hi!
> Very sorry for the slow response on this.
>
> On 02/15/2013 05:34 PM, Cyril Nikolaev wrote:
>> Hi! When GDB is run with IO redirected to a pipe, 'interrupt' command
>> causes it to kill its own process group instead of the inferior. The
>> problem manifests itself in async mode...