]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add addrmap_mutable::clear
authorTom Tromey <tom@tromey.com>
Tue, 25 Mar 2025 19:25:39 +0000 (13:25 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 1 Apr 2025 13:30:10 +0000 (07:30 -0600)
commitd33f7cc36e7fb5f53452febb28cb3189d3290fb8
tree209c970d320abf03dd016bdc55570465815dff7f
parent23ad2598a6b92643417b7a94da54aebb62469423
Add addrmap_mutable::clear

It was convenient to add a 'clear' method to addrmap_mutable.  The
cleanest way to do this was to change the class to lazily initialize
its 'tree' member.  This also makes addrmap_mutable::operator= a bit
less weird.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/addrmap.c
gdb/addrmap.h