* 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

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