add more debug (string values)

This commit is contained in:
Torsten Ruger 2014-10-02 16:06:05 +03:00
parent 493b02674c
commit 0e3e11a699

View File

@ -30,8 +30,11 @@ module Elf
end
end
end
assembler.objects.values.each do |slot|
add_symbol "#{slot.class.name}::#{slot.position.to_s(16)}" , slot.position
assembler.objects.values.each do |slot|
label = "#{slot.class.name}::#{slot.position.to_s(16)}"
label += "=#{slot}" if slot.is_a?(Symbol) or slot.is_a?(String)
label += "=#{slot.string}" if slot.is_a?(Virtual::StringConstant)
add_symbol label , slot.position
end
end
attr_reader :text