On 07/17/2015 02:16 PM, Kyrill Tkachov wrote:

Have you tried the -Og option?


Well, with -Og operations are not rearranged, so binary code is very
close to the source code and debugging is very straightforward. As for
debug info, it is generally the same: when I try to inspect yet
uninitialized variable, some random value is printed without warning
that the variable is uninitialized (despite -fvar-tracking-uninit
option).

If the variables were marked with DW_OP_GNU_uninit, gdb would print
something like that:

  a =  [uninitialized] 64
  b =  [uninitialized] 4198512
  c =  [uninitialized] 0


Nikolai

Reply via email to