Hi, In response to the recent discussion of Ctrl-D behaviour on the GDB list, here is a patch which attempts to address the issues identified. This example shows two presses of Crtl-D: Old behaviour: (gdb) The program is running. Exit anyway? (y or n) bash$ New behaviour: (gdb) quit The program is running. Exit anyway? (y or n) Y bash$ In addition to these cosmetic changes, in have adjusted the code such that hook-quit will work, as will trace-commands: (gdb) define hook-quit Type commands for definition of "hook-quit". End with a line saying just "end". >set confirm 0 >end (gdb) set trace-commands on (gdb) quit +quit ++set confirm 0 bash$ :ADDPATCH CLI: Andrew Stubbs