In debug mode using gdb
, I can see that a function is consuming a variable, called h. I would like to know which gdb
command to use to find the location (i.e. declaration of the variable or definition of another function calculating the variable) in the source code where h is calculated before being consumed by the said (second) function.
(gdb) p h
$1 = 2.556769473467e+33
(gdb) "a command to show the function that calculated h"