l***a 发帖数: 23 | 1 Anybody familiar with DDD Debugger?
im using it under solaris on an ultra10. i've compiled some codes into an exec
file, but the DDD doesn't recognize it as executable :(
The inferior debugger of DDD is gdb, which im not familiar with either :(
A collegue can run the same exec file using DDD under linux...
Anyone knows what i should do to make DDD accept exec files under solaris?
Thanks in advance!!!
555~~~, i've been tied up with these codes for too long... |
r****d 发帖数: 375 | 2 Have you used the -g to compile the code?
exec
【在 l***a 的大作中提到】 : Anybody familiar with DDD Debugger? : im using it under solaris on an ultra10. i've compiled some codes into an exec : file, but the DDD doesn't recognize it as executable :( : The inferior debugger of DDD is gdb, which im not familiar with either :( : A collegue can run the same exec file using DDD under linux... : Anyone knows what i should do to make DDD accept exec files under solaris? : Thanks in advance!!! : 555~~~, i've been tied up with these codes for too long...
|
l***a 发帖数: 23 | 3 nah. i didn't know the -g option.
but now i don't know where to use -g in those complicated Makefile :(
【在 r****d 的大作中提到】 : Have you used the -g to compile the code? : : exec
|
w********e 发帖数: 2 | 4 add -g to the line where gcc or cc is in Makefile. "-g" is option for
compiler.
If a really complicated Makefile, look for keyword like "debug/DEBUG", and
make debug version of the code.
It might help to understand the code better if you know the outline of
Makefile; before even go to debug.
an
solaris?
【在 l***a 的大作中提到】 : nah. i didn't know the -g option. : but now i don't know where to use -g in those complicated Makefile :(
|