diff options
author | Tom Tromey <tom@tromey.com> | 2021-05-26 07:02:51 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-05-26 07:02:51 -0600 |
commit | ef5f598ca6483ff965047df7f7e8697a70860527 (patch) | |
tree | 3e90ee19b538abef8a247e588efb90d528015775 /gdb/python | |
parent | fe1f847d9a73c090527d2620eb9883185351aea0 (diff) | |
download | gdb-ef5f598ca6483ff965047df7f7e8697a70860527.zip gdb-ef5f598ca6483ff965047df7f7e8697a70860527.tar.gz gdb-ef5f598ca6483ff965047df7f7e8697a70860527.tar.bz2 |
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 <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions