[PATCH] arc: Log "pc" value in "arc_skip_prologue"

Shahab Vahedi shahab.vahedi@gmail.com
Mon Jan 25 23:02:22 GMT 2021


From: Anton Kolesov <Anton.Kolesov@synopsys.com>

Log the "pc" address upon entering "arc_skip_prologue".

gdb/ChangeLog:

	* arc-tdep.c (arc_skip_prologue): Log "pc" address.
---
 gdb/arc-tdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index e00216e896e..b19f7c5965a 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -1472,7 +1472,7 @@ const static int MAX_PROLOGUE_LENGTH
 static CORE_ADDR
 arc_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
 {
-  arc_debug_printf ("called");
+  arc_debug_printf ("pc = %s", paddress (gdbarch, pc));
 
   CORE_ADDR func_addr;
   const char *func_name;
-- 
2.30.0



More information about the Gdb-patches mailing list