| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This merge brings in the improved 'platform' command that knows how to
interface with remote machines; that is, query OS/kernel information, push
and pull files, run shell commands, etc... and implementation for the new
communication packets that back that interface, at least on Darwin based
operating systems via the POSIXPlatform class. Linux support is coming soon.
Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS
X Mountain Lion.
Additional improvements (not in the source SVN branch 'lldb-platform-work'):
- cmake build scripts for lldb-platform
- cleanup test suite
- documentation stub for qPlatform_RunCommand
- use log class instead of printf() directly
- reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely.
- add new logging category 'platform'
Reviewers: Matt Kopec, Greg Clayton
Review: http://llvm-reviews.chandlerc.com/D1493
llvm-svn: 189295
|
|
|
|
| |
llvm-svn: 187730
|
|
|
|
|
|
|
|
| |
when testing with ICC.
Patch from Andy Kaylor.
llvm-svn: 187520
|
|
|
|
|
| |
TODO: Improve coverage of SBTypeMember and of 'target module dump'.
llvm-svn: 187519
|
|
|
|
|
|
|
|
| |
compilers.
Also update comment in const variables test to reflect ICC status.
llvm-svn: 187501
|
|
|
|
| |
llvm-svn: 187415
|
|
|
|
|
|
|
| |
These fail due to:
error: Expression can't be run, because there is no JIT compiled function
llvm-svn: 187072
|
|
|
|
| |
llvm-svn: 185455
|
|
|
|
| |
llvm-svn: 184104
|
|
|
|
|
|
| |
- clang emits incomplete DWARF information for structures referenced via typedef
llvm-svn: 183846
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Implemented the SExt instruction, and
- eliminated redundant codepaths for constant
handling.
Added test cases.
<rdar://problem/13244258>
<rdar://problem/13955820>
llvm-svn: 183344
|
|
|
|
|
|
| |
<rdar://problem/14005311>
llvm-svn: 183022
|
|
|
|
|
|
|
|
|
| |
- s/skipOnLinux/skipIfLinux/ to match style of every other decorator
- linkify bugizilla/PR numbers in comments
No intended change in functionality.
llvm-svn: 181913
|
|
|
|
|
|
| |
to completion on the gcc buildbot.
llvm-svn: 181512
|
|
|
|
|
|
| |
The tests are already skipped on linux.
llvm-svn: 180965
|
|
|
|
|
|
| |
access to 'z' where 'z' was not in scope.
llvm-svn: 180662
|
|
|
|
|
|
| |
<rdar://problem/12977827>
llvm-svn: 180215
|
|
|
|
|
|
|
|
|
|
|
|
| |
- New tests can fail on OS/X and Linux, and illustrate that the compiler
used to generate the DWARF can result in lldb providing clang with an
external AST source that doesn't describe all required struct fields.
- Also includes test coverage for expressions with structs that do work on Linux- Also includes a test for dereferencing a null pointer to a struct, which works on OS/X rather than complaining, and complains on Linux with an upstream error that is really a side issue.
Thanks to Samuel, Andy and Daniel for their input.
llvm-svn: 179884
|
|
|
|
|
|
| |
char[]
llvm-svn: 178295
|
|
|
|
|
|
|
|
|
|
| |
-adds icc to the lit of compilers to run the tests
-adds icc test decorators
-skip TestAnonymous.py for icc
Patch by Ashok Thirumurthi.
llvm-svn: 177174
|
|
|
|
|
|
| |
The test was marked as expectedFailureLinux, but now it passes with gcc and some versions of clang. Newer versions of clang introduce a failure due to bad DWARF information.
llvm-svn: 176581
|
|
|
|
|
|
|
|
| |
validate that enum values were being displayed correctly.
Also added C++11 enum test cases to cover enums as int8_t, int16_t int32_t, int64_t, uint8_t, uint16_t, uint32_t, and uint64_t both for DWARF and dSYM cases. The DWARF being emitted by clang is missing the enum integer type, but the code is now ready to accept and deal with the integral type if it is supplied.
llvm-svn: 176548
|
|
|
|
|
|
| |
patch by Ashok Thirumurthi!
llvm-svn: 176462
|
|
|
|
| |
llvm-svn: 176283
|
|
|
|
| |
llvm-svn: 176206
|
|
|
|
|
|
|
|
| |
Remove the getCategory from TestDataFormatterObjC.py, since it was superceded by the .categories file,
and didn't work anyway (getCategories currently has to be a method on the test class, not on the test.)
Add a "basic_process" category, and start to find some tests for simple process running sniff tests.
llvm-svn: 176061
|
|
|
|
|
|
| |
with buildbots.
llvm-svn: 175917
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GCC compiler bug.
Turns out unnamed bit fields should not be accessed ever in C (C99 section 4.7.8) or C++
(C++11 section 9.6).
Unrelated to the above, this commit marks TestBitfields as expected-to-fail with GCC as 4.7
has problems with padding... the size of the struct with a uint32_t member is reported as 12
when GCC is used. Clang emits correct code.
Parts of this patch prepared by Filipe Cabecinhas!
llvm-svn: 175666
|
|
|
|
|
|
|
| |
- make the test case step past the location where 'index' is initialized, otherwise its value cannot be printed (verified gcc 4.6/4.7 and recent clang)
- "Couldn't materialize struct" error from LLDB still prevents this test case from passing
llvm-svn: 175653
|
|
|
|
|
|
|
|
| |
- remove expectedFailure decorator from resolved rdar 12566646 and 10887661
- remove expectedFailure from TestBitfields testcase not actually affected by bug
- skip the (non-deterministic) TestStopHookMechanism.py to avoid a noisy suite on Linux
llvm-svn: 175307
|
|
|
|
|
|
|
| |
- PR-15260: lldb does not display correct value of 1-bit field
- PR-16261: lldb does not display size of (file/class) static array
llvm-svn: 175111
|
|
|
|
|
|
|
|
| |
RecordLayoutBuilder::updateExternalFieldOffset()
- Filed bugzilla PR-15256
llvm-svn: 175065
|
|
|
|
|
|
|
|
|
|
|
| |
- introduce new variable ARCHFLAG in make/Makefile.rules to switch between "-arch" on Mac and "-m" everywhere else
- update testcase makefiles to use LD_EXTRAS instead of LDFLAGS (the former interacts with Makefile.rules badly)
- special treatment for gcc 4.6: replace "-std=c++11" with "-std=c++0x" as the former is not handled correctly
- remove hardcoded "-arch" from test Makefile
This patch should not have any effect on lldb on Mac OS X.
llvm-svn: 173402
|
|
|
|
|
|
| |
- Add new decorator "@skipIfGcc" to lldbtest.py
llvm-svn: 173394
|
|
|
|
|
|
|
|
|
|
|
| |
DW_AT_const_value instead of a location. Also
added a testcase covering "frame variable," "expr"
using the IR interpreter, and "expr" using the
LLVM JIT.
<rdar://problem/12978195>
llvm-svn: 172848
|
|
|
|
|
|
|
|
|
|
| |
Adding useful formatting options to the expression (expr) command.
As a side effect of this change, the -d option now supports the same three-values enumeration that frame variables uses (run, don't run, none) instead of a boolean like it did previously
These options do not apply to print, p or po because these are aliased to not take any options.
In order to use them, use expression or expr.
llvm-svn: 171993
|
|
|
|
|
|
|
|
|
|
| |
ignoring stops caused by expression
evaluation.
<rdar://problem/12968562>
llvm-svn: 171914
|
|
|
|
|
|
|
| |
instead of falling through to the "frame variable"
code.
llvm-svn: 170169
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added a "step-in-target" flag to "thread step-in" so if you have something like:
Process 28464 stopped
* thread #1: tid = 0x1c03, function: main , stop reason = breakpoint 1.1
frame #0: 0x0000000100000e08 a.out`main at main.c:62
61
-> 62 int A6 = complex (a(4), b(5), c(6)); // Stop here to step targetting b and hitting breakpoint.
63
and you want to get into "complex" skipping a, b and c, you can do:
(lldb) step -t complex
Process 28464 stopped
* thread #1: tid = 0x1c03, function: complex , stop reason = step in
frame #0: 0x0000000100000d0d a.out`complex at main.c:44
41
42 int complex (int first, int second, int third)
43 {
-> 44 return first + second + third; // Step in targetting complex should stop here
45 }
46
47 int main (int argc, char const *argv[])
llvm-svn: 170008
|
|
|
|
| |
llvm-svn: 169549
|
|
|
|
|
|
| |
Fixed zero sized arrays to work correctly. This will only happen once we get a clang that emits correct debug info for zero sized arrays. For now I have marked the TestStructTypes.py as an expected failure.
llvm-svn: 169465
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removed the BitfieldMap class because it is unnecessary.
We now just track the most recently added field.
- Moved the code that calculates bitfield widths so it
can also be used to determine whether it's necessary
to insert anonymous fields.
- Simplified the anonymous field calculation code into
three cases (two of which are resolved identically).
- Beefed up the bitfield testcase.
llvm-svn: 169449
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cleaned up the option parsing code to always pass around the short options as integers. Previously we cast this down to "char" and lost some information. I recently added an assert that would detect duplicate short character options which was firing during the test suite.
This fix does the following:
- make sure all short options are treated as "int"
- make sure that short options can be non-printable values when a short option is not required or when an option group is mixed into many commands and a short option is not desired
- fix the help printing to "do the right thing" in all cases. Previously if there were duplicate short character options, it would just not emit help for the duplicates
- fix option parsing when there are duplicates to parse options correctly. Previously the option parsing, when done for an OptionGroup, would just start parsing options incorrectly by omitting table entries and it would end up setting the wrong option value
llvm-svn: 169189
|
|
|
|
| |
llvm-svn: 168727
|
|
|
|
|
|
|
|
| |
- use lldb settings command instead of os.environ
- use dyldPath fixture variable instead of hardcoding LD_LIBRARY_PATH
- add tear-down hook to restore environment after testcase is run
llvm-svn: 168613
|
|
|
|
|
|
|
| |
- use lldb 'settings' command to help testcase find shared library
- pull up dyldPath variable from TestLoadUnload.py to fixture base class (applicable in multiple cases)
llvm-svn: 168612
|
|
|
|
|
|
| |
- setting LD_LIBRARY_PATH required for the test program to run correctly
llvm-svn: 168595
|
|
|
|
|
|
| |
flags to the Linux makefiles to get the tests to run.
llvm-svn: 167600
|
|
|
|
| |
llvm-svn: 167473
|
|
|
|
|
|
|
|
| |
of structures, and added a testcase.
<rdar://problem/12551591>
llvm-svn: 166450
|