llvm-project/lldb
Pavel Labath 0faf37333c gdb-remote: Make the sequence mutex non-recursive
Summary:
This is a preparatory commit for D22914, where I'd like to replace this mutex by an R/W lock
(which is also not recursive). This required a couple of changes:
- The only caller of Read/WriteRegister, GDBRemoteRegisterContext class, was already acquiring
  the mutex, so these functions do not need to. All functions which now do not take a lock, take
  an lock argument instead, to remind the caller of this fact.
- GetThreadSuffixSupported() was being called from locked and unlocked contexts (including
  contexts where the process was running, and the call would fail if it did not have the result
  cached). I have split this into two functions, one which computes the thread suffix support and
  caches it (this one always takes the lock), and another, which returns the cached value (and
  never needs to take the lock). This feels quite natural as ProcessGdbRemote was already
  pre-caching this value at the start.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D23802

llvm-svn: 279725
2016-08-25 08:34:57 +00:00
..
cmake Revert "[lldb][cmake] Remove libclang as an lldbBase dependency (NFCI)" 2016-08-19 21:00:40 +00:00
docs Add StructuredData plugin type; showcase with new DarwinLog feature 2016-08-19 04:21:48 +00:00
examples Mention is_stale in the scripted step doc. 2016-08-05 22:47:43 +00:00
include/lldb Implementation "step out" plans shouldn't gather the return value. 2016-08-23 17:55:21 +00:00
lit Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:14:05 +00:00
lldb.xcodeproj added Xcode lldb-gtest-for-debugging target 2016-08-20 00:54:03 +00:00
lldb.xcworkspace Revert r275223, which committed the wrong thing. 2016-07-12 23:31:42 +00:00
packages/Python/lldbsuite fix darwin_log test errors on macOS < 10.12 2016-08-24 21:40:29 +00:00
resources Bump the lldb version # in the xcode project files from 2016-03-15 04:36:11 +00:00
scripts Add StructuredData plugin type; showcase with new DarwinLog feature 2016-08-19 04:21:48 +00:00
source gdb-remote: Make the sequence mutex non-recursive 2016-08-25 08:34:57 +00:00
test Always rerun all tests on Windows. 2016-05-23 17:32:04 +00:00
third_party/Python/module Put progress.py back, apparently this can't be deleted. 2015-12-09 21:32:28 +00:00
tools Fix warnings preventing copy elision. 2016-08-25 08:22:14 +00:00
unittests gdb-remote: Make the sequence mutex non-recursive 2016-08-25 08:34:57 +00:00
utils Python 3: Modernize exception raising syntax. 2015-11-03 21:01:45 +00:00
www Modify coding conventions to mention include ordering. 2016-08-11 18:10:40 +00:00
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.clang-format Reverted premature changes to .clang-format 2016-08-19 20:46:37 +00:00
.gitignore Add StructuredData plugin type; showcase with new DarwinLog feature 2016-08-19 04:21:48 +00:00
CMakeLists.txt Revert "[lldb][cmake] Remove libclang as an lldbBase dependency (NFCI)" 2016-08-19 21:00:40 +00:00
CODE_OWNERS.txt Added myself to the CODE_OWNERS.txt list for a few subsystems. 2015-11-09 01:24:36 +00:00
INSTALL.txt Revert the patch to Test Commit Access 2015-07-06 11:26:51 +00:00
LICENSE.TXT
use_lldb_suite_root.py Preparation for turning lldbsuite into a Python package. 2015-10-27 22:33:47 +00:00