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]

[RFA] x86-64 bugfixes x86-64 target 2



Index: ChangeLog
from  Jiri Smid  <smid@suse.cz>

	* x86-64-tdep.h (sys/reg.h): Delete.
	(R15, R14, R13, R12, RBP, RBX, R11, R10, R9, R8, RAX, RCX, RDX,
	RSI, RDI, ORIG, RIP, CS, EFLAGS, RSP, SS): Define - this
	definition can't come from reg.h because of cross-debugging.

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	2001/12/20 07:45:10
***************
*** 24,30 ****
  #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.  */
--- 24,53 ----
  #define X86_64_TDEP_H
  
  #include "i386-tdep.h"
! 
! /*  This is from sys/reg.h. It can't be included directly because of
!     cross-debugging.  */
! #define R15	0
! #define R14	1
! #define R13	2
! #define R12	3
! #define RBP	4
! #define RBX	5
! #define R11	6
! #define R10	7
! #define R9	8
! #define R8	9
! #define RAX	10
! #define RCX	11
! #define RDX	12
! #define RSI	13
! #define RDI	14
! #define ORIG_RAX 15
! #define RIP	16
! #define CS	17
! #define EFLAGS	18
! #define RSP	19
! #define SS	20
  
  /* Mapping between the general-purpose registers in `struct user'
     format and GDB's register array layout.  */

-- 
Jiri Smid

---------------------------------------------------------------------
SuSE CR, s.r.o.                                 e-mail: smid@suse.cz
Drahobejlova 27                                tel:+420 2 96542 373
190 00 Praha 9                                 fax:+420 2 96542 374
Ceska republika                                http://www.suse.cz


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