Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22000

When do we need to use gcc/g++ to generate Map files? "-g" is enough for debug?

$
0
0

If we want to use gdb to debug a release version executable, we make sure we compile using -g and then use objcopy to trim the debug information. This debug information can be used to locate source file lines when going through source files.

But when/why do we also need to generate Map files, any requirement or ability of gdb relies on Map files?

Thanks.


Viewing all articles
Browse latest Browse all 22000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>