diff options
author | Pawel Kupczak <pawel.kupczak@intel.com> | 2025-06-17 14:08:16 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-06-23 16:39:39 +0100 |
commit | 70d93c10482c13c5480175f18dad0bddc8d551d9 (patch) | |
tree | 9a6854a36b5181e66484c8dbfc09601d04c13fac | |
parent | 6461dc05f1b807a50c5152528b8d0f0b4b78b5bd (diff) | |
download | binutils-70d93c10482c13c5480175f18dad0bddc8d551d9.zip binutils-70d93c10482c13c5480175f18dad0bddc8d551d9.tar.gz binutils-70d93c10482c13c5480175f18dad0bddc8d551d9.tar.bz2 |
gdb: return after stack alignment skip if current_pc is reached
Make sure we bail out early from amd64_analyze_prologue if CURRENT_PC
is reached to avoid unnecessary call to amd64_analyze_frame_setup.
Approved-By: Andrew Burgess <aburgess@redhat.com>
-rw-r--r-- | gdb/amd64-tdep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 7c3f5c2..ec15189 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -2591,6 +2591,9 @@ amd64_analyze_prologue (gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR current_pc, else pc = amd64_analyze_stack_align (pc, current_pc, cache); + if (current_pc <= pc) + return current_pc; + return amd64_analyze_frame_setup (gdbarch, pc, current_pc, cache); } |