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添加的一个
本文详细介绍了GDB中用于控制指令模式的命令,包括如何使用setarmfallback-mode和setarmforce-mode命令来指定ARM或Thumb指令模式,以及如何通过showarmfallback-mode和showarmforce-mode命令查看当前的指令模式。
158

被折叠的 条评论
为什么被折叠?



