gdb:如果在没有符号表的时候让gdb强制以thumb模式反汇编ARM二进制代码

本文详细介绍了GDB中用于控制指令模式的命令,包括如何使用setarmfallback-mode和setarmforce-mode命令来指定ARM或Thumb指令模式,以及如何通过showarmfallback-mode和showarmforce-mode命令查看当前的指令模式。

set arm fallback-mode (arm|thumb|auto)

如果有符号表,那么GDB就使用符号表来决定指令是 ARM指令还是Thumb指令。 没有符号表,用这个命令来控制GDB的默认行为,默认是auto, 它让GDB使用当前的执行模式(从CPSR的T位得到)

show arm fallback-mode
显示当前的fallback指令模式

set arm force-mode (arm|thumb|auto)
This command overrides use of the symbol table to determine whether instructions are ARM or Thumb. The default is `auto’, which causes GDB to use the symbol table and then the setting of `set arm fallback-mode’.

show arm force-mode
Show the current forced instruction mode.

(gdb) show arm show-opcode-bytes
ARM and Thumb opcode byte display in disassembly is off.
这个是苹果的山寨版gdb添加的一个

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值