GDB通过行号拆解 [英] gdb disassemble by line number

查看:195
本文介绍了GDB通过行号拆解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我要拆开文件x,其中文件x是不是在当前背景下的线M-N。这是操作成为可能,如果是这样,怎么样?注:我在x86的Linux工作

Say I want to disassemble lines m-n of file x, where file x is not in the current context. Is this operation possible, and if so, how? Note: I am working on x86 Linux.

推荐答案

下面是一个缺憾办法做到这一点:设置你感兴趣的线路断点,断点确认给你的地址。然后清除断点并运行 disas X / 20I 上的地址。

Here's a kludgy way to do it: set a breakpoint on the line you're interested in, and the breakpoint acknowledgement gives you an address. Then clear the breakpoint and run disas or x/20i on that address.

这篇关于GDB通过行号拆解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