Adjust "maint info program-spaces" to per-inferior target stack
authorPedro Alves <pedro@palves.net>
Fri, 28 Aug 2020 23:11:35 +0000 (00:11 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 28 Aug 2020 23:55:58 +0000 (00:55 +0100)
commitf7c7700d3241d862512b1fe5bebc0fc74c4470d9
treeeda0577343b95c8ffcef4fd5d4ef286dfdf4279d
parent8f57f343104b8d3632e65ac1fbb12ee69891ef5f
Adjust "maint info program-spaces" to per-inferior target stack

By inspection, I noticed that print_program_space is calling
target_pid_to_str on the wrong target stack.  Most targets print a
process pid the same way, so it isn't actually visible.

gdb/ChangeLog:

* progspace.c (print_program_space): Use all_inferiors.  Switch to
the inferior before calling target_pid_to_str.
gdb/ChangeLog
gdb/progspace.c