summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor changes in the MiStartupOptionsTestCase (MI)Ilia K2015-05-072-7/+7
| | | | llvm-svn: 236704
* Add -s/--source option support (MI)Ilia K2015-05-075-1/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch adds -s/--source option to execute source file with prepared command. For example: ``` $ cat start_script target create ~/p/hello process launch -s continue $ bin/lldb-mi -s start_script (gdb) target create ~/p/hello Current executable set to '~/p/hello' (x86_64). ^done (gdb) process launch -s =shlibs-added,shlib-info=[num="1",name="hello",dyld-addr="-",reason="dyld",path="/Users/IliaK/p/hello",loaded_addr="-",dsym-objpath="/Users/IliaK/p/hello.dSYM/Contents/Resources/DWARF/hello"] Process 33289 launched: '/Users/IliaK/p/hello' (x86_64) ^done (gdb) continue =thread-created,id="1",group-id="i1" =thread-selected,id="1" (gdb) Process 33289 resuming Process 33289 exited with status = 0 (0x00000000) ^done ``` Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi/ Reviewers: abidh Reviewed By: abidh Subscribers: lldb-commits, abidh Differential Revision: http://reviews.llvm.org/D9278 llvm-svn: 236703
* Fix LLDB-MI -data-read-memory-bytes command to comply with GDB/MI specBruce Mitchener2015-05-072-3/+130
| | | | | | | | | | | | | | | | | | | | | | | Summary: - The address argument can now be an expression (e.g. &array), it's no longer restricted to being just a number literal. - The -o (offset) option is now properly handled, not just silently ignored. - The --thread option is now properly handled. - A new --frame option has been added for consistency with GDB. - Added a new test to verify old and new functionality. Patch by Vadim Macagon. Thanks! Test Plan: ./dotest.py -A x86_64 -C clang --executable $BUILDDIR/bin/lldb tools/lldb-mi/data Reviewers: domipheus, abidh, ki.stfu Reviewed By: abidh, ki.stfu Subscribers: brucem, lldb-commits Differential Revision: http://reviews.llvm.org/D9470 llvm-svn: 236694
* Fix adb forward in gdbremote_testcase to support multiple devices.Chaoren Lin2015-05-071-6/+12
| | | | | | | | | | | | | | Summary: Update to D9510. Reviewers: chying, tberghammer, ovyalov Reviewed By: ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9542 llvm-svn: 236688
* Skip additional lldb-mi tests that failed on FreeBSDEd Maste2015-05-061-0/+3
| | | | llvm-svn: 236636
* Don't attempt DSym tests on Windows.Adrian McCarthy2015-05-061-3/+2
| | | | llvm-svn: 236620
* Restore TestRegisterVariables failure decorator for older ClangEd Maste2015-05-061-0/+1
| | | | | | | The @expectedFailureClang decorator was removed in r236447, but it seems to be fixed only with Clang 3.5+. llvm-svn: 236614
* Update gdbremote_testcase to accomodate new adb:// scheme.Chaoren Lin2015-05-061-1/+2
| | | | | | | | | | | | Reviewers: chying, ovyalov Reviewed By: chying, ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9510 llvm-svn: 236560
* Mark TestMultithreaded.test_sb_api_listener_resume as XFAIL with gcc 4.8 and ↵Oleksiy Vyalov2015-05-051-1/+1
| | | | | | higher. llvm-svn: 236549
* Fix typo. platfrom -> platformChaoren Lin2015-05-052-5/+5
| | | | llvm-svn: 236543
* Revert "Enable TestConvenienceVariables on Linux"Pavel Labath2015-05-051-0/+1
| | | | | | | | This reverts commit 193ac6993b64a502db6dc7f2d69dafc47c318407. The buildbot says the test still fails. :) llvm-svn: 236500
* Enable TestConvenienceVariables on LinuxPavel Labath2015-05-051-1/+0
| | | | | | The test has passed in the last 300 runs for me, enabling to see what the buildbot says. llvm-svn: 236498
* Enable TestChangeValueAPI on LinuxPavel Labath2015-05-051-2/+1
| | | | | | | | the test has passed in the last 300 runs, enabling to see what the build bot says. Also, downgrading skipIfGcc to XFAIL, with plans of enabling it in the future if it shows to be working. llvm-svn: 236496
* Enable TestCallStopAndContinue on LinuxPavel Labath2015-05-051-1/+0
| | | | | | | This test has been working reliably for me in the last 300 test runs. Enabling to see what the buildbot thinks... llvm-svn: 236495
* [ValueObject] Do not return address of eValueTypeHostAddress values.Siva Chandra2015-05-041-1/+0
| | | | | | | | | | | | | | | | | | Summary: This fixes TestRegisterVariables for clang and hence it is enabled in this commit. Test Plan: dotest.py -C clang -p TestRegisterVariables Reviewers: clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9421 llvm-svn: 236447
* Mark TestTypedefArray as XFAIL with Gcc.Oleksiy Vyalov2015-05-041-1/+2
| | | | llvm-svn: 236425
* TestCModules - fixed for gccVince Harron2015-05-042-2/+1
| | | | | | Changed restrict keyword to something understood by gcc llvm-svn: 236410
* XFAILing a test that fails with gcc 4.9 x86_64Vince Harron2015-05-041-0/+1
| | | | llvm-svn: 236407
* un-skipped a bunch of tests on LinuxVince Harron2015-05-048-10/+11
| | | | | | | | | Some have been marked as skipIfLinux for years. The seem to be passing so I've enabled them. Differential Revision: http://reviews.llvm.org/D9428 llvm-svn: 236403
* Fixed skipIfLinuxClang to check the target architectureVince Harron2015-05-041-2/+2
| | | | | | | | | Instead of the host architecture This decorator isn't in use anywhere currently. Add it to a test and run llvm-svn: 236402
* Enabled libc++ formatter tests on LinuxVince Harron2015-05-0424-42/+93
| | | | | | | | | | Refactored TestInitializerList to not be an inline test. Refactored Makefiles to use USE_LIBCPP instead of adding FLAGS directly Fixed copy/paste error in TestDataFormatterUnordered class name Differenttial Revision: http://reviews.llvm.org/D9426 llvm-svn: 236401
* TestMultithreaded improvementsVince Harron2015-05-042-12/+35
| | | | | | | | | | | | | | These tests link against host lldb API. Compiler's target triple must match liblldb triple. Instead of naively skipping i386, I added a check of the liblldb arch against the compiler target arch. This is useful for 32 bit API builds (planned for Windows) Since remote is disabled, we can assume the os is the same. Also, removed skipIfLinuxClang because it's passing llvm-svn: 236396
* Mark the other test of TestFdLeak also as xfail to keep the bot green.Siva Chandra2015-05-021-0/+1
| | | | | | | | | | | | | | | | Summary: r235916 marked only one of the tests as xfail, but the other also has been failing intermitantly on the buildbot. Reviewers: chaoren Reviewed By: chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9452 llvm-svn: 236366
* Added support for locating and importing functionsSean Callanan2015-05-016-0/+116
| | | | | | | | | | | | (including inline functions) from modules in the expression parser. We now have to retain a reference to the code generator in ClangExpressionDeclMap so that any imported function bodies can be appropriately sent to that code generator. <rdar://problem/19883002> llvm-svn: 236297
* Fix MiLibraryLoadedTestCase.test_lldbmi_library_loaded test on Linux (MI)Ilia K2015-04-301-2/+4
| | | | llvm-svn: 236229
* Use \d+ pattern instead of hard-coded line number in MiBreakTestCase (MI)Ilia K2015-04-301-5/+5
| | | | llvm-svn: 236228
* Enabling two watchpoint tests on linuxPavel Labath2015-04-302-2/+0
| | | | | | After recent changes, these tests should be stable. Please let me know if you still see failures. llvm-svn: 236226
* Rework =shlibs-added/=shlibs-removedIlia K2015-04-301-0/+33
| | | | | | | | | | | | | | | | | | | | | Summary: This patch includes the following: * Rename =shlibs-added/=shlibs-removed to standard =library-loaded/=library-unloaded * Remove redundant fields * Add extra symbols-loaded/symbols-path and loaded_addr fields * Rename CMICmnMIOutOfBandRecord::eOutOfBand_TargetModulesLoaded/eOutOfBand_TargetModulesUnloaded to CMICmnMIOutOfBandRecord::eOutOfBand_TargetModuleLoaded/eOutOfBand_TargetModuleUnloaded Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi/ Reviewers: jasonmolenda, jingham, abidh Reviewed By: abidh Subscribers: lldb-commits, jingham, jasonmolenda, abidh Differential Revision: http://reviews.llvm.org/D9280 llvm-svn: 236225
* Add expectedFailureLinux to TestProcessAttachPavel Labath2015-04-301-2/+6
| | | | | | The test is skipped anyway due to timeout, but adding XFAIL improves grepability. llvm-svn: 236224
* Add -data-info-line command (MI)Ilia K2015-04-302-1/+48
| | | | | | | | | | | | | | | | Summary: Add -data-info-line command + test Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi/ Reviewers: abidh Reviewed By: abidh Subscribers: lldb-commits, abidh Differential Revision: http://reviews.llvm.org/D9276 llvm-svn: 236208
* Add support for -stack-list-variables.Hafiz Abid Qadeer2015-04-292-0/+188
| | | | | | | | This command is able to list both local variables and stack arguments for a specific thread/frame. Args are denoted with 'arg="1"'. Patch from Chuck Ries. llvm-svn: 236090
* [TestMiVar] Enable one of the tests for GCC.Siva Chandra2015-04-281-2/+2
| | | | | | | | | | | | | | | | | | Summary: The "internal" name of vars is different between clang and GCC. All this change does is to use a regex instead of the hardcoded internal name. Test Plan: dotest.py -C <clang|gcc> -p TestMiVar Reviewers: ki.stfu Reviewed By: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9128 llvm-svn: 236024
* Add language option in -gdb-show command (MI)Ilia K2015-04-281-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add language option in -gdb-show command + test: ``` $ bin/lldb-mi ~/p/hello [...] b main [...] r [...] (gdb) -gdb-show language ^done,value="c++" (gdb) quit ``` Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi/ Reviewers: abidh, granata.enrico, jingham, clayborg Reviewed By: clayborg Subscribers: lldb-commits, jingham, granata.enrico, clayborg, abidh Differential Revision: http://reviews.llvm.org/D9279 llvm-svn: 235983
* Skip TestProcessAttach.py on LinuxPavel Labath2015-04-281-2/+2
| | | | | | | The test was already XFAILed. Changing this to skip, because the test timeouts and gets flagged as an error anyway. llvm-svn: 235979
* LLDB-MI: -var-list-children with no children doesn't need a children value ↵Bruce Mitchener2015-04-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | in the response. Summary: When using GDB with MI, if there aren't children for a variable, it doesn't include a "children" value in the response. LLDB does and sets it to "[]" while variables with children have an unquoted list: children=[...]. This removes the children value entirely when there are no children making this match GDB in behavior. Test Plan: Ran tests on Mac OS X and they passed. Reviewers: abidh, domipheus Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9320 llvm-svn: 235974
* [TestProcessAttach] Decorate with expectedFailureLinuxSiva Chandra2015-04-271-0/+2
| | | | | | | | | | | | | | Summary: Link to PR: llvm.org/pr23360 Test Plan: dotest.py -p TestProcessAttach Reviewers: sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9310 llvm-svn: 235947
* XFail flakey test.Chaoren Lin2015-04-271-0/+1
| | | | llvm-svn: 235916
* XFAIL two mi tests on gcc to stabilise build botsPavel Labath2015-04-271-0/+2
| | | | llvm-svn: 235851
* Disable ↵Ilia K2015-04-251-0/+1
| | | | | | MiGdbSetShowTestCase.test_lldbmi_gdb_set_show_print_char_array_as_string test on Linux llvm-svn: 235808
* Add -gdb-set/-gdb-show aggregate-field-names option (MI)Ilia K2015-04-252-0/+69
| | | | | | | | | | | | | | | | | | Use this option to print/skip field names (default is on): ``` -var-create var1 * complx ^done,name="var1",numchild="3",value="{i = 3, inner = {l = 3}, complex_ptr = 0x[0-9a-f]+}",type="complex_type",thread-id="1",has_more="0" -var-create var2 * complx_array ^done,name="var2",numchild="2",value="{[0] = {i = 4, inner = {l = 4}, complex_ptr = 0x[0-9a-f]+}, [1] = {i = 5, inner = {l = 5}, complex_ptr = 0x[0-9a-f]+}}",type="complex_type [2]",thread-id="1",has_more="0" -gdb-set print aggregate-field-names off ^done -var-create var3 * complx ^done,name="var3",numchild="3",value="{3,{3},0x[0-9a-f]+}",type="complex_type",thread-id="1",has_more="0" -var-create var4 * complx_array ^done,name="var4",numchild="2",value="{{4,{4},0x[0-9a-f]+},{5,{5},0x[0-9a-f]+}}",type="complex_type [2]",thread-id="1",has_more="0" ``` llvm-svn: 235807
* Add -gdb-set/-gdb-show expand-aggregates option (MI)Ilia K2015-04-252-0/+65
| | | | | | | | | | | | | | | | | | Use this option to expand complex types always: ``` -var-create var1 * complx ^done,name="var1",numchild="3",value="{...}",type="complex_type",thread-id="1",has_more="0" -var-create var2 * complx_array ^done,name="var2",numchild="2",value="[2]",type="complex_type [2]",thread-id="1",has_more="0" -gdb-set print expand-aggregates on ^done -var-create var3 * complx ^done,name="var3",numchild="3",value="{i = 3, inner = {l = 3}, complex_ptr = 0x[0-9a-f]+}",type="complex_type",thread-id="1",has_more="0" -var-create var4 * complx_array ^done,name="var4",numchild="2",value="{[0] = {i = 4, inner = {l = 4}, complex_ptr = 0x[0-9a-f]+}, [1] = {i = 5, inner = {l = 5}, complex_ptr = 0x[0-9a-f]+}}",type="complex_type [2]",thread-id="1",has_more="0" ``` llvm-svn: 235805
* Add -gdb-set/-gdb-show print char-array-as-string option (MI)Ilia K2015-04-252-0/+79
| | | | llvm-svn: 235804
* Eliminate redundant Alias test and improve Common Short Spellings test ↵Adrian McCarthy2015-04-247-350/+20
| | | | | | http://reviews.llvm.org/D9268 llvm-svn: 235790
* Use self.fail() in MiGdbSetShowTestCase.test_lldbmi_gdb_set_target_async_off ↵Ilia K2015-04-241-2/+1
| | | | | | (MI) llvm-svn: 235712
* Fix CMICmnLLDBDebuggerHandleEvents::GetProcessStdout/GetProcessStderr to use ↵Ilia K2015-04-244-14/+14
| | | | | | stream-record (MI) llvm-svn: 235711
* Factor resolution of abbreviations and aliases so that they can be tested ↵Adrian McCarthy2015-04-231-164/+80
| | | | | | directly. http://reviews.llvm.org/D9033 llvm-svn: 235633
* MI fix allowing multiple logging instances of lldb-mi to run simultaneously.Ilia K2015-04-231-0/+73
| | | | | | | | | | | | | | | | | | | | Summary: Currently if two instances of lldb-mi are running with logging enabled using '--log' the log file conflicts. This produces the following error MI: Error: File Handler. Error Permission denied opening 'C:\Users\Ewan\LLVM\build\Debug\bin\lldb-mi-log.txt' Fixed in this patch by renaming lldb-mi-log.txt based on the date, e.g. lldb-mi-log.txt-20150316163631.log, and moving the file into the temp directory by using the --log-dir option. Regrading previous review comments the P_tmpdir macro is defined in Windows but always points to "\", which doesn't help much. Also when using the Windows API for GetTempPath() dynamic memory seems much more messy. Patch from ewan@codeplay.com Reviewers: abidh, EwanCrawford Subscribers: zturner, lldb-commits, deepak2427 Differential Revision: http://reviews.llvm.org/D9054 llvm-svn: 235589
* Fix test expectation in TestNoreturnUnwindTamas Berghammer2015-04-231-3/+2
| | | | | | | | | | The test case lookinhg for the abort function in the stack trace. Previously it lookd for a function which ends with "abort" but on some system there are multiple such functions (e.g.: on android abort calls __libc_android_abort) what made the test fail. This CL change the behaviour to look for the abort function based on a fix list of names. llvm-svn: 235584
* Add decorator for signal test failing on FreeBSDEd Maste2015-04-221-0/+1
| | | | | | llvm.org/pr23318 llvm-svn: 235523
* Skip additional lldb-mi tests that failed on FreeBSDEd Maste2015-04-222-0/+5
| | | | llvm-svn: 235510
OpenPOWER on IntegriCloud