aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-07-31 05:05:05 +0000
committerMark Kettenis <kettenis@gnu.org>2004-07-31 05:05:05 +0000
commit2689df5aa9478f9be260bfa887e967236d6e0284 (patch)
tree3b255e411b2c4a702db4d6a0e9f2926bbc7bd41f /gdb
parent5d0804606e11e16b7f785ff0a1bdcbebbb30a337 (diff)
downloadbinutils-2689df5aa9478f9be260bfa887e967236d6e0284.zip
binutils-2689df5aa9478f9be260bfa887e967236d6e0284.tar.gz
binutils-2689df5aa9478f9be260bfa887e967236d6e0284.tar.bz2
* infptrace.c: Update copyright year.
(fetch_register): Pass NULL in regcache_raw_supply call instead of explicitly setting the buffer to all zeroes.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/infptrace.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 732224f..fab22a0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2004-07-31 Mark Kettenis <kettenis@gnu.org>
+ * infptrace.c: Update copyright year.
+ (fetch_register): Pass NULL in regcache_raw_supply call instead of
+ explicitly setting the buffer to all zeroes.
+
* sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
(sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 561d2bc..3b83fc7 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -1,6 +1,6 @@
/* Low level Unix child interface to ptrace, for GDB when running under Unix.
Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
- 1998, 1999, 2000, 2001, 2002
+ 1998, 1999, 2000, 2001, 2002, 2004
Free Software Foundation, Inc.
This file is part of GDB.
@@ -374,8 +374,7 @@ fetch_register (int regno)
if (CANNOT_FETCH_REGISTER (regno))
{
- memset (buf, '\0', DEPRECATED_REGISTER_RAW_SIZE (regno)); /* Supply zeroes */
- regcache_raw_supply (current_regcache, regno, buf);
+ regcache_raw_supply (current_regcache, regno, NULL);
return;
}