Revert "Don't raise in mach_data so the debugger doesn't catch it"
This reverts commit 4f8a3e2113c2e7b88600ff6371f9f70579c55509.
This commit is contained in:
parent
977a2ceae3
commit
85a9156c6f
@ -53,10 +53,7 @@ module MachO
|
||||
# /usr/include/mach-o/fat.h
|
||||
|
||||
def mach_data
|
||||
@mach_data ||= _mach_data
|
||||
end
|
||||
|
||||
def _mach_data
|
||||
@mach_data ||= begin
|
||||
offsets = []
|
||||
mach_data = []
|
||||
|
||||
@ -76,7 +73,7 @@ module MachO
|
||||
when 0x7f454c46 # ELF
|
||||
mach_data << { :arch => :x86_64, :type => :executable }
|
||||
else
|
||||
return []
|
||||
raise "Not a Mach-O binary."
|
||||
end
|
||||
|
||||
offsets.each do |offset|
|
||||
@ -97,8 +94,10 @@ module MachO
|
||||
|
||||
mach_data << { :arch => arch, :type => type }
|
||||
end
|
||||
|
||||
mach_data
|
||||
rescue
|
||||
[]
|
||||
end
|
||||
end
|
||||
|
||||
def archs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user