From: Thiago Jung Bauermann Date: Wed, 13 Apr 2011 18:32:25 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a4106caaff24e972f758975ce2d3b8eb257aaff;p=binutils-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 994ec96e000..fe6bd5a4e43 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-04-13 Thiago Jung Bauermann + + * breakpoint.c (watch_command_1): Remove colon from exp_string. + 2011-04-13 Thiago Jung Bauermann * breakpoint.c (save_breakpoints): Verify whether diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5633f15cd05..9225d1554c9 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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. */ diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7a11f53730f..4b4dddc0bf4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-04-13 Thiago Jung Bauermann + + * gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Don't + expect a colon in watch -location output. + 2011-04-13 Marek Polacek * gdb.base/commands.exp (redefine_backtrace_test): Fix race. 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