#
7d15fb57 |
| 01-Apr-2021 |
Vedant Kumar <vsk@apple.com> |
[lldb/test] Respect --apple-sdk path when querying SDK info
Respect --apple-sdk <path> if it's specified. If the SDK is simply mounted from some disk image, and not actually installed, this is the o
[lldb/test] Respect --apple-sdk path when querying SDK info
Respect --apple-sdk <path> if it's specified. If the SDK is simply mounted from some disk image, and not actually installed, this is the only way to use it.
Differential Revision: https://reviews.llvm.org/D99746
show more ...
|
Revision tags: llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2, llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2, llvmorg-11.0.1-rc1, llvmorg-11.0.0, llvmorg-11.0.0-rc6, llvmorg-11.0.0-rc5, llvmorg-11.0.0-rc4, llvmorg-11.0.0-rc3, llvmorg-11.0.0-rc2 |
|
#
a3fc61c8 |
| 19-Aug-2020 |
Jonas Devlieghere <jonas@devlieghere.com> |
[lldb] Move Xcode SDK helper functions into lldbutil
This allows the logic to be reused by both the builders and the tests.
|
#
46ed27ff |
| 14-Aug-2020 |
Raphael Isemann <teemperor@gmail.com> |
[lldb] Make packetlog_get_dylib_info returns the last full response
In sanitized builds the last packet this function finds for the TestMacCatalyst and TestPlatformSimulator tests is for the asan ru
[lldb] Make packetlog_get_dylib_info returns the last full response
In sanitized builds the last packet this function finds for the TestMacCatalyst and TestPlatformSimulator tests is for the asan runtime.
``` < 69> send packet: $jGetLoadedDynamicLibrariesInfos:{"solib_addresses":[4296048640]}]#3a < 715> read packet: ${"images":[{"load_address":4296048640,"mod_date":0,"pathname": "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/12.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib", "uuid":"8E38A2CD-753F-3E0F-8EB0-F4BD5788A5CA", "min_version_os_name":"macosx","min_version_os_sdk":"10.9", "mach_header":{"magic":4277009103,"cputype":16777223,"cpusubtype":3,"filetype":6, "flags":43090053}],"segments":[{"name":"__TEXT","vmaddr":0,"vmsize":565248,"fileoff":0, "filesize":565248,"maxprot":5}],{"name":"__DATA","vmaddr":565248,"vmsize":13152256,"fileoff":565248, "filesize":20480,"maxprot":3}],{"name":"__LINKEDIT","vmaddr":13717504,"vmsize":438272,"fileoff":585728, "filesize":435008,"maxprot":1}]]}]]}]#00 ```
This just fetches the last package which has fetch_all_solibs and we know it will contain the image of our test executable to get the tests running again.
show more ...
|
#
968cba8e |
| 07-Aug-2020 |
Adrian Prantl <aprantl@apple.com> |
lldbutil: add a retry mechanism for the ios simulator
We've been seeing this failure on green dragon when the system is under high load. Unfortunately this is outside of LLDB's control.
Differentia
lldbutil: add a retry mechanism for the ios simulator
We've been seeing this failure on green dragon when the system is under high load. Unfortunately this is outside of LLDB's control.
Differential Revision: https://reviews.llvm.org/D85542
show more ...
|
Revision tags: llvmorg-11.0.0-rc1 |
|
#
7e9bab6a |
| 25-Jul-2020 |
Adrian Prantl <aprantl@apple.com> |
Fix debugserver's qProcessInfo reporting of maccatalyst binaries
This patch is similar in spirit to https://reviews.llvm.org/D84480, but does the maccatalyst/macosx disambiguation. I also took the o
Fix debugserver's qProcessInfo reporting of maccatalyst binaries
This patch is similar in spirit to https://reviews.llvm.org/D84480, but does the maccatalyst/macosx disambiguation. I also took the opportunity to factor out the gdb-remote packet log scanning used by several testcases into lldbutil functions.
rdar://problem/66059257
Differential Revision: https://reviews.llvm.org/D84576
show more ...
|
#
bc0a9a17 |
| 16-Jul-2020 |
Jim Ingham <jingham@apple.com> |
Add an option (-y) to "break set" and "source list" that uses the same file:line:column form that we use to print out locations. Since we print them this way it makes sense we also accept that form.
Add an option (-y) to "break set" and "source list" that uses the same file:line:column form that we use to print out locations. Since we print them this way it makes sense we also accept that form.
Differential Revision: https://reviews.llvm.org/D83975
show more ...
|
Revision tags: llvmorg-12-init, llvmorg-10.0.1, llvmorg-10.0.1-rc4 |
|
#
72ae7003 |
| 07-Jul-2020 |
Pavel Labath <pavel@labath.sk> |
[lldb/test] Fix lldbutil.run_to_***_breakpoint for shared libraries
Even non-remote targets may need to set the launch environment ((DY)LD_LIBRARY_PATH, specifically) to run successfully.
Also, add
[lldb/test] Fix lldbutil.run_to_***_breakpoint for shared libraries
Even non-remote targets may need to set the launch environment ((DY)LD_LIBRARY_PATH, specifically) to run successfully.
Also, add an assertion to better detect the case when launching a target fails and the breakpoint is never hit.
show more ...
|
Revision tags: llvmorg-10.0.1-rc3, llvmorg-10.0.1-rc2, llvmorg-10.0.1-rc1, llvmorg-10.0.0, llvmorg-10.0.0-rc6, llvmorg-10.0.0-rc5 |
|
#
db31e2e1 |
| 13-Mar-2020 |
Med Ismail Bennani <medismail.bennani@gmail.com> |
[lldb/Target] Support more than 2 symbols in StackFrameRecognizer
This patch changes the way the StackFrame Recognizers match a certain frame.
Until now, recognizers could be registered with a func
[lldb/Target] Support more than 2 symbols in StackFrameRecognizer
This patch changes the way the StackFrame Recognizers match a certain frame.
Until now, recognizers could be registered with a function name but also an alternate symbol. This change is motivated by a test failure for the Assert frame recognizer on Linux. Depending the version of the libc, the abort function (triggered by an assertion), could have more than two signatures (i.e. `raise`, `__GI_raise` and `gsignal`).
Instead of only checking the default symbol name and the alternate one, lldb will iterate over a list of symbols to match against.
rdar://60386577
Differential Revision: https://reviews.llvm.org/D76188
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
show more ...
|
Revision tags: llvmorg-10.0.0-rc4 |
|
#
3ed02340 |
| 06-Mar-2020 |
Adrian Prantl <aprantl@apple.com> |
Increase default timeout in lldbutil.expect_state_changes()
|
Revision tags: llvmorg-10.0.0-rc3, llvmorg-10.0.0-rc2, llvmorg-10.0.0-rc1, llvmorg-11-init |
|
#
4c00dbf2 |
| 12-Dec-2019 |
Vedant Kumar <vsk@apple.com> |
lldbutil: Forward ASan launch info to test inferiors
This allows an unsanitized test process which loads a sanitized DSO (the motivating example is a Swift runtime dylib) to launch on Darwin.
rdar:
lldbutil: Forward ASan launch info to test inferiors
This allows an unsanitized test process which loads a sanitized DSO (the motivating example is a Swift runtime dylib) to launch on Darwin.
rdar://57290132
Differential Revision: https://reviews.llvm.org/D71379
show more ...
|
Revision tags: llvmorg-9.0.1, llvmorg-9.0.1-rc3 |
|
#
d0789e63 |
| 10-Dec-2019 |
Vedant Kumar <vsk@apple.com> |
Assert launch success in run_to_breakpoint_do_run
|
Revision tags: llvmorg-9.0.1-rc2, llvmorg-9.0.1-rc1 |
|
#
a578adc1 |
| 08-Nov-2019 |
Fred Riss <friss@apple.com> |
dotest: Add a way for the run_to_* helpers to register dylibs
Summary: To run the testsuite remotely the executable needs to be uploaded to the target system. The Target takes care of this by defaul
dotest: Add a way for the run_to_* helpers to register dylibs
Summary: To run the testsuite remotely the executable needs to be uploaded to the target system. The Target takes care of this by default.
When the test uses additional shared libraries, those won't be handled by default and need to be registered with the target using test.registerSharedLibrariesWithTarget(target, dylib).
Calling this API requires a target, so it doesn't mesh well with the run_to_* helpers that we've been advertising as the right way to write tests.
This patch adds an extra_images argument to all the helpers and does the registration automatically when running a remote testsuite. TestWeakSymbols.py was converted to use this new scheme.
Reviewers: jingham
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D70134
show more ...
|
#
651b5e72 |
| 28-Oct-2019 |
Jim Ingham <jingham@apple.com> |
Modernize TestThreadStepOut.py
This test was timing out on the swift CI bots. I didn't see any obvious reason for that, and the test hasn't had problems on greendragon. OTOH, it was a bit oddly wr
Modernize TestThreadStepOut.py
This test was timing out on the swift CI bots. I didn't see any obvious reason for that, and the test hasn't had problems on greendragon. OTOH, it was a bit oddly written, and needed modernizing, so I did that.
Differential Revision: https://reviews.llvm.org/D69453
show more ...
|
Revision tags: llvmorg-9.0.0, llvmorg-9.0.0-rc6, llvmorg-9.0.0-rc5, llvmorg-9.0.0-rc4, llvmorg-9.0.0-rc3, llvmorg-9.0.0-rc2 |
|
#
9eedbc4f |
| 02-Aug-2019 |
Raphael Isemann <teemperor@gmail.com> |
[lldb][NFC] Remove unused imports in python tests
llvm-svn: 367663
|
Revision tags: llvmorg-9.0.0-rc1, llvmorg-10-init, llvmorg-8.0.1, llvmorg-8.0.1-rc4, llvmorg-8.0.1-rc3, llvmorg-8.0.1-rc2, llvmorg-8.0.1-rc1 |
|
#
26366c3e |
| 29-Apr-2019 |
Aleksandr Urakov <aleksandr.urakov@jetbrains.com> |
[Windows] Dump more information about access violation exception
Summary: Dump more information about "access violation" and "in page error" exceptions to description. Description now contains data
[Windows] Dump more information about access violation exception
Summary: Dump more information about "access violation" and "in page error" exceptions to description. Description now contains data about read/write violation type and actual address as described at https://docs.microsoft.com/en-us/windows/desktop/api/winnt/ns-winnt-_exception_record
Reviewers: asmith, stella.stamenova
Reviewed By: stella.stamenova
Subscribers: teemperor, amccarth, abidh, lldb-commits, aleksandr.urakov
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D60519
llvm-svn: 359420
show more ...
|
Revision tags: llvmorg-8.0.0, llvmorg-8.0.0-rc5, llvmorg-8.0.0-rc4, llvmorg-8.0.0-rc3, llvmorg-7.1.0, llvmorg-7.1.0-rc1, llvmorg-8.0.0-rc2, llvmorg-8.0.0-rc1, llvmorg-7.0.1, llvmorg-7.0.1-rc3 |
|
#
a5235af9 |
| 03-Dec-2018 |
Aleksandr Urakov <aleksandr.urakov@jetbrains.com> |
[PDB] Support PDB-backed expressions evaluation (+ fix stuck test)
Summary: This patch contains several small fixes, which makes it possible to evaluate expressions on Windows using information from
[PDB] Support PDB-backed expressions evaluation (+ fix stuck test)
Summary: This patch contains several small fixes, which makes it possible to evaluate expressions on Windows using information from PDB. The changes are: - several sanitize checks; - make IRExecutionUnit::MemoryManager::getSymbolAddress to not return a magic value on a failure, because callers wait 0 in this case; - entry point required to be a file address, not RVA, in the ObjectFilePECOFF; - do not crash on a debuggee second chance exception - it may be an expression evaluation crash. Also fix detection of "crushed" threads in tests; - create parameter declarations for functions in AST to make it possible to call debugee functions from expressions; - relax name searching rules for variables, functions, namespaces and types. Now it works just like in the DWARF plugin; - fix endless recursion in SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc.
Reviewers: zturner, asmith, stella.stamenova
Reviewed By: stella.stamenova, asmith
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D53759
llvm-svn: 348136
show more ...
|
Revision tags: llvmorg-7.0.1-rc2, llvmorg-7.0.1-rc1, llvmorg-7.0.0 |
|
#
3815e702 |
| 13-Sep-2018 |
Jim Ingham <jingham@apple.com> |
Add a "scripted" breakpoint type to lldb.
This change allows you to write a new breakpoint type where the logic for setting breakpoints is determined by a Python callback written using the SB API's.
Add a "scripted" breakpoint type to lldb.
This change allows you to write a new breakpoint type where the logic for setting breakpoints is determined by a Python callback written using the SB API's.
Differential Revision: https://reviews.llvm.org/D51830
llvm-svn: 342185
show more ...
|
Revision tags: llvmorg-7.0.0-rc3 |
|
#
431b1584 |
| 30-Aug-2018 |
Adrian Prantl <aprantl@apple.com> |
Support setting a breakpoint by FileSpec+Line+Column in the SBAPI.
This patch extends the SBAPI to allow for setting a breakpoint not only at a specific line, but also at a specific (minimum) column
Support setting a breakpoint by FileSpec+Line+Column in the SBAPI.
This patch extends the SBAPI to allow for setting a breakpoint not only at a specific line, but also at a specific (minimum) column. When a column is specified, it will try to find an exact match or the closest match on the same line that comes after the specified location.
Differential Revision: https://reviews.llvm.org/D51461
llvm-svn: 341078
show more ...
|
Revision tags: llvmorg-7.0.0-rc2, llvmorg-7.0.0-rc1 |
|
#
23d7a9eb |
| 27-Jul-2018 |
Raphael Isemann <teemperor@gmail.com> |
Fix whitespace in the python test suite.
Summary: The test suite has often unnecessary trailing whitespace, and sometimes unnecessary trailing lines or a missing final new line. This patch just stri
Fix whitespace in the python test suite.
Summary: The test suite has often unnecessary trailing whitespace, and sometimes unnecessary trailing lines or a missing final new line. This patch just strips trailing whitespace/lines and adds missing newlines at the end.
Subscribers: ki.stfu, JDevlieghere, christof, lldb-commits
Differential Revision: https://reviews.llvm.org/D49943
llvm-svn: 338171
show more ...
|
Revision tags: llvmorg-6.0.1, llvmorg-6.0.1-rc3, llvmorg-6.0.1-rc2, llvmorg-6.0.1-rc1 |
|
#
52098cf5 |
| 13-Apr-2018 |
Greg Clayton <gclayton@apple.com> |
Allow relative file paths when settings source breakpoints
Many IDEs set breakpoints using absolute paths and this causes problems when the full path of the source file path doesn't match what is i
Allow relative file paths when settings source breakpoints
Many IDEs set breakpoints using absolute paths and this causes problems when the full path of the source file path doesn't match what is in the debug info. This can be due to different build systems and do or do not resolve symlinks. This patch allows relative breakpoint to be set correctly without needing to do any target.source-map tricks. If IDEs want to, they can send down relative paths like:
./main.c ./src/main.c src/main.c foo/bar/src/main.c
I used the breakpoint resolver to match on the file basename and then we weed out anything whose relative paths don't match. This will be a huge improvement for IDEs as they can specify as much of a relative path as desired to uniquely identify a source file in the current project.
Differential Revision: https://reviews.llvm.org/D45592
llvm-svn: 330028
show more ...
|
Revision tags: llvmorg-5.0.2, llvmorg-5.0.2-rc2, llvmorg-5.0.2-rc1 |
|
#
107052ff |
| 15-Mar-2018 |
Pavel Labath <labath@google.com> |
Next batch of test-tree-cleaning changes
Summary: The changes here fall into several categories.
- some tests were redirecting inferior stdout/err to a file. For these I make sure we use an absol
Next batch of test-tree-cleaning changes
Summary: The changes here fall into several categories.
- some tests were redirecting inferior stdout/err to a file. For these I make sure we use an absolute path for the file. I also create a lldbutil.read_file_on_target helper function to encapsulate the differences between reading a file locally and remotely. - some tests were redirecting the pexpect I/O into a file. For these I use a python StringIO object to avoid creating a file altogether. - the TestSettings inferior was creating a file. Here, I make sure the inferior is launched with pwd=build-dir so that the files end up created there. - lldb-mi --log (used by some tests) creates a log file in PWD without the ability say differently. To make this work I make sure to run lldb-mi with PWD=build_dir. This in turn necessitated a couple of changes in other lldb-mi tests, which were using relative paths to access the source tree.
Reviewers: aprantl
Subscribers: ki.stfu, mehdi_amini, lldb-commits
Differential Revision: https://reviews.llvm.org/D44159
llvm-svn: 327625
show more ...
|
Revision tags: llvmorg-6.0.0, llvmorg-6.0.0-rc3 |
|
#
25727a45 |
| 21-Feb-2018 |
Adrian McCarthy <amccarth@google.com> |
Fix TestBreakpointInGlobalConstructor for Windows
Summary: This test was failing on Windows because it expected the breakpoint in the dynamic library to be resolved before the process is launched.
Fix TestBreakpointInGlobalConstructor for Windows
Summary: This test was failing on Windows because it expected the breakpoint in the dynamic library to be resolved before the process is launched. Since the DLL isn't loaded until the process is launched this didn't work.
The fix creates a special value (-2) for num_expected_locations that ignores the actual number of breakpoint locations found.
Reviewers: jasonmolenda
Subscribers: sanjoy, lldb-commits
Differential Revision: https://reviews.llvm.org/D43419
llvm-svn: 325704
show more ...
|
#
f3a9ab07 |
| 21-Feb-2018 |
Pavel Labath <labath@google.com> |
Fix a couple of more tests to not create files in the source tree
Summary: These were not being flaky, but they're still making the tree dirty.
These tests were using lldbutil.append_to_process_wor
Fix a couple of more tests to not create files in the source tree
Summary: These were not being flaky, but they're still making the tree dirty.
These tests were using lldbutil.append_to_process_working_directory to derive the file path so I fix them by modifying the function to return the build directory for local tests.
Technically, now the path returned by this function does not point to the process working directory for local tests, but I think it makes sense to keep the function name, as I think we should move towards launching the process in the build directory (and I intend to change this for the handful of inferiors that actually care about their PWD, for example because they need to create files there).
Reviewers: davide, aprantl
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D43506
llvm-svn: 325690
show more ...
|
Revision tags: llvmorg-6.0.0-rc2 |
|
#
40207d50 |
| 02-Feb-2018 |
Jim Ingham <jingham@apple.com> |
Add the ability to restrict the breakpoint to a module for run_to_{source,name}_breakpoint.
llvm-svn: 324119
|
#
0423fcac |
| 01-Feb-2018 |
Jim Ingham <jingham@apple.com> |
Added lldbutil.run_to_name_breakpoint and use it in one test.
Using the "run_to_{source,name}_breakpoint will allow us to remove a lot of boiler-plate from the testsuite. We mostly use source break
Added lldbutil.run_to_name_breakpoint and use it in one test.
Using the "run_to_{source,name}_breakpoint will allow us to remove a lot of boiler-plate from the testsuite. We mostly use source breakpoints, but some tests use by name ones so this was needed.
llvm-svn: 324010
show more ...
|