HP-UX Programming Tools Release Notes
Chapter 4 31
Problem Descriptions and Fixes
Problems and Limitations
main.C
#include <iostream.h>
void sub() {
cout << ""C++: In sub()...""<<end1;
}
You would compile the libraries as shown below, and enter the DDE
debugger in line-mode:
$ aCC -g -b +z -o libsubs.sl lib.C
#lib.C contains procedure main
$ aCC -g -o main main.C -L. -lsubs
#main.C contains procedure ’sub’
$ dde -ui line
Once in DDE line-mode, enter the following commands:
dde> pro sys -on
dde> deb main
dde> pro sys -off
dde> ini -alt; bre __map_dld
dde> go; go -return
dde> pro lib libsubs.sl
To specify the object main in the block lib (from the source file
name), use a block-qualified name, such as the one below:
dde> bre \\lib\main
You can also use an image-qualified name:
dde> bre ’image(libsubs.sl)\lib\main
You can then list the breakpoints:
dde> list bre
breakpoint \\__map_dld # ’va(0000302C) ;# [33]
breakpoint \\lib\main\6 ;# [34]