- Oct 21, 2011
-
-
Jim Ingham authored
llvm-svn: 142632
-
Johnny Chen authored
llvm-svn: 142629
-
Johnny Chen authored
o create a fresh target; and o set the first breakpoint Example (using lldb to set a breakpoint on lldb's Driver::MainLoop function): ./dotest.py -v +b -x '-F Driver::MainLoop()' -p TestStartupDelays.py ... 1: test_startup_delay (TestStartupDelays.StartupDelaysBench) Test start up delays creating a target and setting a breakpoint. ... lldb startup delays benchmark: create fresh target: Avg: 0.106732 (Laps: 15, Total Elapsed Time: 1.600985) set first breakpoint: Avg: 0.102589 (Laps: 15, Total Elapsed Time: 1.538832) ok llvm-svn: 142628
-
Greg Clayton authored
tables (like the .apple_namespaces) and it would cause us to index DWARF that didn't need to be indexed. Updated the MappedHash.h (generic Apple accelerator table) and the DWARF specific one (HashedNameToDIE.h) to be up to date with the latest and greatest hash table format. llvm-svn: 142627
-
Johnny Chen authored
check that the option arg in '-x opt_arg' does not start with a '-' char. llvm-svn: 142625
-
- Oct 20, 2011
-
-
Johnny Chen authored
llvm-svn: 142602
-
Johnny Chen authored
llvm-svn: 142601
-
Johnny Chen authored
Parameterize the iteration count used when running benchmarks, instead of hard-coded inside the test case. Add a '-y count' option to the test driver for this purpose. An example: $ ./dotest.py -v -y 25 +b -p TestDisassembly.py ... ---------------------------------------------------------------------- Collected 2 tests 1: test_run_gdb_then_lldb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... gdb benchmark: Avg: 0.226305 (Laps: 25, Total Elapsed Time: 5.657614) lldb benchmark: Avg: 0.113864 (Laps: 25, Total Elapsed Time: 2.846606) lldb_avg/gdb_avg: 0.503146 ok 2: test_run_lldb_then_gdb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... lldb benchmark: Avg: 0.113008 (Laps: 25, Total Elapsed Time: 2.825201) gdb benchmark: Avg: 0.225240 (Laps: 25, Total Elapsed Time: 5.631001) lldb_avg/gdb_avg: 0.501723 ok ---------------------------------------------------------------------- Ran 2 tests in 41.346s OK llvm-svn: 142598
-
Johnny Chen authored
llvm-svn: 142595
-
Johnny Chen authored
llvm-svn: 142594
-
Johnny Chen authored
bring the debugger to the desired state. This patch makes BenchBase inherit from TestBase, instead of Base (which is a parent class of TestBase). This is so that we can also enjoy the Pythonic way of bringing the lldb debugger to a desired state before running the benchmark and collect statistics. llvm-svn: 142562
-
Greg Clayton authored
std::string and modified all places that used the std::string it returned to use the "const char *". Also modified the expression parser to not crash when a function type fails to copy into the expression AST context. llvm-svn: 142561
-
Johnny Chen authored
Missed this file when doing r142543 to temporarily relax the expected substrings for watchpoint creation output. llvm-svn: 142549
-
- Oct 19, 2011
-
-
Johnny Chen authored
due a bug in the decl file info of a global variable emitted by clang. llvm-svn: 142543
-
Greg Clayton authored
process IDs, and thread IDs, but was mainly needed for for the UserID's for Types so that DWARF with debug map can work flawlessly. With DWARF in .o files the type ID was the DIE offset in the DWARF for the .o file which is not unique across all .o files, so now the SymbolFileDWARFDebugMap class will make the .o file index part (the high 32 bits) of the unique type identifier so it can uniquely identify the types. llvm-svn: 142534
-
Johnny Chen authored
child=None, child_prompt=None, use_cmd_api=False By default, expect a pexpect spawned child and child prompt to be supplied (use_cmd_api=False). If use_cmd_api is true, ignore the child and child prompt and use self.runCmd() to run the hooks one by one. Modify existing client to reflect the change. llvm-svn: 142532
-
Johnny Chen authored
llvm-svn: 142469
-
Greg Clayton authored
so we don't have to lookup types in a type list by ID. Changed the DWARF parser to remove the "can externally complete myself" bits from the type when we are in the process of completing the type itself to avoid an onslaught of external visible decl requests from the clang::ExternalASTSource. llvm-svn: 142461
-
- Oct 18, 2011
-
-
Johnny Chen authored
Patch from Dawn. llvm-svn: 142402
-
Johnny Chen authored
llvm-svn: 142396
-
Johnny Chen authored
llvm-svn: 142392
-
Johnny Chen authored
llvm-svn: 142391
-
Johnny Chen authored
It also adds some asserts and additional logging support. from dawn@burble.org llvm-svn: 142384
-
Sean Callanan authored
committed. llvm-svn: 142376
-
Sean Callanan authored
we never used) with a much simpler class that wraps the relevant dump functions in Clang. This class also knows to disable external lookups on DeclContexts being dumped so it should be safe to print incomplete Decls. llvm-svn: 142359
-
Jason Molenda authored
with the same CFA (or an alternating sequence between two CFA values) to catch a handful of unwind cases where lldb will inf loop trying to unwind a stack. llvm-svn: 142331
-
Johnny Chen authored
from dawn@burble.org llvm-svn: 142305
-
Johnny Chen authored
llvm-svn: 142291
-
- Oct 17, 2011
-
-
Enrico Granata authored
this patch introduces a new command script import command which takes as input a filename for a Python script and imports the module contained in that file. the containing directory is added to the Python path such that dependencies are honored. also, the module may contain an __lldb_init_module(debugger,dict) function, which gets called after importing, and which can somehow initialize the module's interaction with lldb llvm-svn: 142283
-
Johnny Chen authored
llvm-svn: 142242
-
Johnny Chen authored
llvm-svn: 142241
-
Johnny Chen authored
watchpoint modify -c 'global==5' modifies the last created watchpoint so that the condition expression is evaluated at the stop point to decide whether we should proceed with the stopping. Also add SBWatchpont::SetCondition(const char *condition) to set condition programmatically. Test cases to come later. llvm-svn: 142227
-
- Oct 15, 2011
-
-
Sean Callanan authored
llvm-svn: 142033
-
Jim Ingham authored
llvm-svn: 142031
-
Jim Ingham authored
Make the step range plans capable of supporting multiple ranges. Also make their constructors public, there isn't any good reason why you shouldn't be able to make these plans. llvm-svn: 142026
-
Jim Ingham authored
llvm-svn: 142025
-
Jim Ingham authored
llvm-svn: 142024
-
Greg Clayton authored
llvm-svn: 142011
-
- Oct 14, 2011
-
-
Sean Callanan authored
out the latest LLDB, LLVM and Clang and makes sure they work okay together. The buildbot is currently Mac OS X only because it uses xcodebuild. Right now, the portion that runs the LLDB test suite is commented out because of code-signing problems (specifically, on Mac OS 10.7 a UI dialog appears asking for the user's permission to attach to the inferior process). You can use the buildbot like this: ./scripts/buildbot.py -b /tmp/lldb-build -l /tmp/lldb.log /tmp/lldb-build and /tmp/lldb.log should not exist when the script is run. /tmp/lldb-build is a temporary directory and is removed at the end of a normal execution. /tmp/lldb.log is a log file that sticks around. The buildbot does not require built versions of anything; it will do the building itself. llvm-svn: 142006
-
Greg Clayton authored
llvm-svn: 142005
-