[Lldb-commits] [PATCH] D143698: Support Debugging TLS variable with lldb
Kamlesh Kumar via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 10 21:01:55 PST 2023
kkcode0 updated this revision to Diff 496654.
kkcode0 added a comment.
added comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143698/new/
https://reviews.llvm.org/D143698
Files:
lldb/include/lldb/Target/RegisterContext.h
Index: lldb/include/lldb/Target/RegisterContext.h
===================================================================
--- lldb/include/lldb/Target/RegisterContext.h
+++ lldb/include/lldb/Target/RegisterContext.h
@@ -37,6 +37,13 @@
virtual lldb::ByteOrder GetByteOrder();
+ /// Retrieves the per-thread data area.
+ /// Most OSs maintain a per-thread pointer (e.g. the FS register on
+ /// x64), which we return the value of here.
+ ///
+ /// \return
+ /// LLDB_INVALID_ADDRESS if not supported, otherwise the thread
+ /// pointer value.
virtual uint64_t GetThreadPointer();
virtual bool ReadRegister(const RegisterInfo *reg_info,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143698.496654.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230211/d7e4a700/attachment.bin>
More information about the lldb-commits
mailing list