Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michal Ludvig <mludvig@suse.cz>
To: gdb-patches@sources.redhat.com
Subject: [patch] Re: x86-64-tdep.h cleanup
Date: Thu, 07 Mar 2002 05:30:00 -0000	[thread overview]
Message-ID: <3C877978.2030903@suse.cz> (raw)
In-Reply-To: <1020306173000.ZM23183@localhost.localdomain>

Kevin Buettner wrote:
> (Yes, approved.)

Thanks, for now I commited this change since noone voted against it. I 
will try to solve the other cleanup later.
Index: x86-64-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 x86-64-tdep.h
*** x86-64-tdep.h       2001/09/21 12:19:15     1.1
--- x86-64-tdep.h       2002/03/07 13:26:10
***************
*** 24,41 ****
   #define X86_64_TDEP_H

   #include "i386-tdep.h"
- #include <sys/reg.h>
-
- /* Mapping between the general-purpose registers in `struct user'
-    format and GDB's register array layout.  */
-
- static int x86_64_regmap[] = {
-   RAX, RDX, RCX, RBX,
-   RSI, RDI, RBP, RSP,
-   R8, R9, R10, R11,
-   R12, R13, R14, R15,
-   RIP, EFLAGS
- };

   /* Number of all registers */
   #define X86_64_NUM_REGS (51)
--- 24,29 ----
Index: x86-64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 x86-64-linux-nat.c
*** x86-64-linux-nat.c  2002/02/24 22:14:33     1.5
--- x86-64-linux-nat.c  2002/03/07 13:26:10
***************
*** 33,39 ****
--- 33,51 ----
   #include <sys/debugreg.h>
   #include <sys/syscall.h>
   #include <sys/procfs.h>
+ #include <sys/reg.h>

+ /* Mapping between the general-purpose registers in `struct user'
+    format and GDB's register array layout.  */
+
+ static int x86_64_regmap[] = {
+   RAX, RDX, RCX, RBX,
+   RSI, RDI, RBP, RSP,
+   R8, R9, R10, R11,
+   R12, R13, R14, R15,
+   RIP, EFLAGS
+ };
+
   static unsigned long
   x86_64_linux_dr_get (int regnum)
   {



Michal Ludvig
-- 
* SuSE CR, s.r.o     * mludvig@suse.cz
* +420 2 9654 5373   * http://www.suse.cz


  reply	other threads:[~2002-03-07 13:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-05  7:56 Michal Ludvig
2002-03-05  8:30 ` Kevin Buettner
2002-03-05 23:53   ` Andreas Jaeger
2002-03-06  2:00   ` Michal Ludvig
2002-03-06  9:30     ` Kevin Buettner
2002-03-07  5:30       ` Michal Ludvig [this message]
2002-03-06  3:09 ` Andreas Schwab
2002-03-06  8:46   ` [RFA] " Michal Ludvig
2002-03-06  9:24     ` Andreas Schwab
2002-03-06  9:35       ` Kevin Buettner
2002-03-06 10:26         ` Andrew Cagney
2002-03-06 11:02           ` Kevin Buettner

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=3C877978.2030903@suse.cz \
    --to=mludvig@suse.cz \
    --cc=gdb-patches@sources.redhat.com \
    /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