Page 1 of 1

Error with command: gdb --version

Posted: Fri Dec 14, 2018 7:58 pm
by Alen59
Hi,

i can run debugger using command line but i can't run it using eclipse, i get the following error, could you please help, i attached my eclipse debugger configuration snapshot

Error with command: gdb --version
Cannot run program "gdb": Launching failed

Re: Error with command: gdb --version

Posted: Sat Dec 15, 2018 9:19 am
by ESP_igrr
The screenshots are of two different debugging configuration wizards. First two pages are from GDB Hardware Debugging, which is the correct one to use. However the last screenshot is for some different debugging configuration, which you seem to be launching. At least, it has "gdb" as the debugger, which matches the error message you are getting.
You need to launch "gdb hardware debugging" configuration (i.e. the one set up by the first two screens).

Re: Error with command: gdb --version

Posted: Tue Dec 18, 2018 1:15 pm
by Alen59
ok thanks, if i use the first one, these are the error i get

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333

Error message from debugger back end:
localhost:3333: The system tried to join a drive to a directory on a joined drive.
localhost:3333: The system tried to join a drive to a directory on a joined drive.

Re: Error with command: gdb --version

Posted: Tue Dec 18, 2018 1:22 pm
by ESP_igrr
Is OpenOCD program running at the time you are trying to start GDB? Did you get any prompts from Windows firewall about allowing OpenOCD to open ports?

Re: Error with command: gdb --version

Posted: Tue Dec 18, 2018 1:57 pm
by Alen59
sorry i did not know i need to run OpenOCD when running eclipse debugger, i just did and now i am getting the following error

Error in final launch sequence
Reset command not defined for device 'Generic TCP/IP'

Re: Error with command: gdb --version

Posted: Tue Dec 18, 2018 2:24 pm
by Alen59
ok, when i removed check marks in startup tab from "RESET" and "delay and Halt" it seems solved the problem