This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/21406] New: gdb/ada-lex.l: %option noyywrap


https://sourceware.org/bugzilla/show_bug.cgi?id=21406

            Bug ID: 21406
           Summary: gdb/ada-lex.l: %option noyywrap
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

As it was done in the other .l files, please replace int yywrap() in ada-lex.l
with %option noyywrap .

diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -78,7 +78,7 @@ static int find_dot_all (const char *);

 %}

-%option case-insensitive interactive nodefault
+%option case-insensitive interactive nodefault noyywrap

 %s BEFORE_QUAL_QUOTE

@@ -636,12 +636,6 @@ rewind_to_char (int ch)
   yyrestart (NULL);
 }

-int
-yywrap(void)
-{
-  return 1;
-}
-
 /* Dummy definition to suppress warnings about unused static definitions. */
 typedef void (*dummy_function) ();
 dummy_function ada_flex_use[] = 
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -721,7 +721,6 @@ primary     :       '*' primary             %prec '.'
 #define yy_switch_to_buffer ada_yy_switch_to_buffer
 #define yyrestart ada_yyrestart
 #define yytext ada_yytext
-#define yywrap ada_yywrap

 static struct obstack temp_parse_space;

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]