about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/register-dump.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-09-17 16:06:42 +0000
committerUlrich Drepper <drepper@redhat.com>2006-09-17 16:06:42 +0000
commit9c316a45840a4277b22d34cbe6d1e221a0d5a00d (patch)
tree15f90fcc2dff96ad2dd8a8afa76d3554fca7140f /sysdeps/powerpc/powerpc32/register-dump.h
parentfb146a76a5bfbd4a7afd65a8c749715336444241 (diff)
downloadglibc-9c316a45840a4277b22d34cbe6d1e221a0d5a00d.tar.gz
glibc-9c316a45840a4277b22d34cbe6d1e221a0d5a00d.tar.xz
glibc-9c316a45840a4277b22d34cbe6d1e221a0d5a00d.zip
* sysdeps/unix/sysv/linux/sys/ptrace.h [PTRACE_SETOPTIONS,
	PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO]: Define.
	* sysdeps/unix/sysv/linux/ptrace.c [PTRACE_SETOPTIONS,
	PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO]: Check.

2006-09-16  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
	write '\0' to the fd.
	* sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
	* sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
	Change regs to unsigned long pointer from unsigned int, fix fscr
	offset.
Diffstat (limited to 'sysdeps/powerpc/powerpc32/register-dump.h')
-rw-r--r--sysdeps/powerpc/powerpc32/register-dump.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc32/register-dump.h b/sysdeps/powerpc/powerpc32/register-dump.h
index d341eea8ff..7071632083 100644
--- a/sysdeps/powerpc/powerpc32/register-dump.h
+++ b/sysdeps/powerpc/powerpc32/register-dump.h
@@ -1,5 +1,5 @@
 /* Dump registers.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2006 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
@@ -113,7 +113,7 @@ register_dump (int fd, struct sigcontext *ctx)
     }
 
   /* Write the output.  */
-  write (fd, buffer, sizeof(buffer));
+  write (fd, buffer, sizeof(buffer) - 1);
 }