This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Complex location


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]