On Tue, May 04, 2004 at 04:01:02PM +0100, Angus Leeming wrote:

> But, you cannot set this breakpoint when the binary is not 
> running already. GDB is unable to detect the shared libraries
> which the program depends on. So I do a 'break main' first,
> run the program and set the real breakpoint after the program
> stops in main().

I haven't needed that trick for a long time.

[EMAIL PROTECTED] src]$ gdb -v
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)

[EMAIL PROTECTED] src]$ gdb ./lyx-xforms
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) break fl_unfreeze_form
Breakpoint 1 at 0x8053458
(gdb) run
Starting program: /home/moz/src/lyx-devel/src/lyx-xforms
Breakpoint 1 at 0x400c9405
Breakpoint 1, 0x400c9405 in fl_unfreeze_form () from /usr/local/lib/libforms.so.1
(gdb)

john

Reply via email to