- Apr 29, 2011
-
-
Johnny Chen authored
the lldb iteration protocol has been added to lldb.py module. llvm-svn: 130452
-
- Apr 28, 2011
-
-
Johnny Chen authored
This is so that the objects which support the iteration protocol are immediately obvious from looking at the lldb.py file. SBTarget supports two types of iterations: module and breakpoint. For an SBTarget instance, you will need to issue either: for m in target.module_iter() or for b in target.breakpoint_iter() For other single iteration protocol objects, just use, for example: for thread in process: ID = thread.GetThreadID() for frame in thread: frame.Disassemble() .... llvm-svn: 130442
-
- Apr 27, 2011
-
-
Johnny Chen authored
method names of all the lldb container objects and returns an iterator object when passed an eligible lldb container object. Example: from lldb_util import smart_iter for thread in smart_iter(process): ID = thread.GetThreadID() if thread.GetStopReason() == lldb.eStopReasonBreakpoint: stopped_due_to_breakpoint = True for frame in smart_iter(thread): self.assertTrue(frame.GetThread().GetThreadID() == ID) ... Add a test case for lldb.smart_iter(). llvm-svn: 130332
-
Johnny Chen authored
llvm-svn: 130325
-
Johnny Chen authored
Add another test case for lldb_iter(), this time using SBTarget to get at its SBBreakpoint containees. llvm-svn: 130323
-
Johnny Chen authored
And modify the test cases accordingly. llvm-svn: 130314
-
Johnny Chen authored
for lldb objects which can contain other lldb objects. Examples are: SBTarget contains SBModule, SBModule contains SBSymbols, SBProcess contains SBThread, SBThread contains SBFrame, etc. llvm-svn: 130258
-
Johnny Chen authored
llvm-svn: 130254
-
Johnny Chen authored
llvm-svn: 130253
-
Johnny Chen authored
llvm-svn: 130252
-
Johnny Chen authored
llvm-svn: 130251
-
- Apr 26, 2011
-
-
Johnny Chen authored
llvm-svn: 130240
-
Johnny Chen authored
And modify the test cases accordingly. llvm-svn: 130174
-
Johnny Chen authored
llvm-svn: 130158
-
- Apr 25, 2011
-
-
Johnny Chen authored
i.e., with 'SBStream &description' first, followed by 'DescriptionLevel level'. Modify lldbutil.py so that get_description() for a target or breakpoint location can just take the lldb object itself without specifying an option to mean option lldb.eDescriptionLevelBrief. Modify TestTargetAPI.py to exercise this logic path. llvm-svn: 130147
-
Johnny Chen authored
llvm-svn: 130134
-
Johnny Chen authored
llvm-svn: 130133
-
- Apr 23, 2011
-
-
Johnny Chen authored
llvm-svn: 130041
-
Johnny Chen authored
and use it from TestTargetAPI.py. llvm-svn: 130038
-
Jim Ingham authored
pointer to a ValueObject or any of its dependent ValueObjects, and the whole cluster will stay around as long as that shared pointer stays around. llvm-svn: 130035
-
Johnny Chen authored
Add test cases for the SBTarget.GetDescription() API which takes an extra lldb::DescriptionLevel enum. llvm-svn: 130029
-
- Apr 22, 2011
-
-
Johnny Chen authored
llvm-svn: 130017
-
Johnny Chen authored
llvm-svn: 130016
-
Johnny Chen authored
before issuing the 'process connect ...' command. test_comand_regex(): assign the spawned child to self.child so it gets automatically shutdown during TestBase.tearDown(self). llvm-svn: 130015
-
Johnny Chen authored
llvm-svn: 130011
-
Caroline Tice authored
llvm-svn: 129993
-
Caroline Tice authored
Modify to use the new test files. llvm-svn: 129992
-
Caroline Tice authored
Reformat the emulation test data files. llvm-svn: 129991
-
Johnny Chen authored
rather than calling "process kill" explicitly at the end of the test. The test might not even reach the end because it could have failed prematurely. llvm-svn: 129963
-
Johnny Chen authored
only when the test is currently running against the relevant architecture. llvm-svn: 129960
-
Johnny Chen authored
and TestAliases.py. Pass the keyword argument 'check=False' to: self.runCmd("script my.date()", check=False) since we want to restore sys.stdout no matter what the outcome of the runCmd is. llvm-svn: 129949
-
- Apr 21, 2011
-
-
Johnny Chen authored
llvm-svn: 129937
-
Johnny Chen authored
llvm-svn: 129936
-
Johnny Chen authored
llvm-svn: 129935
-
Johnny Chen authored
llvm-svn: 129897
-
Johnny Chen authored
llvm-svn: 129895
-
Johnny Chen authored
llvm-svn: 129890
-
Johnny Chen authored
llvm-svn: 129885
-
Johnny Chen authored
llvm-svn: 129881
-
Johnny Chen authored
llvm-svn: 129880
-