summaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-01 06:29:10 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-01 06:29:10 +0000
commit99d6abe83b0114438a50ccc5cb6ce02ea7d17e22 (patch)
tree581a3a2edb3d11695652445ff538b5a3e0763705 /gdb/ada-lex.l
parent3d34b94f9fdd1c71886b1877e02bcb00e858b200 (diff)
downloadgdb-99d6abe83b0114438a50ccc5cb6ce02ea7d17e22.tar.gz
Fix break *FUN'address thread NUM.
* ada-lex.l (task): Expand rule to also match the thread keyword.
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index e16acb5f6e2..0ef7e709445 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -160,7 +160,9 @@ if {
return 0;
}
-task {
+(task|thread) {
+ /* This keyword signals the end of the expression and
+ will be processed separately. */
while (*lexptr != 't' && *lexptr != 'T')
lexptr--;
yyrestart(NULL);