OSDN Git Service

Fix break *FUN'address thread NUM.
authorbrobecke <brobecke>
Fri, 1 Jan 2010 15:29:10 +0000 (15:29 +0000)
committerbrobecke <brobecke>
Fri, 1 Jan 2010 15:29:10 +0000 (15:29 +0000)
        * ada-lex.l (task): Expand rule to also match the thread keyword.

gdb/ChangeLog
gdb/ada-lex.l

index f916358..9b5b46c 100644 (file)
@@ -1,5 +1,10 @@
 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
 
+       Fix break *FUN'address thread NUM.
+       * ada-lex.l (task): Expand rule to also match the thread keyword.
+
+2010-01-01  Joel Brobecker  <brobecker@adacore.com>
+
        Fix break *FUN'address task NUM.
        * ada-lex.l (task): New rule.
        * ada-lang.c (valid_task_id): Make sure the Ada task list has
index e16acb5..0ef7e70 100644 (file)
@@ -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);