DavidSpickett added inline comments.

================
Comment at: lldb/test/API/tools/lldb-server/memory-tagging/main.c:53
+  // smoke test in case something didn't account for them.
+  buf = (char *)((size_t)buf | ((size_t)0xAA << 56));
+  return print_result(buf);
----------------
omjavaid wrote:
> Just a side question about TBI, for memroy reads/write or tags/query is it 
> necessary to send non address bits to remote? (tags and pauth masks). Can we 
> instead clear these bits before sending address over using the code/data 
> masks we have calculated in our host process class.
You shouldn't need to include them as the stripped address is equivalent as far 
as ptrace is concerned.

If you were gonna JIT some code and use it to load from that address then yes 
we'd need the bits.

That said, I'm not sure lldb-server can make the assumption that they are 
stripped. At least for reading memory tags, I'll have to think about it since 
the protocol doesn't require the client to remove tag bits.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95601/new/

https://reviews.llvm.org/D95601

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to