mesonbuild / mesonbuild/meson

Missing support for `gcc -g3`

Open
#8,540 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.