Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gdb layout asm doesn't work on mac?

Tags:

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

Is layout and gdbtui not available for Mac OS X? What are some alternatives?

like image 543
Vaibhav Bajpai Avatar asked Jul 15 '11 12:07

Vaibhav Bajpai


1 Answers

According to this question there is no tui support on mac by default. So you have to compile gdb yourself with TUI enabled.

like image 131
ks1322 Avatar answered Sep 29 '22 03:09

ks1322