This is the mail archive of the gdb-patches@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: Document how to exit "python-interactive"


On 08/23/2012 05:29 PM, Khoo Yit Phang wrote:
> Hi,
> 
> I'd like to update the documentation to explain how to return from "python-interactive" to GDB.

Is it possible to add a convenience python function to the gdb module to exits python-interactive?

ctrl-d also exits gdb when typed at gdb's prompt.  So if you type one c-d too much,
you'll quit gdb by mistake (unless you're debugging a program, in which case
gdb at least confirms).

(Related, I set this on my .bashrc , because of hitting ^D at the wrong shell
too many times:

# Don't use ^D to exit
set -o ignoreeof
)

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]