gdbinit: No such file or directory

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

gdbinit: No such file or directory

Postby Alen59 » Thu Dec 13, 2018 3:13 pm

trying to run debugger but i am getting "gdbinit: No such file or directory" any ideas what am i missing?

here is my Msys console when i run debugger command:

$ xtensa-esp32-elf-gdb -x gdbinit build/hello-world.elf
GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/hello-world.elf...done.
gdbinit: No such file or directory.
(gdb)

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: gdbinit: No such file or directory

Postby ESP_igrr » Fri Dec 14, 2018 7:04 am

Do you have a "gdbinit" file in the directory where you are running GDB from?

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

Re: gdbinit: No such file or directory

Postby Alen59 » Fri Dec 14, 2018 12:00 pm

yes i do, i created one with notepad++ and named it gdbinit.cfg with the following stuff in it.

target remote :3333
mon reset halt
flushregs
thb app_main
c

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: gdbinit: No such file or directory

Postby ESP_igrr » Fri Dec 14, 2018 1:51 pm

So then the GDB argument would be "-x gdbinit.cfg", right?

Alen59
Posts: 25
Joined: Mon Mar 19, 2018 12:00 pm

Re: gdbinit: No such file or directory

Postby Alen59 » Fri Dec 14, 2018 4:09 pm

thanks a lot that was it, my debugger is running now :D

Who is online

Users browsing this forum: iseries1, MicroController and 121 guests