Linux 永久改变 GDB 中的反汇编风味
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8569285/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Permanently Change Disassembly Flavor in GDB
提问by HighLife
How can I permanently change the disassembly flavor in GDB. I tried:set disassembly-flavor intel
in GDB, but when I fire up GDB later it still has the att flavor.
如何永久更改 GDB 中的反汇编风格。我尝试过:set disassembly-flavor intel
在 GDB 中,但是当我稍后启动 GDB 时,它仍然具有 att 的味道。
采纳答案by DSM
gdb executes a ~/.gdbinit file when it starts, if present; you should be able to add the line
gdb 在启动时执行 ~/.gdbinit 文件(如果存在);您应该能够添加该行
set disassembly-flavor intel
to it.
到它。