Debugging on Mac with GDB w/o JTAG
Posted: Tue Mar 28, 2017 10:38 pm
Between Kolban's "Attaching GDB for debugging" and this forum post on GDB debugging issues on Mac,
I thought I'd be able to use gdb to debug an issue I'm having with a simple wifi program adapted from
Luca Dentella's WiFi example code...
However, when I try to follow the example, which I've followed stepwise, (alter configuration options for esp32 menuconfig, run the program, disconnect the serial connection...)
I get this output:
Which is supremely unhelpful.
I need some help getting gdb to work correctly with the ESP32 (using the SparkFun dev board right now) so that I can move forward on debugging effectively, and I don't know how to troubleshoot this on my own.
I thought I'd be able to use gdb to debug an issue I'm having with a simple wifi program adapted from
Luca Dentella's WiFi example code...
However, when I try to follow the example, which I've followed stepwise, (alter configuration options for esp32 menuconfig, run the program, disconnect the serial connection...)
Code: Select all
xtensa-esp32-elf-gdb ./build/app-template.elf -b 115200 -ex '/dev/cu.usbserial-DN01J4DD'
Code: Select all
GNU gdb (crosstool-NG crosstool-ng-1.22.0-61-gab8375a) 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=x86_64-build_apple-darwin16.0.0 --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/app-template.elf...done.
Undefined command: "". Try "help".
I need some help getting gdb to work correctly with the ESP32 (using the SparkFun dev board right now) so that I can move forward on debugging effectively, and I don't know how to troubleshoot this on my own.