Commit 4782d1dd authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

winedbg: Prevent syntax error for setting all debug channels.

The lexer was matching tALL before checking for tIDENTIFIER, and the set command didn't have any rules for tALL, which prevented setting the flags for all the debug channels.
parent c745826e
...@@ -208,9 +208,13 @@ disassemble_command: ...@@ -208,9 +208,13 @@ disassemble_command:
set_command: set_command:
tSET lvalue_addr '=' expr_rvalue { memory_write_value(&$2, sizeof(int), &$4); } tSET lvalue_addr '=' expr_rvalue { memory_write_value(&$2, sizeof(int), &$4); }
| tSET '+' tIDENTIFIER { info_wine_dbg_channel(TRUE, NULL, $3); } | tSET '+' tIDENTIFIER { info_wine_dbg_channel(TRUE, NULL, $3); }
| tSET '+' tALL { info_wine_dbg_channel(TRUE, NULL, "all"); }
| tSET '-' tIDENTIFIER { info_wine_dbg_channel(FALSE, NULL, $3); } | tSET '-' tIDENTIFIER { info_wine_dbg_channel(FALSE, NULL, $3); }
| tSET '-' tALL { info_wine_dbg_channel(FALSE, NULL, "all"); }
| tSET tIDENTIFIER '+' tIDENTIFIER { info_wine_dbg_channel(TRUE, $2, $4); } | tSET tIDENTIFIER '+' tIDENTIFIER { info_wine_dbg_channel(TRUE, $2, $4); }
| tSET tIDENTIFIER '+' tALL { info_wine_dbg_channel(TRUE, $2, "all"); }
| tSET tIDENTIFIER '-' tIDENTIFIER { info_wine_dbg_channel(FALSE, $2, $4); } | tSET tIDENTIFIER '-' tIDENTIFIER { info_wine_dbg_channel(FALSE, $2, $4); }
| tSET tIDENTIFIER '-' tALL { info_wine_dbg_channel(FALSE, $2, "all"); }
| tSET '!' tIDENTIFIER tIDENTIFIER { dbg_set_option($3, $4); } | tSET '!' tIDENTIFIER tIDENTIFIER { dbg_set_option($3, $4); }
| tSET '!' tIDENTIFIER { dbg_set_option($3, NULL); } | tSET '!' tIDENTIFIER { dbg_set_option($3, NULL); }
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment