Paul Durrant wrote:
On 11/24/06, Xiao-Hai Ivan Shi <[EMAIL PROTECTED]> wrote:
I want to build a command via "make" in source tree, but by default,
it seems that it can not build a version with debug info.
Is there a easy way to build it via "make" in cmd subdir.
Without specifics, I can't help you much. How did you set up your
environment. If you run /opt/onbld/bin/bldenv -d <env. file> then you
should get a DEBUG environment i.e. -DDEBUG will be defined on the
compiler command line. Hence any code bracketed by #ifdef DEBUG/#endif
will be compiled in.
Paul
Thanks, I just set my environment with "ws" command in current
workspace, then cd the source directory and execute "make", which can
comiple an executable binary in current dir.
I want to debug the binary with dbx, but it reported "no debugger info".
So I wonder if debug switch is open when compiling.
Thanks,
Ivan
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code