* 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.
This commit is contained in:
Thiago Jung Bauermann 2011-04-13 18:32:25 +00:00
parent 26063d4963
commit 4a4106caaf
4 changed files with 11 additions and 2 deletions

View 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

View 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. */

View 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.

View 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