aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-01-04 21:09:59 +0000
committerFred Fish <fnf@specifix.com>1996-01-04 21:09:59 +0000
commit7531f36e8e7f241cdf8d03ceb99af99f1a784ec0 (patch)
tree910bf1c43111e1082245bba5a47babcf481729c5 /gdb/rs6000-nat.c
parent5c5e420c9be3e395a456cec696af4aa27178c717 (diff)
downloadgdb-7531f36e8e7f241cdf8d03ceb99af99f1a784ec0.zip
gdb-7531f36e8e7f241cdf8d03ceb99af99f1a784ec0.tar.gz
gdb-7531f36e8e7f241cdf8d03ceb99af99f1a784ec0.tar.bz2
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 <sys/user.h> for "struct user" Update copyright to 1996. * alpha-nat.c (kernel_u_size): New function. Include <sys/user.h> for "struct user" Update copyright to 1996. * sparc-nat.c (kernel_u_size): New function. Include <sys/user.h> 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.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 51ddf44..436fa04 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -1,5 +1,5 @@
/* IBM RS/6000 native-dependent code for GDB, the GNU debugger.
- Copyright 1986, 1987, 1989, 1991, 1992, 1994, 1995
+ Copyright 1986, 1987, 1989, 1991, 1992, 1994, 1995, 1996
Free Software Foundation, Inc.
This file is part of GDB.
@@ -787,3 +787,10 @@ xcoff_relocate_core (target)
breakpoint_re_set ();
do_cleanups (old);
}
+
+int
+kernel_u_size ()
+{
+ return (sizeof (struct user));
+}
+