From 7531f36e8e7f241cdf8d03ceb99af99f1a784ec0 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Thu, 4 Jan 1996 21:09:59 +0000 Subject: Changes to hexdump "struct user" for child process on some configurations that use ptrace(). This is not as useful as doing a full dump in a human readable format, but is better than nothing when you are trying to verify what is actually in the user struct. * infptrace.c (udot_info): New function. (PT_*): Define each individually if that one is not defined. Update copyright to 1996. * rs6000-nat.c (kernel_u_size): New function Include for "struct user" Update copyright to 1996. * alpha-nat.c (kernel_u_size): New function. Include for "struct user" Update copyright to 1996. * sparc-nat.c (kernel_u_size): New function. Include for "struct user" Update copyright to 1996. * i386b-nat.c (kernel_u_size): New function. Update copyright to 1996. * i386v-nat.c (kernel_u_size): New function. Update copyright to 1996. * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define. (kernel_u_size): Declare. Update copyright to 1996. * config/i386/nm-linux.h (KERNEL_U_SIZE): Define. (kernel_u_size): Declare. Update copyright to 1996. * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define. (kernel_u_size): Declare. Update copyright to 1996. * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define. (kernel_u_size): Declare. Update copyright to 1996. * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define. (kernel_u_size): Declare. Update copyright to 1996. --- gdb/i386v-nat.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb/i386v-nat.c') diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c index e2ca8326c86..38468a90277 100644 --- a/gdb/i386v-nat.c +++ b/gdb/i386v-nat.c @@ -1,5 +1,5 @@ /* Intel 386 native support for SYSV systems (pre-SVR4). - Copyright (C) 1988, 1989, 1991, 1992, 1994 Free Software Foundation, Inc. + Copyright (C) 1988, 1989, 1991, 1992, 1994, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -93,6 +93,12 @@ i386_register_u_addr (blockend, regnum) } +int +kernel_u_size () +{ + return (sizeof (struct user)); +} + #ifdef TARGET_HAS_HARDWARE_WATCHPOINTS #if !defined (offsetof) -- cgit v1.2.1