mirror of
https://github.com/specht/champ.git
synced 2026-04-21 12:16:33 +00:00
don't crash on subroutine cycles watches for labels that never get
called via JSR
This commit is contained in:
@@ -584,7 +584,7 @@ class Champ
|
||||
end
|
||||
end
|
||||
|
||||
if (!@watch_values.include?(index)) && @cycles_per_function.include?(watch[:pc])
|
||||
if (!@watch_values.include?(index)) && @cycles_per_function.include?(watch[:pc]) && (!@cycles_per_function[watch[:pc]].empty?)
|
||||
max_cycle_count_for_function = @cycles_per_function[watch[:pc]].map do |x|
|
||||
x[:call_cycles]
|
||||
end.max
|
||||
|
||||
Reference in New Issue
Block a user