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

gdb missing since esp-12.2.0_20230208 #257

Closed
svenstaro opened this issue May 19, 2023 · 5 comments
Closed

gdb missing since esp-12.2.0_20230208 #257

svenstaro opened this issue May 19, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@svenstaro
Copy link

Since esp-12.2.0_20230208, gdb is no longer part of the official release. You can read about this change from upstream in their esp-2022r1 release notes.

gdb now lives here so it needs to be separately downloaded and extracted on top of the current gcc toolchain location.

@svenstaro svenstaro added the bug Something isn't working label May 19, 2023
@SergioGasquez SergioGasquez self-assigned this May 22, 2023
@SergioGasquez
Copy link
Member

Hi! I brought this topic into today's community meeting and we've decided that espup should not install GDB, as we discussed in #154, we want to keep espup as minimal as possible, that means, installing only what's necessary to generate a binary for ESP32s.

Still, I think GDB is useful/necessary, so I will open an issue on the book to document how to install it.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs May 25, 2023
@svenstaro
Copy link
Author

I'm a bit unhappy about this as espup is meant to be a replacement for the otherwise annoying ad-hoc install scripts everybody would otherwise write for themselves. This decision has us make a small script that gets the newest version of esp gdb from just the right place and pops it into place in addition to running espup. This functionality used to be there and now it's gone without real replacement which isn't great.

I think it would make sense to at least add an option to optionally install it. Maybe just espup install --gdb?

@SergioGasquez SergioGasquez reopened this May 26, 2023
@github-project-automation github-project-automation bot moved this from Done to In Progress in esp-rs May 26, 2023
@SergioGasquez
Copy link
Member

SergioGasquez commented May 26, 2023

Let's proceed the discussion here instead that Matrix (@svenstaro @ivmarkov), as a recap:

So, in summary atm we can install GDB:

  1. Source from esp-idf installation
  2. Download from releases: https://github.com/espressif/binutils-gdb/releases
  3. (STD only) use the tools which esp-idf-sys downloads

@svenstaro
Copy link
Author

I think that would work for me.

@SergioGasquez SergioGasquez moved this from In Progress to Todo in esp-rs May 29, 2023
@SergioGasquez
Copy link
Member

Hello, we wont be including GDB in espup, we will be doing some efforts to improve the current support in probe-rs (see esp-rs/rust#181 (comment)) and also, we will better document (probably in the book) how to install GDB/openOCD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants