[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
[lldb] Skip part of TestGdbRemoteMemoryAllocation.py on Apple SiliconSkip the part of TestGdbRemoteMemoryAllocation.py that attempts toallocate both writable and executable memory.
[lldb] Simplify some lldb-server testsRemove manual test duplication.
[lldb/test] Reduce boilerplate in lldb-server testsNearly all of our lldb-server tests have two flavours (lldb-server anddebugserver). Each of them is tagged with an appropriate decorator, andeac
[lldb/test] Reduce boilerplate in lldb-server testsNearly all of our lldb-server tests have two flavours (lldb-server anddebugserver). Each of them is tagged with an appropriate decorator, andeach of them starts with a call to a matching "init" method. The initcalls are mandatory, and it's not possible to meaningfully combine themwith a different decorator.This patch leverages the existing decorators to also tag the tests withthe appropriate debug server tag, similar to how we do with debug infoflavours. This allows us to make the "init" calls from inside the commonsetUp method.
[lldb] More memory allocation test fixesXFAIL nodefaultlib.cpp on darwin - the test does not pass thereXFAIL TestGdbRemoteMemoryAllocation on windows - memory is allocatedwith incorrect permissi
[lldb] More memory allocation test fixesXFAIL nodefaultlib.cpp on darwin - the test does not pass thereXFAIL TestGdbRemoteMemoryAllocation on windows - memory is allocatedwith incorrect permissions
[lldb] Fix TestGdbRemoteMemoryAllocation on windowsIt appears that memory allocation actually works on windows (but it wasnot fully wired up before 2c4226f8).
[lldb-server][linux] Add ability to allocate memoryThis patch adds support for the _M and _m gdb-remote packets, which(de)allocate memory in the inferior. This works by "injecting" am(un)map sysc
[lldb-server][linux] Add ability to allocate memoryThis patch adds support for the _M and _m gdb-remote packets, which(de)allocate memory in the inferior. This works by "injecting" am(un)map syscall into the inferior. This consists of:- finding an executable page of memory- writing the syscall opcode to it- setting up registers according to the os syscall convention- single stepping over the syscallThe advantage of this approach over calling the mmap function is thatthis works even in case the mmap function is buggy or unavailable. Thedisadvantage is it is more platform-dependent, which is why this patchonly works on X86 (_32 and _64) right now. Adding support for otherlinux architectures should be easy and consist of defining theappropriate syscall constants. Adding support for other OSes depends onthe its ability to do a similar trick.Differential Revision: https://reviews.llvm.org/D89124