切换到组件GDB [英] Switching to assembly in gdb

查看:186
本文介绍了切换到组件GDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法调试广发行C或C ++程序时切换到组件? (考虑到所有的源文件和它们对应的汇编文件可用)

Is there is any way to switch to assembly when debugging a C or C++ program in gdb ? (Given that all source files and their corresponding assembly files are available)

推荐答案

有拆解功能或code某一段的方式,就是你所追求的?

There is a way to disassemble a function or a certain section of code, is that what you are after?

该命令这样做将是拆机<作用名称> 或内存位置

The command to do so would be disassemble <function name> or a memory location.

这就是你指的是?

(gdb) help disassemble
Disassemble a specified section of memory.
Default is the function surrounding the pc of the selected frame.
With a single argument, the function surrounding that address is dumped.
Two arguments are taken as a range of memory to dump.

这篇关于切换到组件GDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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