about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-03-27 11:08:02 +0000
committerAndreas Jaeger <aj@suse.de>2002-03-27 11:08:02 +0000
commit46a1b87510bd9204d4e5f86d16e2277aa86b4639 (patch)
tree29ef7b6867cff2373ed010b0b86afc3807d76f17 /sysdeps/unix
parent49f8b030aa37dc37fc5d9a3ce1ba0297ddc082ff (diff)
downloadglibc-46a1b87510bd9204d4e5f86d16e2277aa86b4639.tar.gz
glibc-46a1b87510bd9204d4e5f86d16e2277aa86b4639.tar.xz
glibc-46a1b87510bd9204d4e5f86d16e2277aa86b4639.zip
Update.
2002-03-27  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
	sigcontext): Follow further kernel change.

	* sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
	kernel change.

	* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
	Change for struct sigcontext change.

	* sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
	Follow changes in struct sigcontext.

	* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
	sysycall, use wrapper instead.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h8
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/register-dump.h35
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h4
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h8
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/syscalls.list1
5 files changed, 22 insertions, 34 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h b/sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h
index bedfa161ae..08d4c52b2f 100644
--- a/sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h
+++ b/sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h
@@ -134,10 +134,10 @@ struct sigcontext
   unsigned long rsp;
   unsigned long rip;
   unsigned long eflags;
-  unsigned short cs, __csh;
-  unsigned short gs, __gsh;
-  unsigned short fs, __fsh;
-  unsigned int __pad0;
+  unsigned short cs;
+  unsigned short gs;
+  unsigned short fs;
+  unsigned short __pad0;
   unsigned long err;
   unsigned long trapno;
   unsigned long oldmask;
diff --git a/sysdeps/unix/sysv/linux/x86_64/register-dump.h b/sysdeps/unix/sysv/linux/x86_64/register-dump.h
index 29e48c8315..5ce3a92590 100644
--- a/sysdeps/unix/sysv/linux/x86_64/register-dump.h
+++ b/sysdeps/unix/sysv/linux/x86_64/register-dump.h
@@ -67,7 +67,7 @@ hexvalue (unsigned long int value, char *buf, size_t len)
 static void
 register_dump (int fd, struct sigcontext *ctx)
 {
-  char regs[29][16];
+  char regs[25][16];
   char fpregs[30][8];
   char xmmregs[16][32];
   struct iovec iov[147];
@@ -104,16 +104,13 @@ register_dump (int fd, struct sigcontext *ctx)
 
   hexvalue (ctx->eflags, regs[17], 8);
   hexvalue (ctx->cs, regs[18], 4);
-  hexvalue (ctx->ds, regs[19], 4);
-  hexvalue (ctx->es, regs[20], 4);
-  hexvalue (ctx->fs, regs[21], 4);
-  hexvalue (ctx->gs, regs[22], 4);
+  hexvalue (ctx->fs, regs[19], 4);
+  hexvalue (ctx->gs, regs[20], 4);
   /* hexvalue (ctx->ss, regs[23], 4); */
-  hexvalue (ctx->trapno, regs[24], 8);
-  hexvalue (ctx->err, regs[25], 8);
-  hexvalue (ctx->oldmask, regs[26], 8);
-  hexvalue (ctx->rsp_at_signal, regs[27], 16);
-  hexvalue (ctx->cr2, regs[28], 8);
+  hexvalue (ctx->trapno, regs[21], 8);
+  hexvalue (ctx->err, regs[22], 8);
+  hexvalue (ctx->oldmask, regs[23], 8);
+  hexvalue (ctx->cr2, regs[24], 8);
 
   /* Generate the output.  */
   ADD_STRING ("Register dump:\n\n RAX: ");
@@ -154,28 +151,22 @@ register_dump (int fd, struct sigcontext *ctx)
   ADD_MEM (regs[17], 8);
   ADD_STRING ("\n\n CS: ");
   ADD_MEM (regs[18], 4);
-  ADD_STRING ("   DS: ");
-  ADD_MEM (regs[19], 4);
-  ADD_STRING ("   ES: ");
-  ADD_MEM (regs[20], 4);
   ADD_STRING ("   FS: ");
-  ADD_MEM (regs[21], 4);
+  ADD_MEM (regs[19], 4);
   ADD_STRING ("   GS: ");
-  ADD_MEM (regs[22], 4);
+  ADD_MEM (regs[20], 4);
   /*
   ADD_STRING ("   SS: ");
   ADD_MEM (regs[23], 4);
   */
   ADD_STRING ("\n\n Trap: ");
-  ADD_MEM (regs[24], 8);
+  ADD_MEM (regs[21], 8);
   ADD_STRING ("   Error: ");
-  ADD_MEM (regs[25], 8);
+  ADD_MEM (regs[22], 8);
   ADD_STRING ("   OldMask: ");
-  ADD_MEM (regs[26], 8);
-  ADD_STRING ("\n RSP/signal: ");
-  ADD_MEM (regs[27], 8);
+  ADD_MEM (regs[23], 8);
   ADD_STRING ("   CR2: ");
-  ADD_MEM (regs[28], 8);
+  ADD_MEM (regs[24], 8);
 
   if (ctx->fpstate != NULL)
     {
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h b/sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
index 38d6fd6a86..3d566f9bc0 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 #define SIGCONTEXT_EXTRA_ARGS
 #define GET_PC(ctx)	((void *) ctx.rip)
 #define GET_FRAME(ctx)	((void *) ctx.rbp)
-#define GET_STACK(ctx)	((void *) ctx.rsp_at_signal)
+#define GET_STACK(ctx)	((void *) ctx.rsp)
 
 #define CALL_SIGHANDLER(handler, signo, ctx) \
   (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx))
diff --git a/sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h b/sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h
index 30d8f95891..826f3b5dea 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h
@@ -33,7 +33,7 @@
 typedef long int greg_t;
 
 /* Number of general registers.  */
-#define NGREG	27
+#define NGREG	21
 
 /* Container for all general registers.  */
 typedef greg_t gregset_t[NGREG];
@@ -78,10 +78,8 @@ enum
 # define REG_RIP	REG_RIP
   REG_EFL,
 # define REG_EFL	REG_EFL
-  REG_CSGS,		/* Actually short cs, __csh, gs, __gsh.  */
-# define REG_CSGS	REG_CSGS
-  REG_FS,		/* Actually short gs, __fsh, pad.  */
-# define REG_FS		REG_FS
+  REG_CSGSFS,		/* Actually short cs, gs, fs, __pad0.  */
+# define REG_CSGSFS	REG_CSGSFS
   REG_ERR,
 # define REG_ERR	REG_ERR
   REG_TRAPNO
diff --git a/sysdeps/unix/sysv/linux/x86_64/syscalls.list b/sysdeps/unix/sysv/linux/x86_64/syscalls.list
index 78c72a9044..8b451137ab 100644
--- a/sysdeps/unix/sysv/linux/x86_64/syscalls.list
+++ b/sysdeps/unix/sysv/linux/x86_64/syscalls.list
@@ -13,7 +13,6 @@ getrlimit	-	getrlimit	i:ip	__getrlimit	getrlimit getrlimit64
 setrlimit	-	setrlimit	i:ip	__setrlimit	setrlimit64 setrlimit
 ftruncate	-	ftruncate	i:ii	__ftruncate	ftruncate ftruncate64 __ftruncate64
 truncate	-	truncate	i:si	truncate	truncate64
-ptrace		-	ptrace		i:iipp	__ptrace	ptrace
 
 # semaphore and shm system calls
 msgctl		-	msgctl		i:iip	__msgctl	msgctl