diff options
author | Doug Evans <dje@google.com> | 2012-01-02 00:23:50 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-01-02 00:23:50 +0000 |
commit | 68dc6402dcfed1d694572f8f20b4773c32c745a3 (patch) | |
tree | f40e7c56dd661bfeaa5f602e1b670751af2849a0 /gdb/dwarf2read.c | |
parent | 9cdd5dbd276eb18555c513042be3b372102e7a73 (diff) | |
download | gdb-68dc6402dcfed1d694572f8f20b4773c32c745a3.zip gdb-68dc6402dcfed1d694572f8f20b4773c32c745a3.tar.gz gdb-68dc6402dcfed1d694572f8f20b4773c32c745a3.tar.bz2 |
* dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
All callers updated.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 838decd..b0c4dd0 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1277,7 +1277,7 @@ static void init_one_comp_unit (struct dwarf2_cu *cu, static void prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die); -static void free_one_comp_unit (void *); +static void free_heap_comp_unit (void *); static void free_cached_comp_units (void *); @@ -3714,7 +3714,7 @@ load_partial_comp_unit (struct dwarf2_per_cu_data *this_cu, read_cu = 1; /* If an error occurs while loading, release our storage. */ - free_cu_cleanup = make_cleanup (free_one_comp_unit, cu); + free_cu_cleanup = make_cleanup (free_heap_comp_unit, cu); info_ptr = partial_read_comp_unit_head (&cu->header, info_ptr, dwarf2_per_objfile->info.buffer, @@ -4731,7 +4731,7 @@ load_full_comp_unit (struct dwarf2_per_cu_data *per_cu, read_cu = 1; /* If an error occurs while loading, release our storage. */ - free_cu_cleanup = make_cleanup (free_one_comp_unit, cu); + free_cu_cleanup = make_cleanup (free_heap_comp_unit, cu); /* Read in the comp_unit header. */ info_ptr = read_comp_unit_head (&cu->header, info_ptr, abfd); @@ -14429,7 +14429,7 @@ read_signatured_type (struct objfile *objfile, cu->per_cu = &type_sig->per_cu; /* If an error occurs while loading, release our storage. */ - free_cu_cleanup = make_cleanup (free_one_comp_unit, cu); + free_cu_cleanup = make_cleanup (free_heap_comp_unit, cu); types_ptr = read_type_comp_unit_head (&cu->header, section, &signature, types_ptr, objfile->obfd); @@ -15895,7 +15895,7 @@ prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die) cleanup routine. */ static void -free_one_comp_unit (void *data) +free_heap_comp_unit (void *data) { struct dwarf2_cu *cu = data; @@ -15951,7 +15951,7 @@ free_cached_comp_units (void *data) next_cu = per_cu->cu->read_in_chain; - free_one_comp_unit (per_cu->cu); + free_heap_comp_unit (per_cu->cu); *last_chain = next_cu; per_cu = next_cu; @@ -15986,7 +15986,7 @@ age_cached_comp_units (void) if (!per_cu->cu->mark) { - free_one_comp_unit (per_cu->cu); + free_heap_comp_unit (per_cu->cu); *last_chain = next_cu; } else @@ -16013,7 +16013,7 @@ free_one_cached_comp_unit (void *target_cu) if (per_cu->cu == target_cu) { - free_one_comp_unit (per_cu->cu); + free_heap_comp_unit (per_cu->cu); *last_chain = next_cu; break; } |