From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8424 invoked by alias); 17 Oct 2012 21:43:34 -0000 Received: (qmail 8416 invoked by uid 22791); 17 Oct 2012 21:43:34 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e1.ny.us.ibm.com (HELO e1.ny.us.ibm.com) (32.97.182.141) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Oct 2012 21:43:27 +0000 Received: from /spool/local by e1.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 17 Oct 2012 17:43:25 -0400 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e1.ny.us.ibm.com (192.168.1.101) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 17 Oct 2012 17:42:01 -0400 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 9E27138C8041 for ; Wed, 17 Oct 2012 17:41:59 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9HLfx7X279472 for ; Wed, 17 Oct 2012 17:41:59 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9HLfwik025759 for ; Wed, 17 Oct 2012 17:41:58 -0400 Received: from d25ml02.torolab.ibm.com (d25ml02.torolab.ibm.com [9.26.29.95]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q9HLfvDf025709 for ; Wed, 17 Oct 2012 17:41:57 -0400 To: gdb@sourceware.org MIME-Version: 1.0 Subject: Problems getting symbol information using a convenience register, X-KeepSent: 29D3ED1F:E21D654F-85257A9A:007715AA; type=4; name=$KeepSent Message-ID: From: Luc Des Trois Maisons Date: Wed, 17 Oct 2012 21:43:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12101721-6078-0000-0000-000010C9470F 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: 2012-10/txt/msg00076.txt.bz2 Hi, not sure if this is the right list: I'm trying to walk the stack and find any potential symbol information for any aligned 32 bit values. However, I'm having a problem when I try to use the convenience register with the 'info symbols' command. I poked around and I found that the convenience register works when set directly with a value, but breaks when set using a pointer dereference. I was wondering if I'm just doing things the wrong way or if this is a bug. I've tried looking for information online, as well as searching the bug database for this but have thus far found nothing. (gdb) info symbol 0xb6ca4d28 [Useful Symbol Information] (gdb) set $pointer = $esp (gdb) while ( *(int*)$pointer != 0xb6ca4d28) >set $pointer += 4 >end (gdb) x/x $pointer 0x6ebee064: 0xb6ca4d28 (gdb) set $dereferencePointer = *(int *)$pointer (gdb) p/x $dereferencePointer $103 = 0xb6ca4d28 (gdb) info symbol $dereferencePointer No symbol matches $dereferencePointer. (gdb) set $dereferencePointer = 0xb6ca4d28 (gdb) p/x $dereferencePointer $104 = 0xb6ca4d28 (gdb) info symbol $dereferencePointer [Useful symbol information] (gdb) Using GDB 7.5 on Linux to debug IA32 code. If I have the wrong list, please let me know where I can find the appropriate channel for this type question, otherwise any help is appreciated. Thanks. Luc des Trois Maisons Java JIT Compiler Development Phone: 1-905-413-3916 E-mail: lmaisons@ca.ibm.com 8200 Warden Ave Markham, ON L6G 1C7 Canada