diff options
author | Pedro Alves <palves@redhat.com> | 2020-01-10 20:05:42 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-01-10 20:05:42 +0000 |
commit | acdf84a65400f416c60a0c9c14953ba5a73fb0cd (patch) | |
tree | dd3479b1bcc98cbd01a9ffa73900cb905622308c /gdb/ada-valprint.c | |
parent | ec506636cc0c56d4229b00d5e439c0610970f84d (diff) | |
download | gdb-acdf84a65400f416c60a0c9c14953ba5a73fb0cd.zip gdb-acdf84a65400f416c60a0c9c14953ba5a73fb0cd.tar.gz gdb-acdf84a65400f416c60a0c9c14953ba5a73fb0cd.tar.bz2 |
Make "show remote exec-file" inferior-aware
The "set remote exec-file" setting is per-inferior, but the "show
remote exec-file" command always shows the last set exec-file,
irrespective of the current inferior. E.g.:
# Set inferior 1's exec-file:
(gdb) set remote exec-file prog1
# Add inferior 2, switch to it, and set its exec-file:
(gdb) add-inferior
Added inferior 2
(gdb) inferior 2
(gdb) set remote exec-file prog2
# Switch back to inferior 1, and show its exec-file:
(gdb) inferior 1
(gdb) show remote exec-file
prog2
^^^^^ should show "prog1" instead here.
gdb/ChangeLog:
2020-01-10 Pedro Alves <palves@redhat.com>
* remote.c (show_remote_exec_file): Show the current inferior's
exec-file instead of the command variable's value.
gdb/testsuite/ChangeLog:
2020-01-10 Pedro Alves <palves@redhat.com>
* gdb.base/remote-exec-file.exp: New file.
Diffstat (limited to 'gdb/ada-valprint.c')
0 files changed, 0 insertions, 0 deletions