Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: Michal Ludvig <mludvig@suse.cz>
Cc: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] Asm testsuite for x86-64
Date: Wed, 05 Jun 2002 15:38:00 -0000	[thread overview]
Message-ID: <3CFE8F57.51CF392B@redhat.com> (raw)
In-Reply-To: <3CFE039D.8020203@suse.cz>

Michal Ludvig wrote:
> 
> Hi all,
> This patch adds x86-64 as a supported target for gdb.asm testsuite.
> 
> OK to commit?

Blessed.   ;-)

> 
> 2002-05-06  Michal Ludvig  <mludvig@suse.cz>
> 
>         * gdb.asm/asm-source.exp: Add x86-64 terget.
>         * gdb.asm/x86_64.inc: New.
> 
> Michal Ludvig
> --
> * SuSE CR, s.r.o     * mludvig@suse.cz
> * +420 2 9654 5373   * http://www.suse.cz
> 
>   ------------------------------------------------------------------------
> Index: asm-source.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
> retrieving revision 1.24
> diff -c -3 -p -r1.24 asm-source.exp
> *** asm-source.exp      14 May 2002 10:25:32 -0000      1.24
> --- asm-source.exp      5 Jun 2002 12:21:23 -0000
> *************** if [istarget "d10v-*-*"] then {
> *** 47,52 ****
> --- 47,56 ----
>   if [istarget "s390-*-*"] then {
>       set asm-arch s390
>   }
> + if [istarget "x86_64-*-*"] then {
> +     set asm-arch x86_64
> +     set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
> + }
>   if [istarget "i\[3456\]86-*-*"] then {
>       set asm-arch i386
>   }
> Index: x86_64.inc
> ===================================================================
> RCS file: x86_64.inc
> diff -N x86_64.inc
> *** /dev/null   1 Jan 1970 00:00:00 -0000
> --- x86_64.inc  5 Jun 2002 12:21:23 -0000
> ***************
> *** 0 ****
> --- 1,39 ----
> +       comment "subroutine prologue"
> +       .macro gdbasm_enter
> +       push    %rbp
> +       mov     %rsp,%rbp
> +       .endm
> +
> +       comment "subroutine epilogue"
> +       .macro gdbasm_leave
> +       pop     %rbp
> +       ret
> +       .endm
> +
> +       .macro gdbasm_call subr
> +       call    \subr
> +       .endm
> +
> +       .macro gdbasm_several_nops
> +       nop
> +       nop
> +       nop
> +       nop
> +       .endm
> +
> +       comment "exit (0)"
> +       .macro gdbasm_exit0
> +       hlt
> +       .endm
> +
> +       comment "crt0 startup"
> +       .macro gdbasm_startup
> +       xor     %rbp, %rbp
> +       .endm
> +
> +       comment "Declare a data variable"
> +       .macro gdbasm_datavar name value
> +       .data
> + \name:
> +       .long   \value
> +       .endm


      parent reply	other threads:[~2002-06-05 22:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-05  5:27 Michal Ludvig
2002-06-05  6:10 ` Eli Zaretskii
2002-06-05  8:50   ` Michal Ludvig
2002-06-05 15:38 ` Michael Snyder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CFE8F57.51CF392B@redhat.com \
    --to=msnyder@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mludvig@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox