(gdb) set auto-so-lib 0
(gdb) b main
Breakpoint 1 at 0x17588: file main.cc, line 5.
(gdb) run
Starting program: /home/form/toplevel/bin/sun4-solaris/toplevel 
unlimited
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
 
Breakpoint 1, main () at junk.cc:5
5         cout << "Starting toplevel..." << endl;
(gdb) shared Numerics
Reading symbols from 
            home/form/toplevel/lib/sun4-solaris/libNumerics.so.1...done.
done.
(gdb) break EigenSystem::Get
Breakpoint 2 at 0x5c220: file EigenSystem.cc, line 450.
(gdb) cont
  ...

Example 2: A gdb debugging session.

Back to Article
Copyright © 1999, Dr. Dobb's Journal