Skip to content

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

Closed
anjiahao1 wants to merge 1 commit intoapache:masterfrom
anjiahao1:20241122
Closed

compile:use -g3 to get more debug info#14897
anjiahao1 wants to merge 1 commit intoapache:masterfrom
anjiahao1:20241122

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
@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