由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 关于dbx请教
相关主题
where is libstdc++请问:装了GCC以后
[转载] ask a question.Unix下好好的到了linux下segment fault
C++5.0的初级问题Questions about Makefile
any debugging tool?[转载] 请教三个关于emacs和perl的问题
#pragmaA tough compiler problem
急问:UNIX (SOLARIS 7。0)中C++ COMPILER命令到底是什么呀?[转载] molscript and grasp
Re: 急问:UNIX (SOLARIS 7。0)中C++ COMPILER命令到底是什么呀?GCC的编译?
GCC 和 G++ 的区别在什么地方?漆血柜求
相关话题的讨论汇总
话题: dbx话题: stop话题: program话题: unix话题: c++
进入Unix版参与讨论
1 (共1页)
j**t
发帖数: 439
1
dbx是怎么运行的,基本步骤是哪些?
看了半天man page,还是不着边际.上面只是介绍各个参数的用法,
却没讲怎么起步. 只知道用stop可以设断点,但是在哪儿加呢?
是在源代码里吗?
哪位给讲讲?thanks.
c*****t
发帖数: 1879
2
1. You must compile and link your program w/ debugging information
on. On Unix, the flag is usually -g for most C/C++ compilers.
2. dbx your-program
3. stop at main (or stop at file:line, may not be exact)
4. run args (if any)
5. s (for step)
Other things you can do trial and error to figure out.

【在 j**t 的大作中提到】
: dbx是怎么运行的,基本步骤是哪些?
: 看了半天man page,还是不着边际.上面只是介绍各个参数的用法,
: 却没讲怎么起步. 只知道用stop可以设断点,但是在哪儿加呢?
: 是在源代码里吗?
: 哪位给讲讲?thanks.

1 (共1页)
进入Unix版参与讨论
相关主题
漆血柜求#pragma
GCC 一问急问:UNIX (SOLARIS 7。0)中C++ COMPILER命令到底是什么呀?
Help: convert // to /* */ in C code?Re: 急问:UNIX (SOLARIS 7。0)中C++ COMPILER命令到底是什么呀?
about compiling new glibc/gcc in fc14 (转载)GCC 和 G++ 的区别在什么地方?
where is libstdc++请问:装了GCC以后
[转载] ask a question.Unix下好好的到了linux下segment fault
C++5.0的初级问题Questions about Makefile
any debugging tool?[转载] 请教三个关于emacs和perl的问题
相关话题的讨论汇总
话题: dbx话题: stop话题: program话题: unix话题: c++