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

compile:use -g3 to get more debug info #14897

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anjiahao1
Copy link
Contributor

@anjiahao1 anjiahao1 commented Nov 22, 2024

Summary

compile:use -g3 to get more debug info

more info in
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html

More debug information is always useful for debugging

Impact

build

Testing

sim:nsh

we can get Macro definition information in elf, etc, CONFIG_* and more.

@github-actions github-actions bot added the Size: XS The size of the change in this PR is very small label Nov 22, 2024
Kconfig Outdated Show resolved Hide resolved
@anjiahao1
Copy link
Contributor Author

need change build way exampls/elf, i will do it later.

@anchao
Copy link
Contributor

anchao commented Nov 22, 2024

What is the difference in elf size between -g and -g3?

@anjiahao1
Copy link
Contributor Author

image

@anjiahao1
Copy link
Contributor Author

apache/nuttx-apps#2861 if use kernal build, it will strip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants