gdb 回溯
我刚刚尝试在 BackTrack Linux 上使用 gdb,我必须说它非常棒。我想知道 backtrack 中的 gdb 是如何配置为这样的。
当我设置断点时,所有寄存器值、一部分堆栈、一部分数据打印部分和接下来要执行的 10-15 条指令。当我按照说明step
或next
时,也会发生同样的情况。
我觉得这太棒了,并且也很想在我的 Ubuntu 机器上安装它;我该怎么做呢?
I've just tried using gdb on BackTrack Linux and I must say that its awesome. I wonder how gdb in backtrack is configured to act this way.
When I set a breakpoint, all the register values, a part of the stack, a part of the data section and the next 10-15 instructions to be executed are printed. The same happens when I step
or next
through the instructions.
I find this amazing and would love to have this on my Ubuntu machine too; how could I go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们似乎正在使用这个 .gdbinit 文件:
https://github.com/gdbinit/Gdbinit /blob/master/gdbinit
They seem to be using this .gdbinit file:
https://github.com/gdbinit/Gdbinit/blob/master/gdbinit
我猜测这是使用后命令挂钩完成的:
http:// /sourceware.org/gdb/current/onlinedocs/gdb/Hooks.html#Hooks
位于系统范围的 gdbinit 内:
http://sourceware.org/gdb/onlinedocs/gdb/System_002dwide-configuration.html
可能会也可能不会引用 shell 命令和/或使用 gdb python 脚本。
尝试:
I'm guessing that this is done using a post command hook:
http://sourceware.org/gdb/current/onlinedocs/gdb/Hooks.html#Hooks
inside of a system wide gdbinit:
http://sourceware.org/gdb/onlinedocs/gdb/System_002dwide-configuration.html
which may or may not reference shell commands and/or use gdb python scripts.
try: