* infptrace.c: Update copyright year.

(fetch_register): Pass NULL in regcache_raw_supply call instead of
explicitly setting the buffer to all zeroes.
This commit is contained in:
Mark Kettenis 2004-07-31 05:05:05 +00:00
parent 5d0804606e
commit 2689df5aa9
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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;
}