Compiler optimization - debugging

36 views
Skip to first unread message

mecworld

unread,
Nov 15, 2009, 8:25:21 PM11/15/09
to google-breakpad-discuss
Hi guys,
Does the compiler optimization affect the debugging of stack traces
generated with Breakpad? (for Windows and Linux). Should I take off
optimization?

Thanks!

Jim Blandy

unread,
Nov 15, 2009, 9:25:02 PM11/15/09
to google-brea...@googlegroups.com
It has some effect, although it should still work. The biggest thing
is that an optimizing compiler may inline functions, which causes the
inlined functions' frames to be omitted from the stack trace. So if
the source code says that A calls B which calls C, then the stack
trace may show A calling C directly.
Reply all
Reply to author
Forward
0 new messages