Hi, Guanyou
Thank you for the patch.I fixed several build failures in patchset:
[PATCH 0/3 ] Fix several build failures
Which includes the compilation issue you reported.
Thanks
Lianbo
On Tue, Jan 21, 2025 at 11:43 AM Guanyou Chen <chenguanyou9338@xxxxxxxxx> wrote:
Hi lianbomake target=armframe.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;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;ThanksGunayou
-- 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