<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm5719-llvm/lldb/test/expression_command/persistent_ptr_update, branch meklort-10.0.1</title>
<subtitle>Project Ortega BCM5719 LLVM</subtitle>
<id>https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1</id>
<link rel='self' href='https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/'/>
<updated>2015-10-28T17:43:26+00:00</updated>
<entry>
<title>Move lldb/test to lldb/packages/Python/lldbsuite/test.</title>
<updated>2015-10-28T17:43:26+00:00</updated>
<author>
<name>Zachary Turner</name>
<email>zturner@google.com</email>
</author>
<published>2015-10-28T17:43:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=c432c8f856e0bd84de980a9d9bb2d31b06fa95b1'/>
<id>urn:sha1:c432c8f856e0bd84de980a9d9bb2d31b06fa95b1</id>
<content type='text'>
This is the conclusion of an effort to get LLDB's Python code
structured into a bona-fide Python package.  This has a number
of benefits, but most notably the ability to more easily share
Python code between different but related pieces of LLDB's Python
infrastructure (for example, `scripts` can now share code with
`test`).

llvm-svn: 251532
</content>
</entry>
<entry>
<title>Rename `lldb_shared` to `use_lldb_suite`.</title>
<updated>2015-10-27T20:12:05+00:00</updated>
<author>
<name>Zachary Turner</name>
<email>zturner@google.com</email>
</author>
<published>2015-10-27T20:12:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=0a0490b1520e96b728448b8c43ca873fcaa809dc'/>
<id>urn:sha1:0a0490b1520e96b728448b8c43ca873fcaa809dc</id>
<content type='text'>
llvm-svn: 251444
</content>
</entry>
<entry>
<title>Add from __future__ import print_function everywhere.</title>
<updated>2015-10-23T17:04:29+00:00</updated>
<author>
<name>Zachary Turner</name>
<email>zturner@google.com</email>
</author>
<published>2015-10-23T17:04:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=35d017f0fc38b53e31f1a44d07c3c142f5d3620b'/>
<id>urn:sha1:35d017f0fc38b53e31f1a44d07c3c142f5d3620b</id>
<content type='text'>
Apparently there were tons of instances I missed last time, I
guess I accidentally ran 2to3 non-recursively.  This should be
every occurrence of a print statement fixed to use a print function
as well as from __future__ import print_function being added to
every file.

After this patch print statements will stop working everywhere in
the test suite, and the print function should be used instead.

llvm-svn: 251121
</content>
</entry>
<entry>
<title>Update every test to import `lldb_shared`.</title>
<updated>2015-10-22T20:06:20+00:00</updated>
<author>
<name>Zachary Turner</name>
<email>zturner@google.com</email>
</author>
<published>2015-10-22T20:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=77db4a855239049488e09f28c6665fdb3b51ef90'/>
<id>urn:sha1:77db4a855239049488e09f28c6665fdb3b51ef90</id>
<content type='text'>
This is necessary in order to allow third party modules to be
located under lldb/third_party rather than under the test
folder directly.

Since we're already touching every test file anyway, we also
go ahead and delete the unittest2 import and main block wherever
possible.  The ability to run a test as a standalone file has
already been broken for some time, and if we decide we want this
back, we should use unittest instead of unittest2.

A few places could not have the import of unittest2 removed,because
they depend on the unittest2.expectedFailure or skip decorators.
Removing all those was orthogonal in spirit to the purpose of this
CL, so the import of unittest2 remains in those files that were
using it for its test decorators.  Those can be addressed
separately.

llvm-svn: 251055
</content>
</entry>
<entry>
<title>Merge dwarf and dsym tests</title>
<updated>2015-09-30T10:12:40+00:00</updated>
<author>
<name>Tamas Berghammer</name>
<email>tberghammer@google.com</email>
</author>
<published>2015-09-30T10:12:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=c8fd130a2cbf7ade53d05e597f9d48e8c2f37442'/>
<id>urn:sha1:c8fd130a2cbf7ade53d05e597f9d48e8c2f37442</id>
<content type='text'>
Currently most of the test files have a separate dwarf and a separate
dsym test with almost identical content (only the build step is
different). With adding dwo symbol file handling to the test suit it
would increase this to a 3-way duplication. The purpose of this change
is to eliminate this redundancy with generating 2 test case (one dwarf
and one dsym) for each test function specified (dwo handling will be
added at a later commit).

Main design goals:
* There should be no boilerplate code in each test file to support the
  multiple debug info in most of the tests (custom scenarios are
  acceptable in special cases) so adding a new test case is easier and
  we can't miss one of the debug info type.
* In case of a test failure, the debug symbols used during the test run
  have to be cleanly visible from the output of dotest.py to make
  debugging easier both from build bot logs and from local test runs
* Each test case should have a unique, fully qualified name so we can
  run exactly 1 test with "-f &lt;test-case&gt;.&lt;test-function&gt;" syntax
