This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Small cleanup for infptrace.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 31 Jul 2004 07:05:08 +0200 (CEST)
- Subject: [PATCH] Small cleanup for infptrace.c
Committed as obvious.
Mark
Index: ChangeLog
from 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.
Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.33
diff -u -p -r1.33 infptrace.c
--- infptrace.c 24 Jul 2004 01:00:19 -0000 1.33
+++ infptrace.c 31 Jul 2004 05:03:33 -0000
@@ -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;
}