summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
Commit message (Collapse)AuthorAgeFilesLines
...
* Use llvm::APFloat for formatting if a target is available. Each target when ↵Greg Clayton2013-06-114-20/+18
| | | | | | | | debugging has a "ASTContext" that helps us to use the correct floating point semantics. Now that APFloat supports toString we now use that. If we don't have a target, we still fall back on the old display methodology, but the important formatting should always have a target available and thus use the compiler floating point code. Modified the test programs to use floating point constants that always will display correctly. We had some numbers that were being rounded, and now that we are using clang, we no longer round them and we get more correct results. llvm-svn: 183792
* Updating convenience register attach testAndrew Kaylor2013-06-071-9/+22
| | | | llvm-svn: 183580
* Revert r183281, adds a comment about how to reproduce the hang.Ashok Thirumurthi2013-06-071-0/+1
| | | | llvm-svn: 183569
* Tweaks to the std::list (libstdc++ test case)Enrico Granata2013-06-071-69/+14
| | | | llvm-svn: 183480
* Adding a test case for pr15415 - partial backtrace with -fomit-frame-pointerAshok Thirumurthi2013-06-063-0/+268
| | | | | | | | | | | | that is patterned after its parent TestInferiorCrashing.py. - The xfail decorator limits the xfail to tool-chains that support this compiler option. - Included a TODO concerning the platform-specific behavior when 'next' is issued after a crash. - Toggling -fomit-frame-pointer results in an xpass as mentioned in pr15415. Thanks to Daniel for the review, and Samuel for the bug report and reproducer. llvm-svn: 183434
* Add test cases for attaching to a process after forkDaniel Malea2013-06-053-0/+188
| | | | | | | | | - one test case is due to llvm.org/pr16229 - other test case uses a Linux workaround for above by using os.fork() instead of subprocess module Patch by Andy Kaylor! llvm-svn: 183340
* Fix Makefiles in the data-formatter-stl testsDaniel Malea2013-06-056-21/+17
| | | | | | - specify compiler flag -stdlib=libstdc++ only if using clang (not supported in gcc) llvm-svn: 183333
* <rdar://problem/13125225>Enrico Granata2013-06-0510-22/+729
| | | | | | | Adding data formatters for std::set, std::multiset and std::multimap for libc++ The underlying data structure is the same as std::map, so this change is very minimal and mostly consists of test cases llvm-svn: 183323
* Skip intermittent watchpoint test failure when testing on Linux/gcc.Matt Kopec2013-06-051-0/+2
| | | | llvm-svn: 183316
* Re-enabling a test that is no longer failingAndrew Kaylor2013-06-041-1/+0
| | | | llvm-svn: 183281
* <rdar://problem/12582328>Enrico Granata2013-06-041-2/+8
| | | | | | | | | | If you want to define a formatter for "array of Foo of any size", ordinarily you would say -x "Foo \[[0-9]+\]" this checkin allows you to instead say "Foo[]" (or "Foo []") and LLDB will automatically create the regular expression and add the -x flag on your behalf llvm-svn: 183272
* Un-skipping test that was disabled due to llvm.org/pr16191Daniel Malea2013-06-032-2/+6
| | | | | | | - adding workaround recommended by Greg (-fno-limit-debug-info clang flag) - filed bug llvm.org/pr16214 against Clang llvm-svn: 183156
* Fix setting of watchpoints on inferior thread creation for Linux.Matt Kopec2013-06-031-2/+0
| | | | llvm-svn: 183139
* Skipping test case for clang 3.4 due to llvm.org/pr16191Daniel Malea2013-05-311-0/+3
| | | | | | - should resolve remaining buildbot issues with debian/clang builder llvm-svn: 183044
* <rdar://problem/14035604>Enrico Granata2013-05-313-0/+109
| | | | | | | | | | | | | Fixing an issue where formats would not propagate from parents to children in all cases Details follow: an SBValue has children and those are fetched along with their values Now, one calls SBValue::SetFormat() on the parent Technically, the format choices should propagate onto the children (see ValueObject::GetFormat()) But if the children values are already fetched, they won't notice the format change and won't update themselves This commit fixes that by making ValueObject::GetValueAsCString() check if any format change intervened from the previous call to the current one A test case is also added llvm-svn: 183030
* <rdar://problem/11109316>Enrico Granata2013-05-311-5/+3
| | | | | | | | | | | | | | | | | command script import now does reloads - for real If you invoke command script import foo and it detects that foo has already been imported, it will - invoke reload(foo) to reload the module in Python - re-invoke foo.__lldb_init_module This second step is necessary to ensure that LLDB does not keep cached copies of any formatter, command, ... that the module is providing Usual caveats with Python imports persist. Among these: - if you have objects lurking around, reloading the module won't magically update them to reflect changes - if module A imports module B, reloading A won't reload B These are Python-specific issues independent of LLDB that would require more extensive design work The --allow-reload (-r) option is maintained for compatibility with existing scripts, but is clearly documented as redundant - reloading is always enabled whether you use it or not llvm-svn: 182977
* Improve TestExitDuringStep to verify thread behaviour during step-over, ↵Daniel Malea2013-05-301-4/+50
| | | | | | | | step-in in addition to step-inst Patch by Brian Minard! llvm-svn: 182961
* Remove extraneous files from test directory.Matt Kopec2013-05-303-117/+0
| | | | llvm-svn: 182943
* Fixing problems with thread create during step test.Andrew Kaylor2013-05-291-8/+6
| | | | llvm-svn: 182888
* Refactors to provide two variants for evaluation of text_list:Ashok Thirumurthi2013-05-292-6/+70
| | | | | | | | - The original test now passes on Linux with clang because a breakpoint is hit prior to evaluation of text_list, which improves text coverage. - The new test fails because 4 steps are requested, and only two occur prior to evaluation of text_list. --- Note that the loss of every second "next" command can be reproduced using lldb manually with this script. llvm-svn: 182860
* Removing expected failures for watchpoint tests which are now passing.Andrew Kaylor2013-05-292-2/+0
| | | | llvm-svn: 182813
* Adding support for stopping all threads of multithreaded inferiors on Linux. ↵Andrew Kaylor2013-05-2823-14/+1438
| | | | | | Also adding multithreaded test cases. llvm-svn: 182809
* <rdar://problem/13455021>Greg Clayton2013-05-215-0/+86
| | | | | | Add test case to make sure we don't regress on fat files full of skinny BSD archives. llvm-svn: 182440
* Quiet the new exec test case down so it doesn't spew debug prints.Greg Clayton2013-05-211-21/+5
| | | | llvm-svn: 182429
* Added a test case that verifies that LLDB can debug across a process ↵Greg Clayton2013-05-213-0/+220
| | | | | | | | exec'ing itself into a new program. This currently is only enabled for Darwin since we exec from 64 bit to 32 bit and vice versa for 'x86_64' targets. This can easily be adapted for linux and other platforms, but I didn't want to break any buildbots by assuming it will work. llvm-svn: 182428
* Avoided the use of two test decorators with xfail/xpass logic in the same test.Ashok Thirumurthi2013-05-171-6/+6
| | | | | | - Used xfail and skip, temporarily, while resolving bugzilla #15671. llvm-svn: 182159
* Fix xpasses on the gcc buildbots using compiler versions to qualify the xfail.Ashok Thirumurthi2013-05-171-3/+6
| | | | | | | | | | - Note that this is not correct, as the failure is associated with build options of libc.so, however it's failing on a Debian buildbot that uses gcc 4.6.2 (and the real goal is a complete backtrace even with -fomit-frame-pointer). - Adds helpers to lldbtest.py to check the expectedCompiler and expectedVersion, with an eventual goal of reducing the number of test decorators. --- Currently allows a comparison operator and a compiler version to be specified. --- Can be extended to support ranges of compiler versions. llvm-svn: 182155
* Modifies the log directory to ensure that the log file will be found on ↵Ashok Thirumurthi2013-05-171-3/+3
| | | | | | | | tear-down (i.e. for CI agents that clean up artifacts aggressively). - Uses the cwd following the model of TestPublicAPIHeaders.py llvm-svn: 182116
* Adds a test case for bugzilla #15671 patterned after TestInferiorCrashing.py.Ashok Thirumurthi2013-05-173-0/+242
| | | | | | | | | - On Linux, the partial back-trace after an assert can cause the basic test to fail as discussed on lldb-dev. - Uses SBFrame to walk up the stack to the assert site and tests expression evaluation of locals, globals and arguments. Thanks to Daniel for review and testing on OS/X. llvm-svn: 182115
* Uses a helper to consistently verify the stop reason in all tests.Ashok Thirumurthi2013-05-171-53/+21
| | | | | | - Also removes a redundant import statement. llvm-svn: 182111
* Updated TestAbbreviations to reflect the changed output in r182068.Ashok Thirumurthi2013-05-171-1/+1
| | | | llvm-svn: 182104
* Fix Linux 'platform status' command. Its output is now closer to that on Mac ↵Daniel Malea2013-05-161-1/+0
| | | | | | | | | | OS X - resolves llvm.org/pr14806 Patch by Matthew Sorrels! llvm-svn: 182030
* Clean up linux test decorators and add links to known bugsDaniel Malea2013-05-1524-33/+33
| | | | | | | | | - s/skipOnLinux/skipIfLinux/ to match style of every other decorator - linkify bugizilla/PR numbers in comments No intended change in functionality. llvm-svn: 181913
* Re-enable tests disabled due to llvm.org/pr14541Daniel Malea2013-05-152-2/+0
| | | | | | | - "platform process list" command works on Linux now - "process attach -n" (attach to process by name also works on Linux now) llvm-svn: 181905
* Revert r181833: lldb prompt issue still occurs on buildbot ↵Daniel Malea2013-05-153-0/+3
| | | | | | | | (http://lab.llvm.org:8011/builders/lldb-x86_64-linux/builds/4124) - maybe consider checking in the 'good' version of libedit to avoid ancient system version llvm-svn: 181903
* Remove XFAIL from tests affected by llvm.org/pr-14637Daniel Malea2013-05-143-3/+0
| | | | | | - unable to repro locally, much like many people commenting on the issue llvm-svn: 181833
* Avoid $rax for 32-bit inferiors to fix a failing i386 test on the darwin ↵Ashok Thirumurthi2013-05-141-4/+6
| | | | | | buildbots. llvm-svn: 181789
* Adding new test cases for inferior crashing.Andrew Kaylor2013-05-131-7/+75
| | | | llvm-svn: 181742
* Prevent convenience registers from being included in "read register" as they ↵Ashok Thirumurthi2013-05-131-6/+7
| | | | | | | | | are derived registers. - Also refactors TestRegisters.py because test_convenience_registers_with_process_attach now fails with an assert. TODO: Cross-reference the skipOnLinux decorator with a bugzilla report after root-causing this issue. llvm-svn: 181737
* Fixed expression evaluation with convenience registers.Ashok Thirumurthi2013-05-131-0/+6
| | | | | | | - Also improved test coverage for passing tests to include expr/x and a sanity check for $eax as the lower half of $rax. llvm-svn: 181727
* Adding support for setting thread stop state when a process stops.Andrew Kaylor2013-05-101-2/+0
| | | | | | This re-submission of this patch fixes a problem where the code sometimes caused a deadlock. The Process::SetPrivateState method was locking the Process::m_private_state variable and then later calling ThreadList::DidStop, which locks the ThreadList mutex. Other methods in ThreadList which were being called from other threads lock the ThreadList mutex and then call Process::GetPrivateState which locks the Process::m_private_state mutex. To avoid deadlocks, Process::SetPrivateState now locks the ThreadList mutex before locking the Process::m_private_state mutex. llvm-svn: 181609
* Removed expectedFailureDarwin, and added a note about the disparity between ↵Ashok Thirumurthi2013-05-101-4/+2
| | | | | | the automated tests and testing at the lldb command-line. llvm-svn: 181602
* Added an integration test to step through a crash and then test for globals, ↵Ashok Thirumurthi2013-05-102-6/+69
| | | | | | locals, arguments, registers and the back-trace. llvm-svn: 181599
* Fixed "log enable linux registers" and added a test.Ashok Thirumurthi2013-05-091-1/+24
| | | | | | | | | | - Eliminated the use of static for methods that read m_register_infos, so that these routines can be implemented in the base class. - Eliminated m_register_infos in the base class because this is not used when derived classes call UpdateRegisterInfo. - Also moved the namespace using declarations from headers to source files. Thanks to Daniel and Samuel for their review feedback. llvm-svn: 181538
* Revert r181482 as it causes occasional hangs in LLDB buildbotsDaniel Malea2013-05-091-0/+2
| | | | llvm-svn: 181526
* Changing the std::map test case to use source breakpoints instead of relying ↵Enrico Granata2013-05-092-30/+45
| | | | | | | | on the nexting always "getting it right" to stop at the locations of interest This should make us more robust in the face of changing compiler line tables and other library modifications llvm-svn: 181497
* Fixed the process attach by name test to get the target _after_ doing ↵Greg Clayton2013-05-081-2/+2
| | | | | | process attach. Otherwise the target isn't valid. This fixes 2 test suite failures on darwin. llvm-svn: 181488
* Adding code to set thread state to stopped when the process stops.Andrew Kaylor2013-05-081-2/+0
| | | | llvm-svn: 181482
* Test case added for importing packagesEnrico Granata2013-05-084-0/+18
| | | | llvm-svn: 181472
* Mark multi-threaded watchpoint test as skip on Linux due to lldb assertions ↵Matt Kopec2013-05-081-2/+2
| | | | | | in the debian buildbot. llvm-svn: 181454
OpenPOWER on IntegriCloud