- Jan 20, 2012
-
-
Sean Callanan authored
a reference to a class variable. llvm-svn: 148562
-
Greg Clayton authored
environment variable it set to include a path to lldb.py. Also fixed the case where the executable can't be located and doesn't match what is installed on the current system. It will still symbolicate the other frames, and will just show what was originally in the crash log file. Also removed the --crash-log option so the arguments to the "crashlog" command are one or more paths to crash logs. Fixed the script to "auto-install" itself when loaded from the embedded script interpreter. Now you only need to import the module and the command is ready for use. llvm-svn: 148561
-
Greg Clayton authored
system and also deal with dsymForUUID being available on the network, locally, and not at all. llvm-svn: 148534
-
Greg Clayton authored
of the identifier name in the binary images section. Improved the regular expression for the frames. Added a new file "crashlog.lldb" which can be sourced with "command source" that will import the module and set itself up to be used as a command. llvm-svn: 148529
-
Greg Clayton authored
module (you can't import a module with a '-' in it) and also added a Symbolcate(...) top level function so it can be imported and used as an LLDB command. Then you can import the module and map a "crashlog" command (for darwin use only currently) to the python function "crashlog.Symbolicate": (lldb) script import crashlog (lldb) command script add -f crashlog.Symbolicate crashlog Then use it to symbolicate: (lldb) crashlog --crash-log /path/to/foo.crash The crash log will then get symbolicated and inline frames will be added to the crash log and the frames will be displayed. The crash log currently will only try and fetch and setup the target images requires in order to do the symbolication. This will need to be iterated upon, but it is getting close to being useful so I am going to check this in. llvm-svn: 148528
-
Greg Clayton authored
llvm-svn: 148527
-
Greg Clayton authored
to find data on the heap. To use this, make the project and then when stopped in your lldb debug session: (lldb) process load /path/to/libheap.dylib (lldb) find_pointer_in_heap (0x112233000000) This will grep everything in all active allocation blocks and print and malloc blocks that contain the pointer 0x112233000000. This can also work for c strings: (lldb) find_cstring_in_heap ("hello") llvm-svn: 148523
-
Johnny Chen authored
Add comment describing the interaction of WantsRawCommandString()/WantsCompletion() with the completion mechanism. llvm-svn: 148521
-
Sean Callanan authored
We should ultimately introduce GetAs...Type functions in all cases where we have Is...Type functions that know how to look inside typedefs. llvm-svn: 148512
-
Sean Callanan authored
a memory leak. llvm-svn: 148507
-
- Jan 19, 2012
-
-
Johnny Chen authored
http://llvm.org/viewvc/llvm-project?rev=148491&view=rev check in broke the argument completion for "settings set th", followed by TAB. Provide a way for commands who want raw commands to hook into the completion mechanism. llvm-svn: 148500
-
Jim Ingham authored
<rdar://problem/10719481> llvm-svn: 148494
-
Johnny Chen authored
Fixed an issue where backtick char is not properly honored when setting the frame-format variable, like the following: (lldb) settings set frame-format frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name-with-args}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n (lldb) settings show frame-format frame-format (string) = "frame #${frame.index}: ${frame.pc}{ `${module.file.basename}{${function.name-with-args}${function.pc-offset}}}{` at ${line.file.basename}:${line.number}}\n" (lldb) o CommandObjectSettings.h/.cpp: Modify the command object impl to require raw command string instead of parsed command string, which also fixes an outstanding issue that customizing the prompt with trailing spaces doesn't work. o Args.cpp: During CommandInterpreter::HandleCommand(), there is a PreprocessCommand phase which already strips/processes pairs of backticks as an expression eval step. There's no need to treat a backtick as starting a quote. o TestAbbreviations.py and change_prompt.lldb: Fixed incorrect test case/logic. o TestSettings.py: Remove expectedFailure decorator. llvm-svn: 148491
-
Sean Callanan authored
originally imported from symbols for the expression parser didn't get their superclasses set properly. llvm-svn: 148488
-
Greg Clayton authored
It is disabled by default, but can be enabled to track down shared pointer cycles. llvm-svn: 148461
-
Greg Clayton authored
be fetched too many times and the DisassemblerLLVM was appending to strings when the opcode, mnemonic and comment accessors were called multiple times and if any of the strings were empty. Also fixed the test suite failures from recent Objective C modifications. llvm-svn: 148460
-
Sean Callanan authored
for each ObjCInterfaceDecl was imposing performance penalties for Objective-C apps. Instead, we now use the normal function query mechanisms, which use the relevant accelerator tables. This fix also includes some modifications to the SymbolFile which allow us to find Objective-C methods and report their Clang Decls correctly. llvm-svn: 148457
-
Sean Callanan authored
objects. llvm-svn: 148450
-
Greg Clayton authored
llvm-svn: 148445
-
Greg Clayton authored
objective C class names when extracting the class name, selector and name without category for objective C full class and instance method names. llvm-svn: 148435
-
- Jan 18, 2012
-
-
Greg Clayton authored
where we grabbed the variable list size from the wrong list (we needed it from "args" and we were getting it from "variable_list_sp"). llvm-svn: 148425
-
Johnny Chen authored
llvm-svn: 148418
-
Johnny Chen authored
I've see cases where there are lingering processes ("hello_world") staying around and the test_with_dsym_and_attach_to_process_with_name_api() test case just hangs. llvm-svn: 148417
-
Greg Clayton authored
much smarter by extracting search results more efficiently and by properly obeying the must_be_implementation bool in the SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE() function. llvm-svn: 148413
-
Johnny Chen authored
Add a test case where 'settings set frame-format' supplies a format string containing, among other things, a single backtick character. rdar://problem/10712130 llvm-svn: 148403
-
Jason Molenda authored
llvm-svn: 148380
-
Johnny Chen authored
Add a '-X excluded-dir' option to the test driver to exclude a directory from consideration during test discovery. For example: ./dotest.py -X types -v from the test dir will ignore test cases under test/types. llvm-svn: 148379
-
- Jan 17, 2012
-
-
Jim Ingham authored
llvm-svn: 148280
-
Johnny Chen authored
Add usage example of specifying the full path to the compiler used while building the debuggees for running the test suite. llvm-svn: 148273
-
Johnny Chen authored
llvm-svn: 148269
-
- Jan 16, 2012
-
-
Greg Clayton authored
More improvements to not follow child processes and improved logging that always shows the process info. llvm-svn: 148257
-
- Jan 14, 2012
-
-
Greg Clayton authored
llvm-svn: 148202
-
rdar://problem/9731573Greg Clayton authored
Fixed two double "int close(int fd)" issues found by our file descriptor interposing library on darwin: The first is in SBDebugger::SetInputFileHandle (FILE *file, bool transfer_ownership) where we would give our FILE * to a lldb_private::File object member variable and tell it that it owned the file descriptor if "transfer_ownership" was true, and then we would also give it to the communication plug-in that waits for stdin to come in and tell it that it owned the FILE *. They would both try and close the file. The seconds was when we use a file descriptor through ConnectionFileDescriptor where someone else is creating a connection with ConnectionFileDescriptor and a URL like: "fd://123". We were always taking ownwership of the fd 123, when we shouldn't be. There is a TODO in the comments that says we should allow URL options to be passed to be able to specify this later (something like: "fd://123?transer_ownership=1"), but we can get to this later. llvm-svn: 148201
-
Sean Callanan authored
should fix builds. llvm-svn: 148199
-
Greg Clayton authored
- don't strip too many frames from the backtrace when logging close backtraces - cleanup some logging messages llvm-svn: 148195
-
rdar://problem/10684141Greg Clayton authored
When the lldb_private::Debugger goes away, it should cleanup all of its targets. llvm-svn: 148189
-
- Jan 13, 2012
-
-
Sean Callanan authored
master AST importer imports types. - First, before importing the definition of a Decl from its source, notify the underlying importer of the source->destination mapping. Especially for anonymous strucutres that are otherwise hard to unique in the target AST context, this hint is very helpful. - When deporting a type or Decl from one ASTContext to another (deporting occurs in the case of moving result types from the parser's AST context to the result AST context), don't forget their origin if the origin is the original debug information. llvm-svn: 148152
-
Sean Callanan authored
proactively. llvm-svn: 148146
-
Sean Callanan authored
debug info, call it anonymous. This isn't perfect, because Clang actually considers the following struct not to be anonymous: – struct { int x; int y; } g_foo; - but DWARF doesn't make the distinction. llvm-svn: 148145
-
Sean Callanan authored
more information. llvm-svn: 148144
-