Fix remove-inferior error message
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 17 Aug 2016 20:02:27 +0000 (16:02 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 17 Aug 2016 20:02:27 +0000 (16:02 -0400)
This error message should not contain the word symbol:

  (gdb) remove-inferiors 1
  Warning: Can not remove current symbol inferior 1.

gdb/ChangeLog:

* inferior.c (remove_inferior_command): Fix error message.

gdb/testsuite/ChangeLog:

* gdb.multi/remove-inferiors.exp (test_remove_inferiors): Fix
expected error message.

gdb/ChangeLog
gdb/inferior.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/remove-inferiors.exp

index 51504a0..dbd90dd 100644 (file)
@@ -1,5 +1,9 @@
 2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
 
+       * inferior.c (remove_inferior_command): Fix error message.
+
+2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
+
        * inferior.c (exit_inferior_1): Remove comment.
 
 2016-08-15  Matthew Wahab  <matthew.wahab@arm.com>
index 6507ae7..47d91c7 100644 (file)
@@ -803,7 +803,7 @@ remove_inferior_command (char *args, int from_tty)
 
       if (inf == current_inferior ())
        {
-         warning (_("Can not remove current symbol inferior %d."), num);
+         warning (_("Can not remove current inferior %d."), num);
          continue;
        }
     
index 6e01da2..d025133 100644 (file)
@@ -1,5 +1,10 @@
 2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
 
+       * gdb.multi/remove-inferiors.exp (test_remove_inferiors): Fix
+       expected error message.
+
+2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
+
        * gdb.multi/remove-inferiors.exp: New file.
        * gdb.multi/remove-inferiors.c: New file.
 
index c49b31d..d46beec 100644 (file)
@@ -40,7 +40,7 @@ proc test_remove_inferiors { } {
 
     # Test that it is not possible to remove the current inferior.
     gdb_test "remove-inferiors 2" \
-            "warning: Can not remove current symbol inferior 2." \
+            "warning: Can not remove current inferior 2." \
             "can't remove current inferior"
 
     # Test that it is possible to remove a non-active non-current inferior.