This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/testsuite/powerpc] New gdb.arch test for prologue analysis


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]