[PATCH] Introduce htab_delete_entry

Simon Marchi simon.marchi@polymtl.ca
Tue May 25 16:08:20 GMT 2021


On 2021-05-24 4:44 p.m., Tom Tromey wrote:
> 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.

The idea to import gcc's C++ wrapper of htab always comes up, I presume
that it takes care of that.  But it has not been done yet, so in the
mean time your patch looks like a good step forward.

Simon


More information about the Gdb-patches mailing list