Page 1 of 1

gdbinit: No such file or directory

Posted: Thu Dec 13, 2018 3:13 pm
by Alen59
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)

Re: gdbinit: No such file or directory

Posted: Fri Dec 14, 2018 7:04 am
by ESP_igrr
Do you have a "gdbinit" file in the directory where you are running GDB from?

Re: gdbinit: No such file or directory

Posted: Fri Dec 14, 2018 12:00 pm
by Alen59
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

Re: gdbinit: No such file or directory

Posted: Fri Dec 14, 2018 1:51 pm
by ESP_igrr
So then the GDB argument would be "-x gdbinit.cfg", right?

Re: gdbinit: No such file or directory

Posted: Fri Dec 14, 2018 4:09 pm
by Alen59
thanks a lot that was it, my debugger is running now :D