summaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
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
commiteb0685ed46af368faadcf3bfbab18ac226cb8344 (patch)
tree7954710107f286e0efbb40c2e44b4447b8a28e36 /gdb/infptrace.c
parent9d2b1835c6efede5ca336607e42492923a8fc8fa (diff)
downloadgdb-eb0685ed46af368faadcf3bfbab18ac226cb8344.tar.gz
* 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/infptrace.c')
-rw-r--r--gdb/infptrace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 561d2bc1ab4..3b83fc79438 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;
}