Class: Twib::Switch::Debug::Event::AttachThread

Inherits:
Event
  • Object
show all
Defined in:
lib/twib/switch/debug.rb

Constant Summary collapse

TYPE =
1

Instance Attribute Summary collapse

Attributes inherited from Event

#flags

Instance Method Summary collapse

Methods inherited from Event

#initialize, unpack

Constructor Details

This class inherits a constructor from Twib::Switch::Debug::Event::Event

Instance Attribute Details

#entrypointObject (readonly)

Returns the value of attribute entrypoint.



51
52
53
# File 'lib/twib/switch/debug.rb', line 51

def entrypoint
  @entrypoint
end

#thread_idObject (readonly)

Returns the value of attribute thread_id.



51
52
53
# File 'lib/twib/switch/debug.rb', line 51

def thread_id
  @thread_id
end

#tlsObject (readonly)

Returns the value of attribute tls.



51
52
53
# File 'lib/twib/switch/debug.rb', line 51

def tls
  @tls
end

Instance Method Details

#event_typeObject



48
49
50
# File 'lib/twib/switch/debug.rb', line 48

def event_type
  :attach_thread
end

#unpack_specific(pack) ⇒ Object



45
46
47
# File 'lib/twib/switch/debug.rb', line 45

def unpack_specific(pack)
  @thread_id, @tls, @entrypoint = pack.unpack("Q<Q<Q<")
end