aboutsummaryrefslogtreecommitdiff
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
commitb9ee22330a920efacc6d8fabe366a77cdfd414e1 (patch)
treeef0beb080707d8d25bd9701497360049ce3a51cb /gdb/ada-lex.l
parent70575d34a7b50192b3cb94c384fa502e641e5607 (diff)
downloadbinutils-b9ee22330a920efacc6d8fabe366a77cdfd414e1.zip
binutils-b9ee22330a920efacc6d8fabe366a77cdfd414e1.tar.gz
binutils-b9ee22330a920efacc6d8fabe366a77cdfd414e1.tar.bz2
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 e16acb5..0ef7e70 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);