- Feb 26, 2011
-
-
Johnny Chen authored
llvm-svn: 126531
-
Johnny Chen authored
the intermediate files built with the same dictionary during test execution. llvm-svn: 126530
-
Johnny Chen authored
current working directory when running the inferior. Radar filed: # rdar://problem/9056462 # The process launch flag '-w' for setting the current working directory not working? llvm-svn: 126529
-
- Feb 25, 2011
-
-
Johnny Chen authored
llvm-svn: 126517
-
Johnny Chen authored
llvm-svn: 126516
-
Johnny Chen authored
llvm-svn: 126515
-
Johnny Chen authored
related to 'process launch' command. llvm-svn: 126514
-
Johnny Chen authored
for Stuart Hastings. :-) llvm-svn: 126469
-
Johnny Chen authored
llvm-svn: 126456
-
Johnny Chen authored
This is the error I got: Debugger entered--Lisp error: (void-function split-string-and-unquote) (split-string-and-unquote command-line) (let* ((words ...) (program ...) (dir default-directory) (file-word ...) (file-subst ...) (args ...) (file ...) (filepart ...) (existing-buffer ...)) (pop-to$ gud-common-init("/Volumes/data/lldb/svn/trunk/build/Debug/lldb" nil gud-lldb-marker-filter) lldb("/Volumes/data/lldb/svn/trunk/build/Debug/lldb") call-interactively(lldb) execute-extended-command(nil) call-interactively(execute-extended-command) The gud-common-init elisp function references split-string-and-unquote function which is not defined there. llvm-svn: 126449
-
- Feb 24, 2011
-
-
Greg Clayton authored
Modifed lldb_private::Process to be able to handle connecting to a remote target that isn't running a process. This leaves lldb_private::Process in the eStateConnected state from which we can then do an attach or launch. Modified ProcessGDBRemote to be able to set stdin, stdout, stderr, working dir, disable ASLR and a few other settings down by using new GDB remote packets. This allows us to keep all of our current launch flags and settings intact and still be able to communicate them over to the remote GDB server. Previously these were being sent as arguments to the debugserver binary that we were spawning. Also modified ProcessGDBRemote to handle losing connection to the remote GDB server and always exit immediately. We do this by watching the lldb_private::Communication event bit for the read thread exiting in the ProcessGDBRemote async thread. Added support for many of the new 'Q' packets for setting stdin, stdout, stderr, working dir and disable ASLR to the GDBRemoteCommunication class for easy accesss. Modified debugserver for all of the new 'Q' packets and also made it so that debugserver always exists if it loses connection with the remote debugger. llvm-svn: 126444
-
Johnny Chen authored
llvm-svn: 126442
-
Jim Ingham authored
When making a DataExtractor from a Value that's got a ClangType, set the AddressByteSize from the AST Context. llvm-svn: 126433
-
Johnny Chen authored
switch to Jazelle state fails, thus treating BXJ as a BX operation. llvm-svn: 126423
-
Stephen Wilson authored
llvm-svn: 126406
-
Stephen Wilson authored
Also fix a bug where we were not lazily parsing the ELF header and thus returning an ArchSpec with invalid cpu type components. Initialize the cpu subtype as LLDB_INVALID_CPUTYPE for compatibility with the new ArchSpec implementation. llvm-svn: 126405
-
Stephen Wilson authored
Previously we were using a set of preprocessor defines and returning an ArchSpec without any OS/Vendor information. This fixes an issue with plugin resolution on Linux where a valid OS component is needed. llvm-svn: 126404
-
Stephen Wilson authored
The major issue this patch solves is that ArchSpec::SetTriple no longer depends on the implementation of Host::GetArchitecture. On linux, Host::GetArchitecture calls ArchSpec::SetTriple, thus blowing the stack. A second smaller point is that SetTriple now defaults to Host defined components iff all OS, vendor and environment fields are not set. llvm-svn: 126403
-
Johnny Chen authored
llvm-svn: 126355
-
Johnny Chen authored
llvm-svn: 126343
-
- Feb 23, 2011
-
-
Johnny Chen authored
and rename the original ThumbImmScaled() function to ThumbImm7Scaled(). llvm-svn: 126335
-
Johnny Chen authored
Rd == 13. Add opcode entries for the generic "sub (sp minus immediate)" operations. llvm-svn: 126293
-
Johnny Chen authored
llvm-svn: 126283
-
Greg Clayton authored
of Stephen Wilson's idea (thanks for the input Stephen!). What I ended up doing was: - Got rid of ArchSpec::CPU (which was a generic CPU enumeration that mimics the contents of llvm::Triple::ArchType). We now rely upon the llvm::Triple to give us the machine type from llvm::Triple::ArchType. - There is a new ArchSpec::Core definition which further qualifies the CPU core we are dealing with into a single enumeration. If you need support for a new Core and want to debug it in LLDB, it must be added to this list. In the future we can allow for dynamic core registration, but for now it is hard coded. - The ArchSpec can now be initialized with a llvm::Triple or with a C string that represents the triple (it can just be an arch still like "i386"). - The ArchSpec can still initialize itself with a architecture type -- mach-o with cpu type and subtype, or ELF with e_machine + e_flags -- and this will then get translated into the internal llvm::Triple::ArchSpec + ArchSpec::Core. The mach-o cpu type and subtype can be accessed using the getter functions: uint32_t ArchSpec::GetMachOCPUType () const; uint32_t ArchSpec::GetMachOCPUSubType () const; But these functions are just converting out internal llvm::Triple::ArchSpec + ArchSpec::Core back into mach-o. Same goes for ELF. All code has been updated to deal with the changes. This should abstract us until later when the llvm::TargetSpec stuff gets finalized and we can then adopt it. llvm-svn: 126278
-
Johnny Chen authored
llvm-svn: 126271
-
Johnny Chen authored
llvm-svn: 126267
-
Johnny Chen authored
Plus add missing break stmts for "case" blocks. llvm-svn: 126265
-
Greg Clayton authored
llvm-svn: 126260
-
- Feb 22, 2011
-
-
Greg Clayton authored
llvm-svn: 126257
-
Sean Callanan authored
Fixed a hang in the expression parser's result synthesizer that occurs when the function generated for the expression is completely empty except for a NULL_STMT. This happens sometimes when the parser returns errors. llvm-svn: 126251
-
Johnny Chen authored
Use them within EmulateInstructionARM.cpp to save repetitive typing. llvm-svn: 126247
-
Johnny Chen authored
and implement EmulateCMNImm() and EMulateCMNReg() methods. llvm-svn: 126236
-
Greg Clayton authored
llvm-svn: 126235
-
Johnny Chen authored
Fix the 'variants' field of "CMN (immediate)" Encoding T1 entry, it should be ARMV6T2_ABOVE, not ARMvAll. llvm-svn: 126234
-
Johnny Chen authored
llvm-svn: 126179
-
Johnny Chen authored
Add ARM/Thumb encoding entries for "CMN (immediate)" and "CMN (register)" operations, with the EmulateCMNImm()/Reg() methods not implemented yet for now. llvm-svn: 126178
-
Johnny Chen authored
llvm-svn: 126172
-
Johnny Chen authored
"TEQ (immediate)", and "TEQ (register)" operations. llvm-svn: 126160
-
- Feb 21, 2011
-
-
Johnny Chen authored
Plus modified EmulateANDImm/Reg to delegate to TSTImm/Reg for Thumb2 32-bit instructions when Rd == '1111' and setflags is true. llvm-svn: 126144
-
- Feb 20, 2011
-
-
Greg Clayton authored
N streams by making the stream a vector of stream shared pointers that is protected by a mutex. Streams can be get/set by index which allows indexes to be defined as stream indentifiers. If a stream is set at index 3 and there are now streams in the collection, then empty stream objects are inserted to ensure that stream at index 3 has a valid stream. There is also an append method that allows a stream to be pushed onto the stack. This will allow our streams to be very flexible in where the output goes. Modified the CommandReturnObject to use the new StreamTee functionality. This class now defines two StreamTee indexes: 0 for the stream string stream, and 1 for the immediate stream. This is used both on the output and error streams. Added the ability to get argument types as strings or as descriptions. This is exported through the SBCommandInterpreter API to allow external access. Modified the Driver class to use the newly exported argument names from SBCommandInterpreter::GetArgumentTypeAsCString(). llvm-svn: 126067
-