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.



19
20
21
22
23
24
# File 'lib/crash_watch/gdb_controller.rb', line 19

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.



17
18
19
# File 'lib/crash_watch/gdb_controller.rb', line 17

def backtrace
  @backtrace
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



17
18
19
# File 'lib/crash_watch/gdb_controller.rb', line 17

def exit_code
  @exit_code
end

#signalObject (readonly)

Returns the value of attribute signal.



17
18
19
# File 'lib/crash_watch/gdb_controller.rb', line 17

def signal
  @signal
end

#snapshotObject (readonly)

Returns the value of attribute snapshot.



17
18
19
# File 'lib/crash_watch/gdb_controller.rb', line 17

def snapshot
  @snapshot
end

Instance Method Details

#signaled?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/crash_watch/gdb_controller.rb', line 26

def signaled?
	!!@signal
end