Missing support for `gcc -g3`
Open
Nobody has claimed this yet.
compilers
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 1.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 33
Description
The debug builds in Meson use flag -g which does not include all debug symbols. For example, we cannot use macros in GDB on a Meson debug build. The workaround is to explicitly set -g3 as a cflag. Perhaps there are pros and cons to using -g3, but I don't know of any cons.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Meson's debug-build flag handling and the tests covering generated compiler flags. Check how the current -g flag is selected for C builds, then determine the expected behavior for -g3 and verify that debug builds expose macro information in GDB without breaking existing compiler configurations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100