Skip to content
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

Add Esp32 gdbstub Component and fix Esp8266 syscall errno handling #2169

Merged
merged 3 commits into from
Dec 3, 2020

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Dec 2, 2020

Fix gdb_syscall return value, and set errno as appropriate

  • The GDB reply packet is: ‘Fretcode,errno,Ctrl-C flag;call-specific attachment’
    The syscall function must return retcode NOT -errno.
    Take errno and set the global errno from it.

Add gdbstub Component for Esp32

  • Enables LiveDebug sample to compile. We may also want to add serial debugging in the future (e.g. don't have JTAG adapter)

Add strerror_r implementation for old ESP8266 toolchain

  • So we can get consistently error strings for errno (although as a legacy toolchain don't care about having a description)

The GDB reply packet is: ‘Fretcode,errno,Ctrl-C flag;call-specific attachment’

The syscall function must return retcode **NOT** -errno.
Take errno and set the global errno from it.
@slaff slaff added this to the 4.2.0 milestone Dec 2, 2020
@slaff slaff merged commit 443e094 into SmingHub:develop Dec 3, 2020
@mikee47 mikee47 deleted the fix/gdbstubs branch December 3, 2020 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants