/* addrmap.h --- interface to address map data structure.
- Copyright (C) 2007-2021 Free Software Foundation, Inc.
+ Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of GDB.
void *obj);
/* Return the object associated with ADDR in MAP. */
-void *addrmap_find (struct addrmap *map, CORE_ADDR addr);
+void *addrmap_find (const addrmap *map, CORE_ADDR addr);
/* Create a fixed address map which is a copy of the mutable address
map ORIGINAL. Allocate entries in OBSTACK. */
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 */