gdb布局asm在mac上不起作用?

时间:2011-07-15 12:19:19

标签: macos gdb

$ gdb test

(gdb) start
Breakpoint 1 at 0x100000ec8
Starting program: /private/tmp/test 
Reading symbols for shared libraries +. done    
Breakpoint 1, 0x0000000100000ec8 in main ()

(gdb) layout asm
Undefined command: "layout".  Try "help".

$ gdbtui
-bash: gdbtui: command not found

layout gdbtuiMac OS X无效吗?有哪些替代方案?

1 个答案:

答案 0 :(得分:4)

根据this question默认情况下,mac上没有tui支持。因此,您必须在启用TUI的情况下自行编译gdb。