From: Thiago Jung Bauermann Date: Fri, 15 Apr 2011 04:18:35 +0000 (+0000) Subject: gdb/ X-Git-Tag: gdb_7_3-2011-07-26-release~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71a6fe1c2ec1d03394a5de2beae7be4bbf58eb86;p=thirdparty%2Fbinutils-gdb.git gdb/ * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab24e93cc86..a8ce0f45479 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-04-15 Thiago Jung Bauermann + + * breakpoint.c (watch_command_1): Remove colon from exp_string. + 2011-04-15 Thiago Jung Bauermann * breakpoint.c (save_breakpoints): Verify whether diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 502ac148fb5..f93500f019d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -9043,7 +9043,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. */ diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 58f2a21f9ad..145f097d6a0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-04-15 Thiago Jung Bauermann + + * gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Don't + expect a colon in watch -location output. + 2011-03-31 Tom Tromey * gdb.python/py-prettyprint.py (exception_flag): New global. diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp index 7450602075d..1d8c5bcbf6b 100644 --- a/gdb/testsuite/gdb.base/watchpoint.exp +++ b/gdb/testsuite/gdb.base/watchpoint.exp @@ -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