* Test output should be grouped based on test files the same way as it
  happens now (displaying dwarf/dsym results separately isn't
  preferable)

Proposed solution (main logic in lldbtest.py, rest of them are test
cases fixed up for the new style):
* Have only 1 test fuction in the test files what will run for all
  debug info separately and this test function should call just
  "self.build(...)" to build an inferior with the right debug info
* When a class is created by python (the class object, not the class
  instance), we will generate a new test method for each debug info
  format in the test class with the name "&lt;test-function&gt;_&lt;debug-info&gt;"
  and remove the original test method. This way unittest2 see multiple
  test methods (1 for each debug info, pretty much as of now) and will
  handle the test selection and the failure reporting correctly (the
  debug info will be visible from the end of the test name)
* Add new annotation @no_debug_info_test to disable the generation of
  multiple tests for each debug info format when the test don't have an
  inferior

Differential revision: http://reviews.llvm.org/D13028

llvm-svn: 248883
</content>
</entry>
<entry>
<title>Set the default language to use when evaluating to that of the frame's CU.</title>
<updated>2015-09-04T01:02:30+00:00</updated>
<author>
<name>Dawn Perchik</name>
<email>dawn@burble.org</email>
</author>
<published>2015-09-04T01:02:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=009d110de476e6a1c9581b1e57a90dd73593b8aa'/>
<id>urn:sha1:009d110de476e6a1c9581b1e57a90dd73593b8aa</id>
<content type='text'>
* Use the frame's context (instead of just the target's) when evaluating,
  so that the language of the frame's CU can be used to select the
  compiler and/or compiler options to use when parsing the expression.
  This allows for modules built with mixed languages to be parsed in
  the context of their frame. 
* Add all C and C++ language variants when determining the language options
  to set.
* Enable C++ language options when language is C or ObjC as a workaround since
  the expression parser uses features of C++ to capture values.
* Enable ObjC language options when language is C++ as a workaround for ObjC
  requirements.
* Disable C++11 language options when language is C++03.
* Add test TestMixedLanguages.py to check that the language being used
  for evaluation is that of the frame.
* Fix test TestExprOptions.py to check for C++11 instead of C++ since C++ has
  to be enabled for C, and remove redundant expr --language test for ObjC.
* Fix TestPersistentPtrUpdate.py to not require C++11 in C.

Reviewed by: clayborg, spyffe, jingham
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11102

llvm-svn: 246829
</content>
</entry>
<entry>
<title>Reversed r238363, because the message is inconsistent</title>
<updated>2015-07-01T23:56:30+00:00</updated>
<author>
<name>Sean Callanan</name>
<email>scallanan@apple.com</email>
</author>
<published>2015-07-01T23:56:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=05834cd2adac6a9c3a69a137075bb9dcdce07373'/>
<id>urn:sha1:05834cd2adac6a9c3a69a137075bb9dcdce07373</id>
<content type='text'>
with all the other assertion messages.

llvm-svn: 241212
</content>
</entry>
<entry>
<title>[TestBase.runCmd] Better error message when runCmd fails.</title>
<updated>2015-05-27T22:27:41+00:00</updated>
<author>
<name>Siva Chandra</name>
<email>sivachandra@google.com</email>
</author>
<published>2015-05-27T22:27:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=3154aa23f31f2f78f251b70f7a9b3dfb54a596cc'/>
<id>urn:sha1:3154aa23f31f2f78f251b70f7a9b3dfb54a596cc</id>
<content type='text'>
Summary:
Before:
    AssertionError: False is not True : Process is launched successfully

After:
    AssertionError: False is not True : Command 'run a.out' failed.
    &gt;&gt;&gt; error: invalid target, create a target using the 'target create' command
    &gt;&gt;&gt; Process could not be launched successfully

Reviewers: clayborg

Reviewed By: clayborg

Subscribers: lldb-commits, vharron

Differential Revision: http://reviews.llvm.org/D9948

llvm-svn: 238363
</content>
</entry>
<entry>
<title>Constant result ValueObjects are - well  - constant</title>
<updated>2015-05-16T01:27:00+00:00</updated>
<author>
<name>Enrico Granata</name>
<email>egranata@apple.com</email>
</author>
<published>2015-05-16T01:27:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=bb642e54564a605c71f4ee9a57e9ed430ac8f68f'/>
<id>urn:sha1:bb642e54564a605c71f4ee9a57e9ed430ac8f68f</id>
<content type='text'>
And they also do not have a thread/frame attached to them

That makes dynamic and synthetic values attached to them impossible to update - which, among other things, makes it impossible to properly display persistent variables of types that could have such dynamic/persistent values

Fix this by making it so that a ValueObject can control its constantness (hint: dynamic and synthetic values cannot be constant) and whether it wants to let itself be updated when an invalid thread is around

llvm-svn: 237504
</content>
</entry>
</feed>
