Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] 'Failed to execute MI command: -exec-run' error when trying to debug a GNU project with Eclipse

I've now managed to debug the Emacs source code with gdb using Emacs itself as the IDE. However, I prefer to use Eclipse, and would appreciate help to get it done.

Additionally, I've managed to solve the error message I reported about above, however now I'm getting another one:

---
'Launching emacs-26.0.50.1' has encountered a problem.

Error in final launch sequence

Failed to execute MI command:
source /Users/evanaad/emacs/src/.gdbinit
Error message from debugger back end:
/Users/evanaad/emacs/src/.gdbinit:19: Error in sourced command file:\nNo symbol table is loaded.  Use the "file" command.
/Users/evanaad/emacs/src/.gdbinit:19: Error in sourced command file:\nNo symbol table is loaded.  Use the "file" command.
---

I initially got a similar message with Emacs as the IDE. The way I was able to resolve it there was to set gdb's current directory using

(gdb) cd ~/evanaad/emacs/src

And also to set gdb's executable file to 'bootstrap-emacs' thus:

(gdb) file bootstrap-emacs

On Fri, Aug 11, 2017 at 12:50 PM, Evan Aad <oddeveneven@xxxxxxxxx> wrote:
No, I can't debug even a simple Hello World application. How aggravating!
Thanks for answering.


On Fri, Aug 11, 2017 at 12:24 PM, Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi,

Does debugging a simple Hello World application work for you?

If not, I suspect it is because GDB 7.12 does not work on MacOS
Sierra. I don't have access to such a machine, but have a look at
https://stackoverflow.com/a/40123809/2796832 as a starting point
perhaps?

Jonah

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On 11 August 2017 at 10:11, Evan Aad <oddeveneven@xxxxxxxxx> wrote:
> I wish to debug GNU Emacs in Eclipse IDE for C/C++ on my macOS Sierra. I
> have downloaded the source code with Git and built the project successfully
> via the command line. I then imported the project to Eclipse as an existing
> Makefile project with the 'GNU autotools toolchain' setting.
>
> I can now run the Emacs GUI from Eclipse. However, when I try to debug it
> (with gdb), I get the following error message:
>
> ---
>
> 'Launching emacs-26.0.50.1' has encountered a problem.
> Error in final launch sequence
>
> Failed to execute MI command:
> -exec-run
> Error message from debugger back end:
> During startup program terminated with signal ?, Unknown signal.
> During startup program terminated with signal ?, Unknown signal.
>
> ---
>
>
> _______________________________________________
> cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top