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


> Tested only on powerpc-aix, I can see :)

;-P

> > 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.

I knew it was too easy...

> 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.

Here's a new version of the new files, where the files were renamed
to include aix. I also changed the check at the begining of the testcase
to only activate the test for powerpc-*-aix* targets.

2004-04-19  Joel Brobecker  <brobecker@gnat.com>

        * gdb.arch/powerpc-aix-prologue.c: New file.
        * gdb.arch/powerpc-aix-prologue.exp: New file.

2004-04-19  Joel Brobecker  <brobecker@gnat.com>

        * config/djgpp/fnchange.lst: Add translation rules for
        gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.

-- 
Joel

Attachment: powerpc-aix-prologue.c
Description: Text document

Attachment: powerpc-aix-prologue.exp
Description: Text document

Attachment: fnchange.lst.diff
Description: Text document


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