diff options
author | Tom Tromey <tom@tromey.com> | 2021-08-06 13:52:23 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-08-10 15:24:42 -0600 |
commit | 192786c72a36388dcf99e21b0335eca0977f3435 (patch) | |
tree | c64e73b3e1af207bbbf89b57a4a8a74168884906 /gdb/addrmap.h | |
parent | 69eadcc9eacf8d4a99ecfcb29c9fbb4eb398b9d8 (diff) | |
download | binutils-192786c72a36388dcf99e21b0335eca0977f3435.zip binutils-192786c72a36388dcf99e21b0335eca0977f3435.tar.gz binutils-192786c72a36388dcf99e21b0335eca0977f3435.tar.bz2 |
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.
Diffstat (limited to 'gdb/addrmap.h')
-rw-r--r-- | gdb/addrmap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/addrmap.h b/gdb/addrmap.h index 4b1a596..5286a92 100644 --- a/gdb/addrmap.h +++ b/gdb/addrmap.h @@ -104,4 +104,10 @@ typedef gdb::function_view<int (CORE_ADDR start_addr, void *obj)> returns 0. */ int addrmap_foreach (struct addrmap *map, addrmap_foreach_fn fn); +/* Dump the addrmap to OUTFILE. If PAYLOAD is non-NULL, only dump any + components that map to PAYLOAD. (If PAYLOAD is NULL, the entire + map is dumped.) */ +void addrmap_dump (struct addrmap *map, struct ui_file *outfile, + void *payload); + #endif /* ADDRMAP_H */ |