This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Complex location
- From: Daniel Jacobowitz <drow at false dot org>
- To: Fabian Cenedese <Cenedese at indel dot ch>
- Cc: gdb at sourceware dot org
- Date: Thu, 18 Jan 2007 11:32:41 -0500
- Subject: Re: Complex location
- References: <5.2.0.9.1.20070118170619.01863050@NT_SERVER>
On Thu, Jan 18, 2007 at 05:19:26PM +0100, Fabian Cenedese wrote:
> Hi
>
> Gdb (6.5) often just says:
>
> (gdb) info scope Inos.cpp:556
> Scope for Inos.cpp:556:
> Symbol this is a variable with complex or multiple locations (DWARF2), length 4.
> Symbol var1 is a variable with complex or multiple locations (DWARF2), length 4.
> Symbol var2 is a variable with complex or multiple locations (DWARF2), length 4.
>
> However how can this be complex?
Ask the compiler. It probably moves from one register to another at
some point in the life of the function.
> "In general, we need a location expression pretty-printer - this is
> quite complicated, so no one's done it yet."
>
> Seems like that is still the case, is that correct?
Yes. I know this bugs Jim too :-)
--
Daniel Jacobowitz
CodeSourcery