*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / amd64-linux-tdep.h
index 5b960201f82af6bd5eb665b4994f998541e3f0b0..f965931d32e2e10615a3a26c9947d2ea09a3489e 100644 (file)
@@ -1,14 +1,12 @@
-/* Target-dependent definitions for GNU/Linux x86-64.
+/* Target-dependent code for GNU/Linux AMD64.
 
-   Copyright 2003, 2004  Free Software Foundation, Inc.
-
-   Contributed by Michal Ludvig, SuSE AG.
+   Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #ifndef AMD64_LINUX_TDEP_H
 #define AMD64_LINUX_TDEP_H
 
-/* Fill GDB's register array with the general-purpose register values
-   in *GREGSETP.  */
-
-void amd64_linux_supply_gregset (char *regp);
+/* Like for i386 GNU/Linux, there is an extra "register"
+   used to control syscall restarting.  */
 
-/* Fill register REGNO (if it is a general-purpose register) in
-   *GREGSETPS with the value in GDB's register array.  If REGNO is -1,
-   do this for all registers.  */
+/* Register number for the "orig_rax" register.  If this register
+   contains a value >= 0 it is interpreted as the system call number
+   that the kernel is supposed to restart.  */
+#define AMD64_LINUX_ORIG_RAX_REGNUM (AMD64_MXCSR_REGNUM + 1)
 
-void amd64_linux_fill_gregset (char *regp, int regno);
+/* Total number of registers for GNU/Linux.  */
+#define AMD64_LINUX_NUM_REGS (AMD64_LINUX_ORIG_RAX_REGNUM + 1)
 
 #endif /* amd64-linux-tdep.h */
This page took 0.024298 seconds and 4 git commands to generate.