I think I can propose a workaround.

As far as I know the symbol is generated from the module name and the
variable name:

$ nm a.out |grep dummy
0000000000600d88 D __dummy__m
00000000004007e0 t frame_dummy

Here, "__dummy__m" seems to be the considered variable. Let's try it:

$ gdb ...

(gdb) p alpha
$1 = 0.300000012
(gdb) p __dummy__m
$2 = 3
(gdb) quit
$

So you can use nm and grep to find the symbol you need.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to