Permalink
Browse files

fixed parser

  • Loading branch information...
1 parent 3e9d244 commit 3923272b8cc1bff5219e1049c5c61df6252d5293 Alexander Bernauer committed Jul 3, 2012
Showing with 30 additions and 5 deletions.
  1. BIN ruab/gdb.pdf
  2. +25 −0 ruab/gdbmi-bugs.txt
  3. +5 −5 ruab/src/Ruab/Backend/GDB/Representation.hs
View
BIN ruab/gdb.pdf
Binary file not shown.
View
25 ruab/gdbmi-bugs.txt
@@ -0,0 +1,25 @@
+extra white space at "(gdb) "
+
+gdb-exit should answer with "(gdb)"
+
+27.4.1
+not all options start with a dash
+
+27.4.2
+console-stream-output, target-stream-output, log-stream-output should end with nl
+
+27.10
+result of break-insert de facto has a 'original-location' value, missing in docu
+
+27.17
+why is 'mode' a parameter and not an option?
+
+27.20
+-file-exec-and-symbols, -file-exec, -file-symbol-file: file parameter is optional according to text
+
+page 422: redundant "GDB Command" and "Example" paragraphs
+
+27.23
+Synopsis of -gdb-set is missing options
+
+
View
10 ruab/src/Ruab/Backend/GDB/Representation.hs
@@ -192,11 +192,11 @@ p_asyncOutput =
p_resultClass :: Parser ResultClass -- {{{3
p_resultClass =
- (string "done" >> return RCDone)
- <|> (string "running" >> return RCRunning)
- <|> (string "connected" >> return RCConnected)
- <|> (string "error" >> return RCError)
- <|> (string "exit" >> return RCExit)
+ try (string "done" >> return RCDone)
+ <|> try (string "running" >> return RCRunning)
+ <|> try (string "connected" >> return RCConnected)
+ <|> try (string "error" >> return RCError)
+ <|> (string "exit" >> return RCExit)
p_asyncClass :: Parser AsyncClass -- {{{3
p_asyncClass =

0 comments on commit 3923272

Please sign in to comment.