mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gdb, amd64: return after amd64_analyze_register_saves if current_pc reached
Make sure the function bails out early if CURRENT_PC is reached, to avoid the call to amd64_analyze_stack_alloc. Reviewed-By: Guinevere Larsen <guinevere@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
committed by
Christina Schimpe
parent
57ce06ac23
commit
95f21c0d25
@@ -2750,6 +2750,9 @@ amd64_analyze_prologue (gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR current_pc,
|
||||
return current_pc;
|
||||
|
||||
pc = amd64_analyze_register_saves (pc, current_pc, cache);
|
||||
if (current_pc <= pc)
|
||||
return current_pc;
|
||||
|
||||
return amd64_analyze_stack_alloc (gdbarch, pc, current_pc, cache);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user