Generalize addrmap dumping
authorTom Tromey <tom@tromey.com>
Fri, 6 Aug 2021 19:52:23 +0000 (13:52 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 10 Aug 2021 21:24:42 +0000 (15:24 -0600)
commit192786c72a36388dcf99e21b0335eca0977f3435
treec64e73b3e1af207bbbf89b57a4a8a74168884906
parent69eadcc9eacf8d4a99ecfcb29c9fbb4eb398b9d8
Generalize addrmap dumping

While debugging another patch series, I wanted to dump an addrmap.  I
came up with this patch, which generalizes the addrmap-dumping code
from psymtab.c and moves it to addrmap.c.  psymtab.c is changed to use
the new code.
gdb/addrmap.c
gdb/addrmap.h
gdb/psymtab.c