Moy Blog » Blog Archive » Debugging information in separate files

moythreads.com/wordpress/2009/08/31/debugging-information-in-separate-files/ view page cached page
Debugging information in Linux ELF binaries is usually stored in the binary itself. This had been really convenient to me, for example, I always compile my openr2 library with -ggdb3 -O0. I don’t care about optimizations nor the increase in size in the binary and users can always change those flags using CFLAGS when configuring openr2. Is convenient because if my users ever get a core dump, I... moreDebugging information in Linux ELF binaries is usually stored in the binary itself. This had been really convenient to me, for example, I always compile my openr2 library with -ggdb3 -O0. I don’t care about optimizations nor the increase in size in the binary and users can always change those flags using CFLAGS when configuring openr2. Is convenient because if my users ever get a core dump, I was able to jump right in and get a useful backtrace and examine the stack. Alternatively they could get the stack trace themselves and send it to me without worrying about anything else than launching gdb with the right arguments. view page



All posts about this link

  • share this page on Twitter
  • rss feed for moythreads.com
  • alerts create email alert for moythreads.com
Copy and paste this code below into your website:
customize »