This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdbinit breakpoints
- From: Michael Snyder <msnyder at vmware dot com>
- To: Russell Shaw <rjshaw at netspace dot net dot au>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 28 Oct 2008 16:41:34 -0700
- Subject: Re: gdbinit breakpoints
- References: <4907A212.8020100@netspace.net.au>
Russell Shaw wrote:
Hi,
I set in .gdbinit many breakpoints that are in a dl-loaded library:
b mem_terminate
...
When starting gdb, i get:
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
Function "mem_terminate" not defined.
How do i make it answer "y" automatically?
"set breakpoint pending on"
(gdb) help set breakpoint pending
Set debugger's behavior regarding pending breakpoints.
If on, an unrecognized breakpoint location will cause gdb to create a
pending breakpoint. If off, an unrecognized breakpoint location results in
an error. If auto, an unrecognized breakpoint location results in a
user-query to see if a pending breakpoint should be created.