diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/dwarfread.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index c6a24fa..7055717 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -696,10 +696,10 @@ dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff, if ((bfd_seek (abfd, dbfoff, SEEK_SET) != 0) || (bfd_read (dbbase, dbsize, 1, abfd) != dbsize)) { - free (dbbase); + xfree (dbbase); error ("can't read DWARF data from '%s'", bfd_get_filename (abfd)); } - back_to = make_cleanup (free, dbbase); + back_to = make_cleanup (xfree, dbbase); /* If we are reinitializing, or if we have never loaded syms yet, init. Since we have no idea how many DIES we are looking at, we just guess @@ -869,7 +869,7 @@ alloc_utype (DIE_REF die_ref, struct type *utypep) static void free_utypes (PTR dummy) { - free (utypes); + xfree (utypes); utypes = NULL; numutypes = 0; } @@ -2265,10 +2265,10 @@ read_ofile_symtab (struct partial_symtab *pst) if (bfd_seek (abfd, foffset, SEEK_SET) || (bfd_read (dbbase, dbsize, 1, abfd) != dbsize)) { - free (dbbase); + xfree (dbbase); error ("can't read DWARF data"); } - back_to = make_cleanup (free, dbbase); + back_to = make_cleanup (xfree, dbbase); /* If there is a line number table associated with this compilation unit then read the size of this fragment in bytes, from the fragment itself. @@ -2290,10 +2290,10 @@ read_ofile_symtab (struct partial_symtab *pst) if (bfd_seek (abfd, LNFOFF (pst), SEEK_SET) || (bfd_read (lnbase, lnsize, 1, abfd) != lnsize)) { - free (lnbase); + xfree (lnbase); error ("can't read DWARF line numbers"); } - make_cleanup (free, lnbase); + make_cleanup (xfree, lnbase); } process_dies (dbbase, dbbase + dbsize, pst->objfile); |