Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does gdb -i=mi mean?

When starting gdb from emacs, emacs says that gdb should be started as

gdb -i=mi

The option -i is not defined in the gdb man page. If gdb is invoked from the command line with option -i=mi, it works. So it must be specific to gdb. Where is the documentation for the -i option?

like image 951
Talespin_Kit Avatar asked Mar 06 '15 14:03

Talespin_Kit


People also ask

What's the meaning of GDB?

GDB means the Government Development Bank.

What is GDB in business?

Business News Definition Budget Gross Domestic Product.

What does GDB mean in community?

Gettin' Rid of Britta.

What is a GDB Urban Dictionary?

gdb: God Damn Bitch - someone who's a bitch and liar and needs to be gotten rid off.


1 Answers

gdb -i=mi is equivalent to gdb --interpreter=mi.

In short, --interpreter=mi makes gdb present a machine-oriented text interface rather than the human-oriented command prompt you get without it. Emacs's gud buffer parses the output from this interface and presents something resembling the normal gdb interface to you.

The --interpreter flag is documented here, and the GDB/MI interface is documented here. That -i is an alias for --interpreter is mentioned in passing here.

like image 87
Wintermute Avatar answered Sep 29 '22 06:09

Wintermute