由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 弱问:GDB怎样停在出错的语句上(行号也行)
相关主题
请问一个awk的问题gedit crash (RHEL)
Shell 求助今天拿到了atom editor的测试邀请
在 vim 里用 gdb (on Linux)问个shell编程小问题
gdb用得太痛苦了, 有没有好用的debug tools推荐gdb debug c++的问题
我用vi是不是out了Access的select语句一问
也问linux学习又一个GDB的问题:关于显示数据
码工码农,帮忙了! (转载)[Apple Jobs] Software Engineer and software QA
awk问题求救access violation of C# in Visual Studio 2013
相关话题的讨论汇总
话题: gdb话题: 行号话题: 0x000085dc话题: divsi3话题: __
进入Linux版参与讨论
1 (共1页)
d******i
发帖数: 7160
1
在用vimgdb,故意写了句除零。
结果停到了汇编里:
191 (gdb) where
192 #0 0x40056950 in raise () from /lib/arm-linux-gnueabi/libc.so.6
193 #1 0x0000860c in __div0 ()
194 #2 0x000085dc in __divsi3 ()
195 #3 0x000085dc in __divsi3 ()
196 Backtrace stopped: previous frame identical to this frame (corrupt
stack?)
不知怎样show出出问题的行号?
小白勿拍啊。
谢谢了。
x****o
发帖数: 21566
2
你的compiler flags是什么? 有 -g -Wall么?
d******i
发帖数: 7160
3
有的啊。

【在 x****o 的大作中提到】
: 你的compiler flags是什么? 有 -g -Wall么?
x****o
发帖数: 21566
4
try with a simple case to see if -g works still. Then the following link
might be helpful.
http://cygwin.com/ml/cygwin/2008-02/msg00632.html

【在 d******i 的大作中提到】
: 有的啊。
1 (共1页)
进入Linux版参与讨论
相关主题
access violation of C# in Visual Studio 2013我用vi是不是out了
微软有组在招new grad software engineer吗?也问linux学习
[Apple Jobs] Software Engineer and software QA (转载)码工码农,帮忙了! (转载)
五国,求助awk问题求救
请问一个awk的问题gedit crash (RHEL)
Shell 求助今天拿到了atom editor的测试邀请
在 vim 里用 gdb (on Linux)问个shell编程小问题
gdb用得太痛苦了, 有没有好用的debug tools推荐gdb debug c++的问题
相关话题的讨论汇总
话题: gdb话题: 行号话题: 0x000085dc话题: divsi3话题: __