diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c17528ff4c..205dd4d388 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-05-22 Pedro Alves + + * remote.c (compare_section_command): Remove set_general_process + call. + 2018-05-22 Pedro Alves * remote.c (struct packet_reg, struct remote_arch_state): diff --git a/gdb/remote.c b/gdb/remote.c index 1d1819bac1..fbf23b8a43 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10516,9 +10516,6 @@ compare_sections_command (const char *args, int from_tty) if (!exec_bfd) error (_("command cannot be used without an exec file")); - /* Make sure the remote is pointing at the right process. */ - set_general_process (); - if (args != NULL && strcmp (args, "-r") == 0) { read_only = 1;