[Lldb-commits] [lldb] [lldb] Call FixUpPointer in WritePointerToMemory (try 2) (PR #153585)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 3 02:03:30 PDT 2025
================
@@ -0,0 +1,19 @@
+#include <assert.h>
+#include <stdint.h>
+#include <stdio.h>
+
+int myglobal = 41;
+
+uint64_t get_high_bits(void *ptr) {
+ uint64_t mask = ~((1ULL << 48) - 1);
+ uint64_t ptrtoint = (uint64_t)ptr;
+ uint64_t high_bits = ptrtoint & mask;
----------------
DavidSpickett wrote:
Use `uintptr_t` please.
https://github.com/llvm/llvm-project/pull/153585
More information about the lldb-commits
mailing list