Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Complex location
@ 2007-01-18 16:20 Fabian Cenedese
  2007-01-18 16:32 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Cenedese @ 2007-01-18 16:20 UTC (permalink / raw)
  To: gdb

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?

void CClass::DoIt()
{
	CObject* var1=(CObject*)0x12345678;
	CObject* var2=(CObject*)0x23232323;
...

Shouldn't gdb be able to say something like "variable on stack at offset 0x10" or
something along this?

The only thing I could find is:
http://sourceware.org/ml/gdb/2003-07/msg00243.html

"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?

Thanks

Bye   Fabi



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Complex location
  2007-01-18 16:20 Complex location Fabian Cenedese
@ 2007-01-18 16:32 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-01-18 16:32 UTC (permalink / raw)
  To: Fabian Cenedese; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-18 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-18 16:20 Complex location Fabian Cenedese
2007-01-18 16:32 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox