From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1048 invoked by alias); 9 May 2006 17:17:14 -0000 Received: (qmail 1040 invoked by uid 22791); 9 May 2006 17:17:14 -0000 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.31) with ESMTP; Tue, 09 May 2006 17:17:12 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e1.ny.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k49HH91Z007129 for ; Tue, 9 May 2006 13:17:09 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k49HHAR6241126 for ; Tue, 9 May 2006 13:17:10 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11/8.13.3) with ESMTP id k49HH9oS018983 for ; Tue, 9 May 2006 13:17:09 -0400 Received: from dufur.beaverton.ibm.com (dufur.beaverton.ibm.com [9.47.22.20]) by d01av04.pok.ibm.com (8.12.11/8.12.11) with ESMTP id k49HH9fl018922; Tue, 9 May 2006 13:17:09 -0400 Subject: Re: Use DWARF CFI frame unwinder on powerpc From: PAUL GILLIAM Reply-To: pgilliam@us.ibm.com To: Andreas Schwab Cc: gdb-patches@sourceware.org In-Reply-To: References: Content-Type: text/plain Date: Tue, 09 May 2006 17:17:00 -0000 Message-Id: <1147195124.16180.44.camel@dufur.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-5) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00167.txt.bz2 On Tue, 2006-05-09 at 16:16 +0200, Andreas Schwab wrote: > Together with the previous patch this enables the use of the DWARF CFI > frame unwinder on powerpc. I applied your patches and gave them a spin and had a slight problem... Here is the source for the target program: #include void hello () { printf ("Hello, world!\n"); } int main() { hello(); return 0; } Here is a transcript: [pgilliam@dufur gdb]$ ./gdb ../../hello32 GNU gdb 6.4.50.20060509-cvs Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc64-unknown-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". Setting up the environment for debugging gdb. Function "internal_error" not defined. Function "info_command" not defined. /home/pgilliam/gdb/tree-head/build32/gdb/.gdbinit:8: Error in sourced command file: No breakpoint number 0. (gdb) b hello Breakpoint 1 at 0x10000464: file hello.c, line 5. (gdb) r Starting program: /home/pgilliam/gdb/tree-head/hello32 Breakpoint 1, hello () at hello.c:5 5 printf ("Hello, world!\n"); (gdb) n >>>>During symbol reading, incomplete CFI data; unspecified registers >>>>(e.g., r0) at 0x10000464. Hello, world! 6 } (gdb) q The program is running. Exit anyway? (y or n) y Do I need a flag other then -g when compiling to get CFI data? This was on a ppc64 system, 32-bit GDB, 32-bit target program. I got the same results with 64-bit GDB, 32 and 64-bit target programs. -=# Paul #=-