aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
committerKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
commitb8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch)
tree1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/xcoffread.c
parent6fa957a9b9408297206fb88e7c773931760f0528 (diff)
downloadgdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2
Replace free() with xfree().
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index fac9a2f..6bcae9a 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -443,7 +443,7 @@ arrange_linetable (struct linetable *oldLineTb)
if (function_count == 0)
{
- free (fentry);
+ xfree (fentry);
return oldLineTb;
}
else if (function_count > 1)
@@ -473,7 +473,7 @@ arrange_linetable (struct linetable *oldLineTb)
++jj, ++newline)
newLineTb->item[newline] = oldLineTb->item[jj];
}
- free (fentry);
+ xfree (fentry);
newLineTb->nitems = oldLineTb->nitems - function_count;
return newLineTb;
}
@@ -675,7 +675,7 @@ process_linenos (CORE_ADDR start, CORE_ADDR end)
}
else
{
- free (lv);
+ xfree (lv);
current_subfile->line_vector = lineTb;
}
@@ -725,7 +725,7 @@ process_linenos (CORE_ADDR start, CORE_ADDR end)
if (fakename == NULL)
fakename = " ?";
start_subfile (fakename, (char *) 0);
- free (current_subfile->name);
+ xfree (current_subfile->name);
}
current_subfile->name = xstrdup (inclTable[ii].name);
#endif
@@ -740,7 +740,7 @@ process_linenos (CORE_ADDR start, CORE_ADDR end)
}
else
{
- free (lv);
+ xfree (lv);
current_subfile->line_vector = lineTb;
}
@@ -1898,7 +1898,7 @@ xcoff_symfile_finish (struct objfile *objfile)
/* Start with a fresh include table for the next objfile. */
if (inclTable)
{
- free (inclTable);
+ xfree (inclTable);
inclTable = NULL;
}
inclIndx = inclLength = inclDepth = 0;