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 | |
parent | 9cdd5dbd276eb18555c513042be3b372102e7a73 (diff) | |
download | fsf-binutils-gdb-68dc6402dcfed1d694572f8f20b4773c32c745a3.zip fsf-binutils-gdb-68dc6402dcfed1d694572f8f20b4773c32c745a3.tar.gz fsf-binutils-gdb-68dc6402dcfed1d694572f8f20b4773c32c745a3.tar.bz2 |
* dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
All callers updated.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 16 |
2 files changed, 11 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3058470..253013c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-01-01 Doug Evans <dje@google.com> + * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit. + All callers updated. + * dwarf2read.c (dwarf2_per_objfile): Add comment. (dwarf2_elf_names): Minor reformat. (dwarf2_per_cu_data): Tweak comment. 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; } |