gdb/
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Wed, 13 Apr 2011 18:32:25 +0000 (18:32 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Wed, 13 Apr 2011 18:32:25 +0000 (18:32 +0000)
* breakpoint.c (watch_command_1): Remove colon from exp_string.

gdb/testsuite/
* gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Don't
expect a colon in watch -location output.

gdb/ChangeLog
gdb/breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint.exp

index 994ec96e000ee236091b59171eb39590df3e8e63..fe6bd5a4e43eea3682dabb425eaef8895fc0ff8a 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * breakpoint.c (watch_command_1): Remove colon from exp_string.
+
 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * breakpoint.c (save_breakpoints): Verify whether
index 5633f15cd05d03a9167ff48f6ea19cdf5d724b30..9225d1554c966a0d894f2ef0eafc891ee7924c36 100644 (file)
@@ -9019,7 +9019,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty,
                                          core_addr_to_string (addr));
       xfree (name);
 
-      b->exp_string = xstrprintf ("-location: %.*s",
+      b->exp_string = xstrprintf ("-location %.*s",
                                  (int) (exp_end - exp_start), exp_start);
 
       /* The above expression is in C.  */
index 7a11f53730f993e81cc2921964d051dd77e2e0c2..4b4dddc0bf429414f69661010836d4cc510ab89c 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Don't
+       expect a colon in watch -location output.
+
 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
 
        * gdb.base/commands.exp (redefine_backtrace_test): Fix race. 
index 7450602075d69e6404b33207713a720b98b303fe..1d8c5bcbf6b31bc9e7b2827913d8edba99db7c38 100644 (file)
@@ -685,7 +685,7 @@ proc test_inaccessible_watchpoint {} {
 
        # The same, but using -location through an indirection.
        gdb_test "watch -location *global_ptr" \
-           "$watchpoint_msg \[0-9\]+: \-location: \\*global_ptr"
+           "$watchpoint_msg \[0-9\]+: \-location \\*global_ptr"
        delete_breakpoints
 
        # This step requires two HW watchpoints.  Since some platforms only