Parent

Files

Debugger::Processor

A processor handles the kind of front-end to program interaction. Debugger::Processor is the the base class with subclasses Debugger::CommandProcessor and Debugger::ControlCommandProcessor.

Attributes

commands[R]
event_arg[R]

optional argument passed passed in callback. For catchpoints it is the catch object. For breakpoints it is the breakpoint object.

interface[RW]
processor[R]

Public Instance Methods

afmt(msg, newline="\n") click to toggle source

Format msg with gdb-style annotation header.

# File cli/ruby-debug/processor.rb, line 20
def afmt(msg, newline="\n")
  "\0032\0032#{msg}#{newline}"
end
aprint(msg) click to toggle source

Print “annotation” message msg. Annotation messages are used by the GNU-Emacs front-end to get status about stacks and the state of the debugger without having to poll it for information

# File cli/ruby-debug/processor.rb, line 27
def aprint(msg)
  print afmt(msg) if Debugger.annotate.to_i > 2
end
errmsg(*args) click to toggle source

Print a debugger error message; args should be compatible with something you would pass to Kernel::print.

# File cli/ruby-debug/processor.rb, line 33
def errmsg(*args)
  @interface.errmsg(*args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.