Fix break *FUN'address thread NUM.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 1 Jan 2010 06:29:10 +0000 (06:29 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 1 Jan 2010 06:29:10 +0000 (06:29 +0000)
        * ada-lex.l (task): Expand rule to also match the thread keyword.

gdb/ChangeLog
gdb/ada-lex.l

index f9163588284b31ba9ac5daa2f12b7a39d0750f01..9b5b46c3fe87fc55d1191b704bdd3907fed04940 100644 (file)
@@ -1,3 +1,8 @@
+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.
index e16acb5f6e2fef55557282421b22e6b78a4de765..0ef7e7094457a4fe3b1cfd287a70095f2d0d0e08 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);