From 4deab7378b2e02751de8e835f30b2233685afefd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 30 Sep 2003 13:23:49 +0000 Subject: [PATCH] 2003-09-30 Andrew Cagney * 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. --- gdb/ChangeLog | 7 +++++++ gdb/gnu-nat.c | 2 +- gdb/remote-vx68.c | 8 ++++---- gdb/remote-vxmips.c | 8 ++++---- gdb/remote-vxsparc.c | 8 ++++---- 5 files changed, 20 insertions(+), 13 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 61ded4b6525..93fbbad4d36 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-09-30 Andrew Cagney + + * 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 * infcall.c (call_function_by_hand): Fix build failure diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index a75b16921da..a61d577f839 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 3e21fe6b602..8cdac6f0278 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 28a4070b751..861ef6814e8 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 339b99ff298..c43db2645d8 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. */ -- 2.30.2