summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve XFAIL for test_lldb_process_load_and_unload_commandsTamas Berghammer2015-07-161-1/+1
| | | | llvm-svn: 242392
* Add a class ValueObjectConstResultCast.Siva Chandra2015-07-162-0/+16
| | | | | | | | | | | | | | | | | | | | | Summary: Other changes around the main change include: 1. Add a method Cast to ValueObjectConstResult, ValueObjectConstResultImpl and ValueObjectConstResultChild. 2. Add an argument |live_address| of type lldb::addr_t to the constructor of ValueObjectConstResultChild. This is passed on to the backing ValueObjectConstResultImpl object constructor so that the address of the child value can be calculated properly. Reviewers: granata.enrico, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11203 llvm-svn: 242374
* Remove shell-specific code from TestLoadUnload Makefile.Chaoren Lin2015-07-151-5/+7
| | | | | | | | | | Reviewers: clayborg, sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11202 llvm-svn: 242332
* Expression evaluation, a new ThreadPlanCallFunctionUsingABI for executing a ↵Ewan Crawford2015-07-142-0/+93
| | | | | | | | | | | | | | | | | | | | function call on target via register manipulation For Hexagon we want to be able to call functions during debugging, however currently lldb only supports this when there is JIT support. Although emulation using IR interpretation is an alternative, it is currently limited in that it can't make function calls. In this patch we have extended the IR interpreter so that it can execute a function call on the target using register manipulation. To do this we need to handle the Call IR instruction, passing arguments to a new thread plan and collecting any return values to pass back into the IR interpreter. The new thread plan is needed to call an alternative ABI interface of "ABI::PerpareTrivialCall()", allowing more detailed information about arguments and return values. Reviewers: jingham, spyffe Subscribers: emaste, lldb-commits, ted, ADodds, deepak2427 Differential Revision: http://reviews.llvm.org/D9404 llvm-svn: 242137
* Refactor Unix signals.Chaoren Lin2015-07-141-29/+4
| | | | | | | | | | | | | | | | | | Summary: - Consolidate Unix signals selection in UnixSignals. - Make Unix signals available from platform. - Add jSignalsInfo packet to retrieve Unix signals from remote platform. - Get a copy of the platform signal for each remote process. - Update SB API for signals. - Update signal utility in test suite. Reviewers: ovyalov, clayborg Subscribers: chaoren, jingham, labath, emaste, tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D11094 llvm-svn: 242101
* Fixed a problem where variables in modules were not appropriately discovered bySean Callanan2015-07-101-0/+3
| | | | | | | | the expression parser. <rdar://problem/21395220> llvm-svn: 241917
* Don't let a test fail because of a teardown command returning an error. Use ↵Greg Clayton2015-07-101-3/+1
| | | | | | a function that doesn't check the return value. llvm-svn: 241879
* Try to enable TestProcessAttach tests on Linux.Oleksiy Vyalov2015-07-081-6/+0
| | | | | | http://reviews.llvm.org/D11013 llvm-svn: 241702
* Fixed a serious bug in DeportType where the types could retain DeclContexts thatSean Callanan2015-07-081-0/+6
| | | | | | | | | | | | | pointed into the artificial function constructed for the expression. I now make anything that pointed to the function as its DeclContext be global while the copy occurs; afterward I restored the old DeclContext. Added a testcase that make sure that this works properly and doesn't crash anything. <rdar://problem/21049838> llvm-svn: 241695
* Fixed the C modules test case on Darwin by streamlining its code.Sean Callanan2015-07-081-2/+0
| | | | | | | | | | We don't need to do the fancy dance with checking whether the iterator represents a #define -- in fact, that's the wrong thing to do. The thing to do is check whether the highest-priority module that did something to the module #defined or #undefd it. If it #defined it, then the MacroInfo* will be non-NULL and we're good to go. llvm-svn: 241651
* Windows doesn't have fork.Adrian McCarthy2015-07-071-0/+1
| | | | llvm-svn: 241640
* Fix _LocalProcess.terminate on Windows.Adrian McCarthy2015-07-071-12/+9
| | | | llvm-svn: 241589
* Add a summary for vector typesEnrico Granata2015-07-071-2/+3
| | | | | | | | | | | | The summary is - quite simply - a one-line printout of the vector elements We still need synthetic children: a) as a source of the elements to print in the summary b) for graphical IDEs that display structure regardless of the summary settings rdar://5429347 llvm-svn: 241531
* Normalize line endings.Adrian McCarthy2015-07-061-78/+78
| | | | llvm-svn: 241507
* Use /proc/$$/stat instead of $PPID.Chaoren Lin2015-07-061-1/+4
| | | | | | | | | | | | Summary: $PPID is not available on old shells. Reviewers: tberghammer, ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10968 llvm-svn: 241486
* Fix step over breakpoint on Windows (which was detected by ↵Adrian McCarthy2015-07-063-100/+100
| | | | | | TestCreateAfterAttach.py). llvm-svn: 241475
* Fix dosep.py on windows after r240946Pavel Labath2015-07-061-8/+8
| | | | | | | | | | | | | | | | Summary: On windows, global python variables are not automatically passed to child processes. This commit makes sure the default timeout value is available to child processes by passing it directly. I pass the whole dotest_opts value to the children, so we can use the other members as well if we need to do it in the future. Reviewers: amccarth Subscribers: lldb-commits-list Differential Revision: http://reviews.llvm.org/D10895 llvm-svn: 241459
* Make TestStopHook* remote platform compatibleTamas Berghammer2015-07-062-2/+24
| | | | llvm-svn: 241436
* Fix final wait in ExprSyscallTestCase for aarch64Tamas Berghammer2015-07-061-2/+4
| | | | llvm-svn: 241435
* Make TestDisassembleBreakpoint arm and aarch64 compatibleTamas Berghammer2015-07-031-8/+12
| | | | llvm-svn: 241338
* Fix typosBruce Mitchener2015-07-022-10/+10
| | | | | | | | | | | | Summary: Fixes more typos. Reviewers: clayborg Subscribers: lldb-commits-list Differential Revision: http://reviews.llvm.org/D10898 llvm-svn: 241289
* Remove outdated comment.Chaoren Lin2015-07-021-1/+0
| | | | llvm-svn: 241276
* Change executable name to a.out.Chaoren Lin2015-07-021-1/+1
| | | | | | | | | | | | Summary: The long name causes problems with some shells. Reviewers: sivachandra Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10888 llvm-svn: 241222
* Reversed r238363, because the message is inconsistentSean Callanan2015-07-01174-262/+252
| | | | | | with all the other assertion messages. llvm-svn: 241212
* [Python] Allow PyLong values in integer lists (when converting to C lists)Siva Chandra2015-07-011-18/+44
| | | | | | | | | | | | | | Test Plan: dotest.py -p TestSBData Reviewers: clayborg, granata.enrico Reviewed By: clayborg, granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10821 llvm-svn: 241208
* Mark test_sb_api_listener_event_process_state as flakeyYing Chen2015-07-011-0/+1
| | | | llvm-svn: 241203
* Run teardown and setup before retry for expectedFlakey testsYing Chen2015-07-011-1/+6
| | | | | | | | | | | | | | | | | | Summary: If test is decorated with expectedFlakey*, run teardown and setup before retry Don't run retry if the test is already decorated with xfail or skip Test Plan: Mark TestMultithreaded.test_sb_api_listener_event_process_state as expectedFlakey Run ./dotest.py -p TestMultithreaded.py -A x86_64 -C gcc4.9.2 Reviewers: vharron, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10830 llvm-svn: 241202
* Ignore "push/pop {sp}" in emulation based unwindingTamas Berghammer2015-06-302-2/+15
| | | | | | | | | | | These instructions confusing the unwind code because in case of a push it assumes that the original valu of a register is pushed to the stack what is not neccessarily true in case of SP. The same is true for the pop (in the opposite way). Differential revision: http://reviews.llvm.org/D10806 llvm-svn: 241051
* Revert "Mark test_sb_api_listener_event_process_state as flakey"Ying Chen2015-06-291-1/+0
| | | | | | | This reverts commit a4f5f4da7e164b7ac358a75f2e4254c25718ad4b. This test fails 100% with gcc4.9.2, revert it first. Will find out why xfail is overruled by xflaky. llvm-svn: 241014
* Mark test_sb_api_listener_event_process_state as flakeyTamas Berghammer2015-06-291-0/+1
| | | | llvm-svn: 240964
* Mark AttachResumeTestCase as flakyTamas Berghammer2015-06-291-0/+1
| | | | llvm-svn: 240962
* Correct failure decorator in test_fd_leak_multitargetEd Maste2015-06-291-1/+1
| | | | | | | | | | | | | | The random module in Python 2.7.8 and later leaks /dev/[u]random into children. The test is expected to fail, not be flakey. This will be fixed in Python 2.7.10 for some operating systems, but not all e.g. OS X 10.4. llvm.org/pr23983 bugs.freebsd.org/197376 bugs.python.org/issue23458 llvm-svn: 240958
* dosep.py: Add ability to set default test timout based on targetPavel Labath2015-06-291-2/+16
| | | | | | | | | | | | | | | | | Summary: Current default is 10 minutes, which causes the test suite to run very long in case of test timeouts. On local linux, each test completes in under 90 seconds in the slowest configuration (debug build of lldb, using debug clang to build inferiors). I am changing the default to 4m on local targets, while retaining the 10m timeout for remote ones. Reviewers: sivachandra, vharron Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10527 llvm-svn: 240946
* Add test for SBValue.GetNonSyntheticValue in presence of synth provider.Siva Chandra2015-06-264-25/+80
| | | | | | | | | | | | | | Test Plan: dotest.py -p TestFormattersSBAPI Reviewers: granata.enrico Reviewed By: granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10783 llvm-svn: 240861
* Fixed incorrect application of expectedFlakeyVince Harron2015-06-261-1/+1
| | | | llvm-svn: 240803
* Added expectedFlakey test decoratorVince Harron2015-06-2615-15/+80
| | | | | | | | | | | | | | | | | SUMMARY Flakey tests get two chances to pass Also, switched a bunch of tests to use new decorator. TEST PLAN Add one of these decorators to a test Edit a test to pass on the first invocation, confirm test appears as pass Edit a test to pass on the first invocation, pass on the second, confirm test appears as xfail Edit a test to fail on two consecutive runs, confirm test appears in results as fail/error Differential Revision: http://reviews.llvm.org/D10721 llvm-svn: 240789
* Add branch emulation to aarch64 instruction emulatorTamas Berghammer2015-06-261-0/+12
| | | | | | | | | The emulation of the branches are required by the new stack unwinding logic to reinstantiate the prologue at the right place. Differential revision: http://reviews.llvm.org/D10702 llvm-svn: 240769
* Fix a bug where we were trying to reconstruct ivars of ObjC types from the ↵Enrico Granata2015-06-255-0/+116
| | | | | | | | | | | | | | runtime in "expression parser mode" The expression parser mode allows UnknownAnyTy to make it all the way through, but that is bad for ivars because it means type layout fails horribly (as in, clang crashes) This patch fixes the issue by using the "variables view mode", which masks UnknownAnyTy as empty-type, and pointer-to UnknownAnyTy as void* This, in turn, allows LLDB to properly reconstruct ivars of IMP type in ObjC type - as per accompanying test case Fixes rdar://21471326 llvm-svn: 240677
* Update TestPrintStackTraces XFAIL once morePavel Labath2015-06-251-1/+1
| | | | | | | it seems the failure happens also with clang. The main thing which triggers the failure is architecture. llvm-svn: 240652
* Fix TestThreadAPI on LinuxTamas Berghammer2015-06-251-6/+4
| | | | | | | On Linux malloc calls itself in some case. Change the test case to handle this scenario. llvm-svn: 240651
* Enable TestInferiorCrashing and TestRecursiveInferior on androidPavel Labath2015-06-252-2/+5
| | | | | | | | | | | | | | | | | Summary: the original bug was fixed (a rogue breakpoint messing up inferior data structures) and the tests seems to pass now. Since android has a default SEGV handler, I have had to alter the test expectation in this case. Test Plan: Tests pass on android arm. Reviewers: tberghammer Subscribers: tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10733 llvm-svn: 240638
* Make XFAIL on TestPrintStackTraces more specificPavel Labath2015-06-251-4/+1
| | | | | | the thread creation failure was fixed, but a backtracing problem remains in some situations. llvm-svn: 240635
* Remove XFAIL from TestCreateAfterAttachPavel Labath2015-06-251-3/+0
| | | | | | | The tested functionality is implemented now. The test remains XTIMEOUTed, because it times out occasionally, probably due to test suite deficiencies. llvm-svn: 240632
* Expand result with type char* to string in -data-evaluate-expressionIlia K2015-06-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Expand result with type char* to string in -data-evaluate-expression. was: ``` -data-evaluate-expression str ^done,value="0x00007fffffffece0" ``` now: ``` -data-evaluate-expression str ^done,value="0x00007fffffffece0 \"hello\"" ``` All tests pass on Linux. Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi Reviewers: abidh Reviewed By: abidh Subscribers: lldb-commits, dawn, abidh Differential Revision: http://reviews.llvm.org/D10728 llvm-svn: 240631
* Remove xfail for TestDisassembleBreakpoint.Chaoren Lin2015-06-241-1/+0
| | | | | | LLGS no longer returns trap code in memory. llvm-svn: 240551
* Remove old local-only linux debugging codePavel Labath2015-06-248-20/+11
| | | | | | | | | | | | | | | | | | | | Summary: Currently, the local-only path fails about 50% of the tests, which means that: a) nobody is using it; and b) the remote debugging path is much more stable. This commit removes the local-only linux debugging code (ProcessLinux) and makes remote-loopback the only way to debug local applications (the same architecture as OSX). The ProcessPOSIX code is moved to the FreeBSD directory, which is now the only user of this class. Hopefully, FreeBSD will soon move to the new architecture as well and then this code can be removed completely. Test Plan: Test suite passes via remote stub. Reviewers: emaste, vharron, ovyalov, clayborg Subscribers: tberghammer, emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D10661 llvm-svn: 240543
* Fix FIXME comments in MiBreakTestCase.test_lldbmi_break_insert_settings as ↵Dawn Perchik2015-06-231-9/+6
| | | | | | suggested by abidh (MI) llvm-svn: 240444
* Add support for displaying the language in the frame-format string.Dawn Perchik2015-06-231-1/+1
| | | | | | | | | | | | | | | | | | | Enable ${language} to be specified in the frame-format string to see the current frame's compile unit language in "frame info". Test Plan: debug a C++ program, run to main, and run the lldb commands: settings set frame-format "frame lang=${language}\n" frame info you should see: frame lang=c++ test case added in: ./dotest.py --executable lldb -f SettingsCommandTestCase.test_set_frame_format Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10561 llvm-svn: 240440
* Adding some more flakey tests to the XFAIL listVince Harron2015-06-224-0/+5
| | | | llvm-svn: 240327
* Enhance lldb-mi arguments test (MI)Dawn Perchik2015-06-222-10/+39
| | | | | | | | | | | | | | SUMMARY: Add additional arguments to lldb-mi args tests to make sure arguments with quotes are handled correctly. Reviewers: ki.stfu Subscribers: lldb-commits Test Plan: ./dotest.py --executable lldb -f MiInterpreterExecTestCase.test_lldbmi_settings_set_target_run_args_before ./dotest.py --executable lldb -f MiInterpreterExecTestCase.test_lldbmi_settings_set_target_run_args_after Differential Revision: http://reviews.llvm.org/D10523 llvm-svn: 240325
OpenPOWER on IntegriCloud