This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Use DWARF CFI frame unwinder on powerpc
- From: PAUL GILLIAM <pgilliam at us dot ibm dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 09 May 2006 10:18:44 -0700
- Subject: Re: Use DWARF CFI frame unwinder on powerpc
- References: <jehd3z1dy7.fsf@sykes.suse.de>
- Reply-to: pgilliam at us dot ibm dot com
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 <stdio.h>
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 #=-