HP-UX Programming Tools Release Notes

30 Chapter4
Problem Descriptions and Fixes
Problems and Limitations
Break at: \\__map_dld # `va(00002254)
del bre __map_dld
go -return
Stopped at: \\$START$ (000020BC)
7. Issue the property libraries command to load symbol information
for a shared library with constructor functions.
pro lib mylib.sl
8. Since you are now in system code, set property language to C++.
pro lan c++
9. Set a breakpoint on a constructor function.
bre AAdoublecolonAA
NOTE If you turn on system-level debugging (as described in Step 2), this will
prevent the debugger from setting the usual breakpoints at the entry
and exist statements of the main program. To establish those
breakpoints, use the following commands:
$ bre main
$ bre main\$
10.If the function in the shared library has the same name as another
function or source file in the program, you may need to qualify the
function name in the breakpoint command. For example, to set a
breakpoint at the main function in the shared library libsubs.sl, you
would set up the lib.C and main.C files as follows.
lib.C
#include <iostream.h>
extern void sub();
int main() {
cout << ""C++: In main()...""<<end1;
sub();
}