Hi Wayne,

On 23.02.2018 19:10, Wayne Stambaugh wrote:

> Thanks.  I've never used a RelWithDebInfo build.  What kind of debugging
> info would this give me if I ran it gdb?  Would it be good enough for
> someone to do produce useful debugging information performing a
> backtrace on a segfault?

Sometimes.

It's regular debug info like for Debug builds, except more extensive as
it needs to track values through registers while for Debug builds you
will only have to look at the stack. The main limitation here are values
that were optimized out because it's cheaper to create them on the spot.

For example, an indexed load gives you an addition for free, so pointers
constructed by adding a base and an index are usually not kept around in
registers. Values like these will show up as <optimized out> in variable
dumps.

There is usually a good chance to get at least a backtrace, but
parameter information is usually wonky because the parameter space on
the stack is reused.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to