aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gnu-nat.c2
-rw-r--r--gdb/remote-vx68.c8
-rw-r--r--gdb/remote-vxmips.c8
-rw-r--r--gdb/remote-vxsparc.c8
5 files changed, 20 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 61ded4b..93fbbad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-30 Andrew Cagney <cagney@redhat.com>
+
+ * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
+ * remote-vxmips.c (vx_read_register): Ditto.
+ * remote-vx68.c (vx_read_register): Ditto.
+ * gnu-nat.c (inf_validate_procs): Ditto.
+
2003-09-29 J. Brobecker <brobecker@gnat.com>
* infcall.c (call_function_by_hand): Fix build failure
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index a75b169..a61d577 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -1024,7 +1024,7 @@ inf_validate_procs (struct inf *inf)
/* The current thread we're considering. */
struct proc *thread = inf->threads;
- bzero (matched, sizeof (matched));
+ memset (matched, 0, sizeof (matched));
while (thread)
{
diff --git a/gdb/remote-vx68.c b/gdb/remote-vx68.c
index 3e21fe6..8cdac6f 100644
--- a/gdb/remote-vx68.c
+++ b/gdb/remote-vx68.c
@@ -111,10 +111,10 @@ vx_read_register (int regno)
}
else
{
- bzero (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)],
- MC68K_FPREG_SIZE * 8);
- bzero (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FPC_REGNUM)],
- MC68K_FPREG_PLEN - (MC68K_FPREG_SIZE * 8));
+ memset (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)],
+ 0, MC68K_FPREG_SIZE * 8);
+ memset (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FPC_REGNUM)],
+ 0, MC68K_FPREG_PLEN - (MC68K_FPREG_SIZE * 8));
}
/* Mark the register cache valid. */
diff --git a/gdb/remote-vxmips.c b/gdb/remote-vxmips.c
index 28a4070..861ef68 100644
--- a/gdb/remote-vxmips.c
+++ b/gdb/remote-vxmips.c
@@ -141,10 +141,10 @@ vx_read_register (int regno)
}
else
{
- bzero ((char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)],
- REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
- bzero ((char *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (FCRCS_REGNUM)],
- REGISTER_RAW_SIZE (FCRCS_REGNUM));
+ memset (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)],
+ 0, REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
+ memset (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FCRCS_REGNUM)],
+ 0, REGISTER_RAW_SIZE (FCRCS_REGNUM));
}
/* Mark the register cache valid. */
diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c
index 339b99f..c43db26 100644
--- a/gdb/remote-vxsparc.c
+++ b/gdb/remote-vxsparc.c
@@ -124,10 +124,10 @@ vx_read_register (int regno)
}
else
{
- bzero (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)],
- 32 * SPARC_FPREG_SIZE);
- bzero (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FPS_REGNUM)],
- 1 * SPARC_FPREG_SIZE);
+ memset (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)],
+ 0, 32 * SPARC_FPREG_SIZE);
+ memset (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FPS_REGNUM)],
+ 0, 1 * SPARC_FPREG_SIZE);
}
/* Mark the register cache valid. */