improve debug labels

This commit is contained in:
Torsten 2020-03-25 18:40:20 +02:00
parent 7572e27869
commit 231ce0f69b
2 changed files with 2 additions and 5 deletions

View File

@ -1,3 +0,0 @@
set disassemble-next-line on
file a.out
break *0x10054

View File

@ -37,10 +37,10 @@ module Elf
meth = asm.callable
asm.instructions.each do |label|
next unless label.is_a?(Risc::Label)
add_symbol "#{meth.self_type.name}@#{meth.name}:Label=#{label.name}" , Risc::Position.get(label).at
add_symbol "#{meth.self_type.name}_#{meth.name}:Label=#{label.name}" , Risc::Position.get(label).at
end
meth.binary.each_block do |code|
label = "BinaryCode@#{meth.name}"
label = "BinaryCode_#{meth.name}"
add_symbol label , Risc::Position.get(code).at
end
end