Thanks. What does the '-i=mi' mean? I don't see the '-i' option on the gdb man page.

On Fri, Aug 11, 2017 at 3:33 PM, Tino Calancha <tino.calancha@gmail.com> wrote:


On Fri, 11 Aug 2017, Itai Berli wrote:

Thanks, Tino.
I've finally managed to get gdb to work by executing the following two instructions at the gdb command prompt:
(gdb) cd ~/emacs
(gdb) file src/bootstrap-emacs

However, your suggestion to execute the following from the terminal, didn't work:

> emacs ~/emacs/src
Oh, i think you mention you run Emacs with:
open nextstep/Emacs.app

i don't have mac but i guess the following might work (*):
open -a nextstep/Emacs.app ~/emacs/src

(*) https://www.emacswiki.org/emacs/EmacsForMacOS#toc17

In case it works, then call from Emacs the gdb front-end:
M-x gdb RET
;; You must see something like:
gdb -i=mi bootstrap-emacs
;; Just enter and gdb would have loaded the Emacs executable