- Oct 12, 2010
-
-
Jim Ingham authored
llvm-svn: 116271
-
Johnny Chen authored
within a file. This is to be used within the test case to avoid hardcoded line number. array_types/TestArrayTypes.py is modified first to use this pattern. Other test modules to follow. rdar://problem/8537816 Testsuite: don't set breakpoints by exact file & line number llvm-svn: 116270
-
Johnny Chen authored
files to a different top level directory than those specified on the command line. When relocated, the test clanups normally performed afterwards after each test method and after each test class will not be exercised at all. This allows for an easier postmortem analysis of test failures. Example: ./dotest.py -v -t -r /tmp/lldbtest types will create a /tmp/lldbtest directory which houses the types directory and its supported files. Files modified: o dotest.py, lldbtest.py: Add logic to process '-r dir' option to support relocating the tests to a different top level directory instead of exected in place. o darwin.py, test/types/Makefile: The 'make clean' should only clean the minimum .o and .d files. llvm-svn: 116255
-
- Oct 11, 2010
-
-
Johnny Chen authored
llvm-svn: 116206
-
Greg Clayton authored
forward declarations). llvm-svn: 116181
-
Greg Clayton authored
llvm-svn: 116180
-
Greg Clayton authored
what gdb uses)) so we can tell our "lldb" driver program to not automatically parse any .lldbinit files. llvm-svn: 116179
-
Greg Clayton authored
lldb_private::RegularExpression compiles and matches with: size_t RegularExpression::GetErrorAsCString (char *err_str, size_t err_str_max_len) const; Added the ability to search a variable list for variables whose names match a regular expression: size_t VariableList::AppendVariablesIfUnique (const RegularExpression& regex, VariableList &var_list, size_t& total_matches); Also added the ability to append a variable to a VariableList only if it is not already in the list: bool VariableList::AddVariableIfUnique (const lldb::VariableSP &var_sp); Cleaned up the "frame variable" command: - Removed the "-n NAME" option as this is the default way for the command to work. - Enable uniqued regex searches on variable names by fixing the "--regex RE" command to work correctly. It will match all variables that match any regular expressions and only print each variable the first time it matches. - Fixed the option type for the "--regex" command to by eArgTypeRegularExpression instead of eArgTypeCount llvm-svn: 116178
-
Greg Clayton authored
Added frame relative frame selection to "frame select". You can now select frames relative to the current frame (which defaults to zero if the current frame hasn't yet been set for a thread): The gdb "up" command can be done as: (lldb) frame select -r 1 The gdb "down" command can be done as: (lldb) frame select -r -1 Place the following in your ~/.lldbinit file for "up" and "down": command alias up frame select -r 1 command alias down frame select -r -1 llvm-svn: 116176
-
Greg Clayton authored
llvm-svn: 116175
-
- Oct 10, 2010
-
-
Greg Clayton authored
as binary bytes or as an ASCII text dump. - The output file is specified with the "--outfile FILE" option. - The memory can be appended to an existing file using the "--append" option. - The memory will be written as an ASCII text dump by default, or as binary with the "--binary" option. Added new options to memory write to allow writing all or part of a file on disk to target memory: - The input file is specified using the "--infile FILE" option - The offset at which to start in the file defaults to zero, but can be overridden using the "--offset OFFSET" option. If the size is not specified, the remaining number of bytes in the file will be used as the default byte size. - The number of bytes to write defaults to the entire file byte size, but can be changed with the "--size COUNT" option. llvm-svn: 116172
-
Johnny Chen authored
with the function name 'lldb_iter'. Example: def disassemble_instructions (insts): from lldbutil import lldb_iter for i in lldb_iter(insts, 'GetSize', 'GetInstructionAtIndex'): print i llvm-svn: 116171
-
- Oct 09, 2010
-
-
Greg Clayton authored
obey the UnixSignals table that we have in the process. llvm-svn: 116139
-
Johnny Chen authored
structures into an iterable Python object. Example: def disassemble_instructions (insts): from lldbutil import Iterator for i in Iterator(insts, 'GetSize', 'GetInstructionAtIndex'): print i llvm-svn: 116137
-
Greg Clayton authored
llvm-svn: 116133
-
Greg Clayton authored
llvm-svn: 116132
-
Greg Clayton authored
llvm-svn: 116128
-
Johnny Chen authored
llvm-svn: 116127
-
Johnny Chen authored
llvm-svn: 116117
-
Johnny Chen authored
usage to self.expect() which is more descriptive. llvm-svn: 116115
-
Johnny Chen authored
llvm-svn: 116114
-
- Oct 08, 2010
-
-
Johnny Chen authored
which is more descriptive. And wrap the file open operation inside a with block so that close() is automatically called upon exiting the block. llvm-svn: 116096
-
Johnny Chen authored
Update the expected match string. o lldbtest.py: Indicate when a command fails, even if there is nothing in the error stream. o TestHelp.py: Add a regression test case for 'help image dump symtab'. o CommandObjectHelp.cpp: Some of the logic branches with successful help command results were not tagged with a Success Status. They are fixed now. This is important for Python interaction. llvm-svn: 116062
-
Johnny Chen authored
Fixed a crasher when doing 'help image dump symtab'. Supply the entry to the global arguments table. llvm-svn: 116058
-
Greg Clayton authored
Added a new SortOrder enumeration and hooked it up to the "image dump symtab" command so we can dump symbol tables in the original order, sorted by address, or sorted by name. llvm-svn: 116049
-
Sean Callanan authored
struct for expressions is deallocated when the ClangExpressionDeclMap is taken down. llvm-svn: 116028
-
Johnny Chen authored
be removed does not exist for any reason. llvm-svn: 116025
-
Johnny Chen authored
Also uncomment the cleanup of "stdout.txt" file as part of the class cleanup routine even though test_set_output_path() is failing right now. llvm-svn: 116023
-
Greg Clayton authored
llvm-svn: 116019
-
Greg Clayton authored
if the address comes from a data section. Fixed an issue that could occur when looking up a symbol that has a zero byte size where no match would be returned even if there was an exact symbol match. Cleaned up the section dump output and added the section type into the output. llvm-svn: 116017
-
Sean Callanan authored
llvm-svn: 115999
-
Johnny Chen authored
update the affected API clients. llvm-svn: 115995
-
Greg Clayton authored
Make sure to lock down the sequence mutex and select the thread we want when read or write all registers. llvm-svn: 115992
-
- Oct 07, 2010
-
-
Johnny Chen authored
the threads and print their stack traces when stopped on a breakpoint. Add a PrintStackTraces(process) utility function into the lldbutil.py module. llvm-svn: 115983
-
Johnny Chen authored
PrintStackTrace(thread) function. If string_buffer is True, PrintStackTrace() will return the content of the stack trace as a string, instead. llvm-svn: 115960
-
Johnny Chen authored
llvm-svn: 115955
-
Sean Callanan authored
milliseconds to 10 seconds, which was the original intent. llvm-svn: 115942
-
Greg Clayton authored
ScriptInterpreterPython class and made a simple callback function that ScriptInterpreterPython::BreakpointCallbackFunction() now calls so we don't include any internal API stuff into the cpp file that is generated by SWIG. Fixed a few build warnings in debugserver. llvm-svn: 115926
-
Johnny Chen authored
llvm-svn: 115922
-
Johnny Chen authored
Updated expected match strings because the print representations of SBProcess, SBThread, SBBreakpoint, and SBFrame have changed. llvm-svn: 115918
-