On Thursday 13 November 2008 22:58:17, Joel Brobecker wrote: > > (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... You're right --- those are the initials to print_inferior_quit_action :-). I'm not sure if there's a standard to name these things. print_inferior_quit_action_args seemed rather longuish, just I can change to anything, no problem. Here's an updated patch that adds some more commenting and makes things a bit clearer codewise, I guess. I've also updated the output a wee bit in the case where there are just too many inferiors to print --- now it tells how many extra will be detached or killed, instead of just saying how many there are. -- Pedro Alves