Hi lianbo
make target=arm
frame.c: In function ‘CORE_ADDR frame_unwind_pc (struct frame_info *this_frame)’: frame.c:982:29:
error: cannot convert ‘CORE_ADDR*’ {aka ‘long long unsigned int*’} to ‘ulong*’
{aka ‘long unsigned int*’} 982 | crash_decode_ptrauth_pc(&pc);
See: gdbsupport/common-types.h
typedef uint64_t CORE_ADDR;
error: cannot convert ‘CORE_ADDR*’ {aka ‘long long unsigned int*’} to ‘ulong*’
{aka ‘long unsigned int*’} 982 | crash_decode_ptrauth_pc(&pc);
See: gdbsupport/common-types.h
typedef uint64_t CORE_ADDR;
diff --git a/gdb-10.2.patch b/gdb-10.2.patch
index fd6fadb..a0a8812 100644
--- a/gdb-10.2.patch
+++ b/gdb-10.2.patch
@@ -16223,7 +16223,7 @@ exit 0
}
+#ifdef CRASH_MERGE
-+extern "C" void crash_decode_ptrauth_pc(ulong* pc);
++extern "C" void crash_decode_ptrauth_pc(uint64_t* pc);
+#endif
+
static CORE_ADDR
diff --git a/gdb_interface.c b/gdb_interface.c
index e108d09..2aba81f 100644
--- a/gdb_interface.c
+++ b/gdb_interface.c
@@ -1084,8 +1084,8 @@ int crash_get_current_task_reg (int regno, const char *regname,
}
/* arm64 kernel lr maybe has patuh */
-void crash_decode_ptrauth_pc(ulong *pc);
-void crash_decode_ptrauth_pc(ulong *pc)
+void crash_decode_ptrauth_pc(uint64_t *pc);
+void crash_decode_ptrauth_pc(uint64_t *pc)
{
#ifdef ARM64
struct machine_specific *ms = machdep->machspec;
index fd6fadb..a0a8812 100644
--- a/gdb-10.2.patch
+++ b/gdb-10.2.patch
@@ -16223,7 +16223,7 @@ exit 0
}
+#ifdef CRASH_MERGE
-+extern "C" void crash_decode_ptrauth_pc(ulong* pc);
++extern "C" void crash_decode_ptrauth_pc(uint64_t* pc);
+#endif
+
static CORE_ADDR
diff --git a/gdb_interface.c b/gdb_interface.c
index e108d09..2aba81f 100644
--- a/gdb_interface.c
+++ b/gdb_interface.c
@@ -1084,8 +1084,8 @@ int crash_get_current_task_reg (int regno, const char *regname,
}
/* arm64 kernel lr maybe has patuh */
-void crash_decode_ptrauth_pc(ulong *pc);
-void crash_decode_ptrauth_pc(ulong *pc)
+void crash_decode_ptrauth_pc(uint64_t *pc);
+void crash_decode_ptrauth_pc(uint64_t *pc)
{
#ifdef ARM64
struct machine_specific *ms = machdep->machspec;
Thanks
Gunayou
From f55f15c2f4858ec28ab09d31d9e312d0bcc96477 Mon Sep 17 00:00:00 2001 From: "Guanyou.Chen" <chenguanyou@xxxxxxxxxx> Date: Tue, 21 Jan 2025 11:29:47 +0800 Subject: [PATCH] fix build error on target machine 32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit frame.c: In function ‘CORE_ADDR frame_unwind_pc (struct frame_info *this_frame)’: frame.c:982:29: error: cannot convert ‘CORE_ADDR*’ {aka ‘long long unsigned int*’} to ‘ulong*’ {aka ‘long unsigned int*’} 982 | crash_decode_ptrauth_pc(&pc); See: gdbsupport/common-types.h typedef uint64_t CORE_ADDR; Signed-off-by: Guanyou.Chen <chenguanyou@xxxxxxxxxx> --- gdb-10.2.patch | 2 +- gdb_interface.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb-10.2.patch b/gdb-10.2.patch index fd6fadb..a0a8812 100644 --- a/gdb-10.2.patch +++ b/gdb-10.2.patch @@ -16223,7 +16223,7 @@ exit 0 } +#ifdef CRASH_MERGE -+extern "C" void crash_decode_ptrauth_pc(ulong* pc); ++extern "C" void crash_decode_ptrauth_pc(uint64_t* pc); +#endif + static CORE_ADDR diff --git a/gdb_interface.c b/gdb_interface.c index e108d09..2aba81f 100644 --- a/gdb_interface.c +++ b/gdb_interface.c @@ -1084,8 +1084,8 @@ int crash_get_current_task_reg (int regno, const char *regname, } /* arm64 kernel lr maybe has patuh */ -void crash_decode_ptrauth_pc(ulong *pc); -void crash_decode_ptrauth_pc(ulong *pc) +void crash_decode_ptrauth_pc(uint64_t *pc); +void crash_decode_ptrauth_pc(uint64_t *pc) { #ifdef ARM64 struct machine_specific *ms = machdep->machspec; -- 2.34.1
-- Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/ Contribution Guidelines: https://github.com/crash-utility/crash/wiki