This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Warn about what will happen to all inferiors on "quit"
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 13 Nov 2008 14:58:17 -0800
- Subject: Re: [RFC] Warn about what will happen to all inferiors on "quit"
- References: <200811132155.16758.pedro@codesourcery.com>
> (gdb) q
> A debugging session is active.
>
> Inferior 1 [process 17555] will be killed.
>
> Do you still want to close the debugger? (y or n)
[...]
> (gdb) q
> A debugging session is active.
>
> Inferior 1 [process 22005] will be killed.
> Inferior 2 [process 22323] will be killed.
> Inferior 3 [process 22656] will be detached.
>
> Do you still want to close the debugger? (y or n)
>
> What do you think of something like that?
That looks pretty good to me :).
> +struct piqa_args
> +{
> + int count;
> + struct ui_file *stb;
> +};
Hmmm, given the relatively cryptic name of the structure, a little
comment explaining what it's for would probably be useful...
--
Joel