problem with info symbol

2009-01-03 Thread M Jalili
hi
i compile my c program with gcc 4.3.1 by this command:
gcc -o prog1.out  prog1.c -ggdb
then is use gdb to fetch some information in run time.
gdb -e prog1.out -s prog1.out 
and when is use "info symbol var1" (var1 is a variable)i receve this message:
"symbol var1 is a variable with complex or multiple location. (dwarf2)"
please help me.
thanks
i use gdb 6.8


  ___
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb


Re: problem with info symbol

2009-01-04 Thread Eli Zaretskii
> Date: Sat, 3 Jan 2009 23:45:20 -0800 (PST)
> From: M Jalili 
> 
> i compile my c program with gcc 4.3.1 by this command:
> gcc -o prog1.out  prog1.c -ggdb
> then is use gdb to fetch some information in run time.
> gdb -e prog1.out -s prog1.out 
> and when is use "info symbol var1" (var1 is a variable)i receve this message:
> "symbol var1 is a variable with complex or multiple location. (dwarf2)"
> please help me.

Compile with -O0, and if that doesn't help, declare var1 as
`volatile'.



___
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb