-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documenting how to use xtensa-lx106-elf-gdb for C library development #2731
Comments
Why not another whitepaper cross-linked from the GDB module documentation? |
I am proposing to continue the issues on #2932 specifically related to the use of remote gdb here as a way of taking both issues forward:
As to the mechanics of how a developer does all this. I can go through all this if I have a volunteer willing to go through this with me. |
Hhmm, does it make sense to keep both this issue open and #1862? |
Yes Marcel, you are right: they are largely duplicates so I've closed the older as this largely subsumes it. There was one point not covered here:
And the answer is that Lua 5.3 does include a full Do you see my point? I would really like a collaborator to get up to speed and work with my on the know-how transfer and communicating to you our wider community rather than this being yet another "Terry TODO" list item. |
Yes, I do understand that. You are referring to the earlier
I would love to do that as I feel it would be a fantastic learning experience (for me)! ATM anything that goes beyond keeping-the-lights-on activities for NodeMCU are out of reach for me. Very sorry 😢 It's a constant fight squeezing all obligations into my daily schedule. |
@marcelstoer, we are all constrained by our background skills and other priorities. We also make whatever contributions we make and in our own way purely pro bono, and so we shouldn't expect any more from any individual contributor who like you is making a material contribution. Nonetheless, if we want NodeMCU to succeed as a community project then somehow we need to engage and encourage the newer contributors and make them feel that their own contributions are valued. It's that new blood that we need to help the tired old blood like me! |
By coincidence I just stumbled upon https://arduino-esp8266.readthedocs.io/en/latest/gdb.html. Maybe it can serve as a source of inspiration. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Missing feature
Using the remote GDB tool is a very powerful aid for doing any C runtime development but with health warnings and caveats. I am not sure where to put this in or canon of HOWTOs and other resources, and I suspect that a blog post or wiki page here might be the easiest way.
Justification
This know how should be shared somehow. There isn't much out on the internet on this.
Workarounds
Do what I did and learn the hard way. _This issue is just a place holder to collaborate on this.
Key points
xtensa-lx106-elf-gdb
. I have an Ubuntu laptop so this is tivial for me, I've also built the toolchain on an RPi so using one of these would easy as well. I leave the WinX options to WinX developers.-e
option toluac.cross
by the way).break()
function. You can then compile in calls tobreak()
in the code you are testing and set this as a breakpoint.fr 1
will give you the calling location.TEXT_SECTION_ATTR
, but this section is very limited and I haven't tried this._init
in LFS orinit.lua
on SPIFFS. An example is:printf
st()
at the interactive prompt. This compiles and execute thet()
call which enters the debugger ing.brk()
. The gdb stub then takes over the UART0 and issues a handshake prompt$T05#b9
. Time to leave the terminal emulator and switch into the debugger. If you've got the right.gbbinit
then you will enter gdb, and you can break on your target routine and start debugging.Other resources
The text was updated successfully, but these errors were encountered: