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)
gdbinit: No such file or directory
Re: gdbinit: No such file or directory
Do you have a "gdbinit" file in the directory where you are running GDB from?
Re: gdbinit: No such file or directory
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
target remote :3333
mon reset halt
flushregs
thb app_main
c
Re: gdbinit: No such file or directory
So then the GDB argument would be "-x gdbinit.cfg", right?
Re: gdbinit: No such file or directory
thanks a lot that was it, my debugger is running now :D
Who is online
Users browsing this forum: Majestic-12 [Bot] and 139 guests