Berkeley CSUA MOTD:Entry 34258
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2004/10/21 [Computer/SW/Compilers] UID:34258 Activity:nil
10/20   When I compile gcc with the -g option, my binary becomes bigger
        because I have extra debugging information for the debugger.
        Let's say I'm writing my own primitive debugging tracker that
        looks at offsets of variables (both global and local), how
        do I read those debugging info? In another word, how do I
        fetch those debugging information in a text readable format
        without running or using the debugger? Thanks.