To set the breakpoint you must kill the program and then rerun it so that the dynamic linker maps a copy of the shared library privately. There are two ways to run the program:
•Rerun the program under GDB to have the debugger cause dld to map all shared libraries as private, enabling breakpoint debugging.
•On
/opt/langtools/bin/pxdb
The pxdb
You can verify the status of the shared library with this command:
/opt/langtools/bin/pxdb
•On both
This is similar to the pxdb command described above wherein it directs the dld to load the shared libraries as private when the program starts up.
On
The
The
The set mapshared on command can be used to change modes from the (gdb) prompt.
(gdb) set mapshared on
The set mapshared off command can be used to load shared libraries after the current point is mapped private.
(gdb) set mapshared off
212