startdwarf: Provide feedback if offset is missing

develop
lethosor 2015-12-11 16:36:09 -05:00
parent 571df39878
commit a73110f7f0
1 changed files with 1 additions and 0 deletions

@ -15,5 +15,6 @@ nr = $script_args[0].to_i
raise 'too low' if nr < 7 raise 'too low' if nr < 7
addr = df.get_global_address('start_dwarf_count') addr = df.get_global_address('start_dwarf_count')
raise 'patch address not available' if addr == 0
df.memory_patch(addr, [nr].pack('L')) df.memory_patch(addr, [nr].pack('L'))