From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30591 invoked by alias); 18 Jan 2007 16:20:00 -0000 Received: (qmail 30580 invoked by uid 22791); 18 Jan 2007 16:19:59 -0000 X-Spam-Check-By: sourceware.org Received: from mxout.hispeed.ch (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Jan 2007 16:19:53 +0000 Received: from indel.ch (84-73-11-232.dclient.hispeed.ch [84.73.11.232]) by smtp.hispeed.ch (8.12.11.20060308/8.12.11/taifun-1.0) with SMTP id l0IGJnlt013149 for ; Thu, 18 Jan 2007 17:19:49 +0100 Received: from FABI.indel.ch [192.168.1.91] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Thu, 18 Jan 2007 17:19:39 +0100 Message-Id: <5.2.0.9.1.20070118170619.01863050@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 18 Jan 2007 16:20:00 -0000 To: gdb@sourceware.org From: Fabian Cenedese Subject: Complex location Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sourceware.org X-Return-Path: cenedese@indel.ch X-Virus-Status: Clean X-DCC-spamcheck-01.tornado.cablecom.ch-Metrics: smtp-01.tornado.cablecom.ch 1377; Body=1 Fuz1=1 Fuz2=1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00281.txt.bz2 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