bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with info symbol


From: Eli Zaretskii
Subject: Re: problem with info symbol
Date: Sun, 04 Jan 2009 18:49:15 +0200

> Date: Sat, 3 Jan 2009 23:45:20 -0800 (PST)
> From: M Jalili <address@hidden>
> 
> 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'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]