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

Support older GDB versions which use python2.7 #209

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

tearandfix
Copy link
Contributor

Thanks for the awesome project!

I tried using it for ESP32 debugging which uses its own gdb fork but it didn't work out of the box.

xtensa-esp32s3-elf-gdb --version
GNU gdb (crosstool-NG esp-2021r2-patch5) 9.2.90.20200913-git

Apparently this gdb version uses python2.7 and complains about some python3 specific syntax.

This PR removes python3 specific code to make gdb_commands.py compatible with python2.7.

It woks fine with ESP32-S3 gdb:

:GdbStart xtensa-esp32s3-elf-gdb -x gdbinit .pio/build/esp32-s3-zero/firmware.elf

I only tested it with ESP32-S3 and a native gdb 15.1 on arch linux.

@sakhnik
Copy link
Owner

sakhnik commented Oct 5, 2024

Thanks for the PR. Could you please merge from devel or master (or rebase on top of one of them)? I want to run the tests.

@tearandfix
Copy link
Contributor Author

Thanks for the PR. Could you please merge from devel or master (or rebase on top of one of them)? I want to run the tests.

Rebased on top of master.

@sakhnik sakhnik merged commit 53c34af into sakhnik:master Oct 7, 2024
3 checks passed
@sakhnik
Copy link
Owner

sakhnik commented Oct 7, 2024

I appreciate your contribution!

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