aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-01 21:56:42 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-01 21:56:42 +0000
commit4ed97c9a835c5d05a900e66b997eb6e77a141950 (patch)
tree3aac1dc65931f319327cf00df82e4fe0efc7b40d /gdb/xcoffread.c
parent9823e3f4c985eb5919103cc84acf2a6055ed724f (diff)
downloadgdb-4ed97c9a835c5d05a900e66b997eb6e77a141950.zip
gdb-4ed97c9a835c5d05a900e66b997eb6e77a141950.tar.gz
gdb-4ed97c9a835c5d05a900e66b997eb6e77a141950.tar.bz2
bzero -> memset
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 4abaee9..960d2d8 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -426,7 +426,7 @@ struct coff_symbol *cs;
if (inclLength == 0) {
inclTable = (InclTable*)
xmalloc (sizeof (InclTable) * INITIAL_INCLUDE_TABLE_LENGTH);
- bzero (inclTable, sizeof (InclTable) * INITIAL_INCLUDE_TABLE_LENGTH);
+ memset (inclTable, '\0', sizeof (InclTable) * INITIAL_INCLUDE_TABLE_LENGTH);
inclLength = INITIAL_INCLUDE_TABLE_LENGTH;
inclIndx = 0;
}
@@ -434,8 +434,8 @@ struct coff_symbol *cs;
inclLength += INITIAL_INCLUDE_TABLE_LENGTH;
inclTable = (InclTable*)
xrealloc (inclTable, sizeof (InclTable) * inclLength);
- bzero (inclTable+inclLength-INITIAL_INCLUDE_TABLE_LENGTH,
- sizeof (InclTable)*INITIAL_INCLUDE_TABLE_LENGTH);
+ memset (inclTable+inclLength-INITIAL_INCLUDE_TABLE_LENGTH,
+ '\0', sizeof (InclTable)*INITIAL_INCLUDE_TABLE_LENGTH);
}
inclTable [inclIndx].name = cs->c_name;
@@ -490,7 +490,7 @@ process_linenos (start, end)
if (!(offset = first_fun_line_offset))
goto return_after_cleanup;
- bzero (&main_subfile, sizeof (main_subfile));
+ memset (&main_subfile, '\0', sizeof (main_subfile));
first_fun_line_offset = 0;
if (inclIndx == 0)
@@ -519,7 +519,7 @@ process_linenos (start, end)
tmpSubfile = inclTable[ii].subfile = (struct subfile*)
xmalloc (sizeof (struct subfile));
- bzero (tmpSubfile, sizeof (struct subfile));
+ memset (tmpSubfile, '\0', sizeof (struct subfile));
firstLine = &(inclTable[ii].funStartLine);
/* enter include file's lines now. */
@@ -619,7 +619,7 @@ return_after_cleanup:
inclIndx = 0;
/* start with a fresh subfile structure for the next file. */
- bzero (&main_subfile, sizeof (struct subfile));
+ memset (&main_subfile, '\0', sizeof (struct subfile));
}
void
@@ -717,7 +717,7 @@ retrieve_tracebackinfo (abfd, textsec, cs)
int functionstart = cs->c_value - textsec->vma;
- bzero (&tbInfo, sizeof (tbInfo));
+ memset (&tbInfo, '\0', sizeof (tbInfo));
/* keep reading blocks of data from the text section, until finding a zero
word and a traceback table. */
@@ -1557,7 +1557,7 @@ process_xcoff_symbol (cs, objfile)
if (name[0] == '.')
++name;
- bzero (sym, sizeof (struct symbol));
+ memset (sym, '\0', sizeof (struct symbol));
/* default assumptions */
SYMBOL_VALUE (sym) = cs->c_value;