]> Git Repo - binutils.git/commit
Introduce htab_delete_entry
authorTom Tromey <[email protected]>
Wed, 26 May 2021 13:02:51 +0000 (07:02 -0600)
committerTom Tromey <[email protected]>
Wed, 26 May 2021 13:02:51 +0000 (07:02 -0600)
commitef5f598ca6483ff965047df7f7e8697a70860527
tree3e90ee19b538abef8a247e588efb90d528015775
parentfe1f847d9a73c090527d2620eb9883185351aea0
Introduce htab_delete_entry

In a bigger series I'm working on, it is convenient to have a
libiberty hash table that manages objects allocated with 'new'.  To
make this simpler, I wrote a small template function to serve as a
concise wrapper.  Then I realized that this could be reused in a few
other places.

gdb/ChangeLog
2021-05-26  Tom Tromey  <[email protected]>

* dwarf2/read.c (allocate_type_unit_groups_table)
(handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
htab_delete_entry.
(free_line_header_voidp): Remove.
* completer.c
(completion_tracker::completion_hash_entry::deleter): Remove.
(completion_tracker::discard_completions): Use htab_delete_entry.
* utils.h (htab_delete_entry): New template function.
gdb/ChangeLog
gdb/completer.c
gdb/dwarf2/read.c
gdb/utils.h
This page took 0.02753 seconds and 4 git commands to generate.