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

Missing support for gcc -g3 #8540

Open
byron-hawkins opened this issue Mar 16, 2021 · 2 comments
Open

Missing support for gcc -g3 #8540

byron-hawkins opened this issue Mar 16, 2021 · 2 comments

Comments

@byron-hawkins
Copy link

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.

@jpakkane
Copy link
Member

I don't know of any cons.

The debug data created by -g3 is massively bigger than plain -g and generating it takes longer (I think, have not measured).

@tristan957
Copy link
Contributor

@byron-hawkins I think the best way to support this is to have a debug_level option. GCC supports 0-3 for instance. I think clang does as well.

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

No branches or pull requests

3 participants