GDB:backtrace命令的格式:在另一个shell/ssh中运行时将帧行分为几行
当我在本地(Ubuntu 10.10)上使用 BACKTRACE 命令运行 GDB 时,我得到以下输出:
#0 0xb5f810db in ?? ()
#1 0x081a0b19 in CObject::Event (this=0xb1aa53d8, _t1=@0xbfd315ec, _t2=0xb1aa53d8, _t3=false) at moc_xreobject.cpp:96
#2 0x08157f24 in CSoundResource::ReportOpen (this=0xb60a31e8) at ../../src/sender/soundresource.cpp:203
#3 0x0818a38e in JavaScriptSoundObject::onOpen (this=0x8376d78, index=@0xbfd31698) at ../../src/sender/flashsounditem.cpp:264
当我在 Ubuntu 9.04 盒子上通过同一个 coredump 远程(SSH)运行它时,我得到:
#0 0xb5f810db in ?? ()
#1 0x081a0b19 in CObject::Event (this=0xb1aa53d8, _t1=@0xbfd315ec,
_t2=0xb1aa53d8, _t3=false) at moc_xreobject.cpp:96
#2 0x08157f24 in CSoundResource::ReportOpen (this=0xb60a31e8)
at ../../src/sender/soundresource.cpp:203
#3 0x0818a38e in JavaScriptSoundObject::onOpen (this=0x8376d78,
index=@0xbfd31698) at ../../src/sender/flashsounditem.cpp:264
希望有任何建议如何让它像第一个样本。这与远程 shell 设置或 GDB 本身有什么关系吗?
谢谢
When I run GDB with BACKTRACE command locally (Ubuntu 10.10) I am getting this output:
#0 0xb5f810db in ?? ()
#1 0x081a0b19 in CObject::Event (this=0xb1aa53d8, _t1=@0xbfd315ec, _t2=0xb1aa53d8, _t3=false) at moc_xreobject.cpp:96
#2 0x08157f24 in CSoundResource::ReportOpen (this=0xb60a31e8) at ../../src/sender/soundresource.cpp:203
#3 0x0818a38e in JavaScriptSoundObject::onOpen (this=0x8376d78, index=@0xbfd31698) at ../../src/sender/flashsounditem.cpp:264
When I run it over the same coredump remotely (SSH) on Ubuntu 9.04 box I am getting:
#0 0xb5f810db in ?? ()
#1 0x081a0b19 in CObject::Event (this=0xb1aa53d8, _t1=@0xbfd315ec,
_t2=0xb1aa53d8, _t3=false) at moc_xreobject.cpp:96
#2 0x08157f24 in CSoundResource::ReportOpen (this=0xb60a31e8)
at ../../src/sender/soundresource.cpp:203
#3 0x0818a38e in JavaScriptSoundObject::onOpen (this=0x8376d78,
index=@0xbfd31698) at ../../src/sender/flashsounditem.cpp:264
Would appreciate any suggestion how to make it run consistently like the first sample. Does it have something to do with that remote shell settings or GDB itself?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来 gdb 正在包装输出,可能终端告诉它错误的大小,所以尝试:
以便 gdb 不包装输出。
Looks like gdb is wrapping the output, possibly the terminal tells it a wrong size, so try:
so that gdb doesn't wrap the output.