[v3,6/7] amd64_analyze_prologue: fix incorrect comment

Message ID 20200624012857.31849-7-vcollod@nvidia.com
State New
Headers show
Series
  • Improve intel IBT support
Related show

Commit Message

Jose E. Marchesi via Gdb-patches June 24, 2020, 1:28 a.m.
The width of the instruction didn't match the size of its operands.

2020-06-23  Victor Collod  <vcollod@nvidia.com>

	* amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
---
 gdb/amd64-tdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.20.1

Patch

diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 5c3ad505784..901733cf443 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -2434,7 +2434,7 @@  amd64_analyze_prologue (struct gdbarch *gdbarch,
       return pc;
     }
 
-  /* For X32, also check for `movq %esp, %ebp'.  */
+  /* For X32, also check for `movl %esp, %ebp'.  */
   if (gdbarch_ptr_bit (gdbarch) == 32)
     {
       if (memcmp (buf, mov_esp_ebp_1, 2) == 0