PR gdb/8704

* breakpoint.c (find_condition_and_thread): Correct task error message.
	* c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations
	of those.

	doc/
	* gdb.texinfo (Thread-Specific Breakpoints): Thread specifiers
	are allowed after the breakpoint condition.

	testsuite/
	* gdb.base/condbreak.exp: Test combinations of "break *EXP",
	"if", and "thread".  Correct matching in the previous test.
This commit is contained in:
Daniel Jacobowitz
2009-11-25 20:43:29 +00:00
parent b22a051097
commit b6199126ee
7 changed files with 72 additions and 5 deletions

View File

@@ -6636,7 +6636,7 @@ find_condition_and_thread (char *tok, CORE_ADDR pc,
if (tok == tmptok)
error (_("Junk after task keyword."));
if (!valid_task_id (*task))
error (_("Unknown task %d\n"), *task);
error (_("Unknown task %d."), *task);
}
else
error (_("Junk at end of arguments."));