From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19151 invoked by alias); 27 Oct 2008 23:10:05 -0000 Received: (qmail 19137 invoked by uid 22791); 27 Oct 2008 23:10:05 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 27 Oct 2008 23:09:23 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 5321913403 for ; Mon, 27 Oct 2008 16:09:21 -0700 (PDT) Received: from [10.20.92.59] (promb-2s-dhcp59.eng.vmware.com [10.20.92.59]) by mailhost4.vmware.com (Postfix) with ESMTP id 4714AC9A2A for ; Mon, 27 Oct 2008 16:09:21 -0700 (PDT) Message-ID: <490648CE.4090709@vmware.com> Date: Mon, 27 Oct 2008 23:10:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: gdb@sourceware.org Subject: [bug] problem printing local vars in shared lib function Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-10/txt/msg00119.txt.bz2 Does this sound familiar to anybody? X86_64... I have a local shared library function, built with -g, gdb has its symbols and can list it, step into it, step within it etc. I can print the values of the function parameters, but not the values of local (automatic) variables. These are not statics but autos on the stack. GDB complains that the memory is inaccessible when I use "print", but if I use "examine" ('x'), it works fine and displays the value. Doesn't seem to matter what the type of the variable is. Stack variables in the main executable program (ie. not in the shared library) work fine. I've even tried this with -gstabs as opposed to dwarf. Same symptom. Executable: GNU gdb 6.8-debian OS: Ubuntu Hardy (8.0.4) x86_64, kernel 2.6.24-19-generic