need help using gdbstub
Posted: Sun Jan 08, 2017 3:50 pm
Managed to get up and running with examples from esp-idf so I am able to make flash etc.
git cloned and built opensdk (pfalcon).
git cloned gdbstub as subproject of myapp (derived from esp template) but can't figure out the correct way to integrate, in particular, (from gdbstub README):
* Modify your Makefile. You'll need to include the gdbstub sources: if your Makefile is structured like the
ones in the Espressif examples, you can add `gdbstub` to the `SUBDIRS` define and `gdbstub/libgdbstub.a` to the
`COMPONENTS_eagle.app.v6` define. Also, you probably want to add `-ggdb` to your compiler flags (`TARGET_LDFLAGS`)
and, if you are debugging, change any optimation flags (-Os, -O2 etc) into `-Og`. Finally, make sure your Makefile
also compiles .S files.
I've added SUBDIRS in myapp makefile; can't see any evidence of gdbstub being built in response to this though. Can't find libgdbstub.a
Can anybody give a noob some help, please?
git cloned and built opensdk (pfalcon).
git cloned gdbstub as subproject of myapp (derived from esp template) but can't figure out the correct way to integrate, in particular, (from gdbstub README):
* Modify your Makefile. You'll need to include the gdbstub sources: if your Makefile is structured like the
ones in the Espressif examples, you can add `gdbstub` to the `SUBDIRS` define and `gdbstub/libgdbstub.a` to the
`COMPONENTS_eagle.app.v6` define. Also, you probably want to add `-ggdb` to your compiler flags (`TARGET_LDFLAGS`)
and, if you are debugging, change any optimation flags (-Os, -O2 etc) into `-Og`. Finally, make sure your Makefile
also compiles .S files.
I've added SUBDIRS in myapp makefile; can't see any evidence of gdbstub being built in response to this though. Can't find libgdbstub.a
Can anybody give a noob some help, please?