- Timestamp:
- 12/25/07 03:11:09 (2 years ago)
- Location:
- gdb-mi/trunk
- Files:
-
- 2 modified
-
lib/gdb/mi.rb (modified) (2 diffs)
-
test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gdb-mi/trunk/lib/gdb/mi.rb
r974 r975 84 84 ### SIMPLE RUN LOOP 85 85 86 def MI. runloop(cmdline, *commands)86 def MI.basicloop(cmdline, *commands) 87 87 mi = GDB::MI.new(*cmdline) 88 input = true 88 89 until mi.done 89 prompt = false90 90 mi.update 91 91 while line = mi.prog_output.shift … … 93 93 end 94 94 while obj = mi.mi_output.shift 95 prompt = true if GdbPrompt === obj95 input = true if StoppedOutput === obj || DoneResult === obj 96 96 pp obj 97 97 end 98 if prompt && cmd = commands.shift 98 if input 99 cmd = commands.shift or break 100 input = false 99 101 mi.input(*cmd) 100 102 end -
gdb-mi/trunk/test.rb
r974 r975 5 5 require 'gdb/mi' 6 6 7 GDB::MI. runloop(%w[../https https://banweb.mcgill.ca],7 GDB::MI.basicloop(%w[../https https://banweb.mcgill.ca], 8 8 %w[-break-insert -f SSLRead], 9 9 %w[-exec-run],
