Class: CrashWatch::GdbController::ExitInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/crash_watch/gdb_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code, signal, backtrace, snapshot) ⇒ ExitInfo

Returns a new instance of ExitInfo.



8
9
10
11
12
13
# File 'lib/crash_watch/gdb_controller.rb', line 8

def initialize(exit_code, signal, backtrace, snapshot)
	@exit_code = exit_code
	@signal = signal
	@backtrace = backtrace
	@snapshot = snapshot
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



6
7
8
# File 'lib/crash_watch/gdb_controller.rb', line 6

def backtrace
  @backtrace
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



6
7
8
# File 'lib/crash_watch/gdb_controller.rb', line 6

def exit_code
  @exit_code
end

#signalObject (readonly)

Returns the value of attribute signal.



6
7
8
# File 'lib/crash_watch/gdb_controller.rb', line 6

def signal
  @signal
end

#snapshotObject (readonly)

Returns the value of attribute snapshot.



6
7
8
# File 'lib/crash_watch/gdb_controller.rb', line 6

def snapshot
  @snapshot
end

Instance Method Details

#signaled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/crash_watch/gdb_controller.rb', line 15

def signaled?
	!!@signal
end