This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/testsuite/powerpc] New gdb.arch test for prologue analysis
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 19 Apr 2004 19:34:08 -0400
- Subject: Re: [RFA/testsuite/powerpc] New gdb.arch test for prologue analysis
- References: <20040419232439.GC22414@gnat.com>
On Mon, Apr 19, 2004 at 04:24:39PM -0700, Joel Brobecker wrote:
> Tested on powerpc-aix-5.1. Ok to apply?
Tested only on powerpc-aix, I can see :)
> asm (" .csect .text[PR]\n"
> " .align 2\n"
> " .lglobl .li_stw\n"
> " .csect li_stw[DS]\n"
> "li_stw:\n"
> " .long .li_stw, TOC[tc0], 0\n"
> " .csect .text[PR]\n"
> ".li_stw:\n"
> " stw 31,-4(1)\n"
> " stwu 1,-48(1)\n"
> " mr 31,1\n"
> " stw 11,24(31)\n"
> " li 0,8765\n"
> " stw 0,28(31)\n"
> " lwz 1,0(1)\n"
> " lwz 31,-4(1)\n"
> " blr\n");
AIX functions look distinctly unlike other (32-bit) PowerPC functions,
because AIX uses function descriptors and powerpc-eabi/powerpc-linux/etc
do not. This is only valid for AIX.
You should either find a way to make it work on both - unlikely to be
worth the trouble - or call this file something AIX specific.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer