- Apr 12, 2011
-
-
Greg Clayton authored
the CommandInterpreter where it was always being used. Make sure that Modules can track their object file offsets correctly to allow opening of sub object files (like the "__commpage" on darwin). Modified the Platforms to be able to launch processes. The first part of this move is the platform soon will become the entity that launches your program and when it does, it uses a new ProcessLaunchInfo class which encapsulates all process launching settings. This simplifies the internal APIs needed for launching. I want to slowly phase out process launching from the process classes, so for now we can still launch just as we used to, but eventually the platform is the object that should do the launching. Modified the Host::LaunchProcess in the MacOSX Host.mm to correctly be able to launch processes with all of the new eLaunchFlag settings. Modified any code that was manually launching processes to use the Host::LaunchProcess functions. Fixed an issue where lldb_private::Args had implicitly defined copy constructors that could do the wrong thing. This has now been fixed by adding an appropriate copy constructor and assignment operator. Make sure we don't add empty ModuleSP entries to a module list. Fixed the commpage module creation on MacOSX, but we still need to train the MacOSX dynamic loader to not get rid of it when it doesn't have an entry in the all image infos. Abstracted many more calls from in ProcessGDBRemote down into the GDBRemoteCommunicationClient subclass to make the classes cleaner and more efficient. Fixed the default iOS ARM register context to be correct and also added support for targets that don't support the qThreadStopInfo packet by selecting the current thread (only if needed) and then sending a stop reply packet. Debugserver can now start up with a --unix-socket (-u for short) and can then bind to port zero and send the port it bound to to a listening process on the other end. This allows the GDB remote platform to spawn new GDB server instances (debugserver) to allow platform debugging. llvm-svn: 129351
-
Greg Clayton authored
with the same program arguments for a process over and over without having to specify them (like you can with gdb with the "--args" option). llvm-svn: 129332
-
- Apr 11, 2011
-
-
Stephen Wilson authored
This patch fixes all of the warnings due to unordered initialization lists. Patch by Marco Minutoli. llvm-svn: 129290
-
Stephen Wilson authored
ParserVars is declared using the class keyword. This solves the warning. llvm-svn: 129289
-
Caroline Tice authored
Implement ARM emulation function to handle "SUBS PC, LR and related instructions". llvm-svn: 129279
-
- Apr 09, 2011
-
-
Caroline Tice authored
Fix various things in the instruction emulation code: - Add ability to control whether or not the emulator advances the PC register (in the emulation state), if the instruction itself does not change the pc value.. - Fix a few typos in asm description strings. - Fix bug in the carry flag calculation. llvm-svn: 129168
-
Johnny Chen authored
llvm-svn: 129165
-
Johnny Chen authored
llvm-svn: 129161
-
- Apr 08, 2011
-
-
Stephen Wilson authored
Something changed in commit r129112 where a few standard headers vanished from the include chain when building on Linux. Fix up by including limits.h for INT_MAX and PATH_MAX where needed, and stdio.h for printf(). llvm-svn: 129130
-
Stephen Wilson authored
I forgot to 'svn add' this file in r129119. llvm-svn: 129120
-
Stephen Wilson authored
llvm-svn: 129119
-
Stephen Wilson authored
Specifying the new arguments as NULL is appropriate for now as this is backwards-compatible with the old invocation. llvm-svn: 129118
-
Greg Clayton authored
This allows you to have a platform selected, then specify a triple using "i386" and have the remaining triple items (vendor, os, and environment) set automatically. Many interpreter commands take the "--arch" option to specify an architecture triple, so now the command options needed to be able to get to the current platform, so the Options class now take a reference to the interpreter on construction. Modified the build LLVM building in the Xcode project to use the new Xcode project level user definitions: LLVM_BUILD_DIR - a path to the llvm build directory LLVM_SOURCE_DIR - a path to the llvm sources for the llvm that will be used to build lldb LLVM_CONFIGURATION - the configuration that lldb is built for (Release, Release+Asserts, Debug, Debug+Asserts). I also changed the LLVM build to not check if "lldb/llvm" is a symlink and then assume it is a real llvm build directory versus the unzipped llvm.zip package, so now you can actually have a "lldb/llvm" directory in your lldb sources. llvm-svn: 129112
-
- Apr 07, 2011
-
-
Stephen Wilson authored
NSEC_PER_SEC is not defined in sys/time.h on Linux. Replaced that macro with a static constant inside TimeValue. Patch by Marco Minutoli. llvm-svn: 129071
-
Stephen Wilson authored
strtoul() is defined in stdlib.h and the header was missing in StringExtractor.cpp. Patch by Marco Minutoli! llvm-svn: 129070
-
Stephen Wilson authored
This method only needs to be overridden in the remote debugging case, the base class handles the host case. Since we do not do remote debugging on Linux yet and there is a typo that causes a build issue, just remove this method for now. llvm-svn: 129069
-
Caroline Tice authored
Translate dwarf register numbers to internal register numbers before trying to look them up in register contexts, in the emulation callback functions that read & write the frame registers. llvm-svn: 129037
-
- Apr 06, 2011
-
-
Greg Clayton authored
llvm-svn: 129018
-
Caroline Tice authored
Add Emulate and DumpEmulation to Instruction class. Move InstructionLLVM out of DisassemblerLLVM class. Add instruction emulation function calls to SBInstruction and SBInstructionList APIs. llvm-svn: 128956
-
- Apr 05, 2011
-
-
Greg Clayton authored
consistent and also to lighten up the page a bit. llvm-svn: 128939
-
Greg Clayton authored
llvm-svn: 128934
-
Caroline Tice authored
Convert "process" read/write callback functions to "frame" read/write callback functions. llvm-svn: 128917
-
Caroline Tice authored
Add the rest of the mechanisms to make ARM instruction emulation usable/possible. llvm-svn: 128907
-
- Apr 04, 2011
-
-
Greg Clayton authored
GDBRemoteCommunicationServer classes. This involved adding a new packet named "qSpeedTest" which can test the speed of a packet send/response pairs using a wide variety of send/recv packet sizes. Added a few new connection classes: one for shared memory, and one for using mach messages (Apple only). The mach message stuff is experimental and not working yet, but added so I don't lose the code. The shared memory stuff uses pretty standard calls to setup shared memory. llvm-svn: 128837
-
- Apr 02, 2011
-
-
Johnny Chen authored
process stops for some reason. main.c (compiled into a.out) is used as an example in the README-run-until-faulted file. llvm-svn: 128755
-
- Apr 01, 2011
-
-
Greg Clayton authored
llvm-svn: 128721
-
Greg Clayton authored
respectively. llvm-svn: 128720
-
Johnny Chen authored
llvm-svn: 128697
-
Johnny Chen authored
lldb::SymbolType SBSymbol::GetType(); lldb::SectionType SBAddress::GetSectionType (); lldb::SBModule SBAddress::GetModule (); Also add an lldb::SBModule::GetUUIDString() API which is easier for Python to work with in the test script. llvm-svn: 128695
-
Greg Clayton authored
event. Modified the ProcessInfo structure to contain all process arguments. Using the new function calls on MacOSX allows us to see the full process name, not just the first 16 characters. Added a new platform command: "platform process info <pid> [<pid> <pid> ...]" that can be used to get detailed information for a process including all arguments, user and group info and more. llvm-svn: 128694
-
Jim Ingham authored
llvm-svn: 128685
-
- Mar 31, 2011
-
-
Jim Ingham authored
llvm-svn: 128678
-
Caroline Tice authored
Fix a few typos in the previous commit. llvm-svn: 128671
-
Caroline Tice authored
Add code to emulate VLD1 (single element to all lanes) ARM instruction. llvm-svn: 128669
-
Caroline Tice authored
Add code to emulate VST1 (single element from one lane) ARM instruction (more floating point stores). llvm-svn: 128661
-
Caroline Tice authored
Add code to emulate VST1 (multiple single elements) ARM instruction (floating point store). llvm-svn: 128656
-
Caroline Tice authored
Add code to emulate VLD1 (single element to one lane) floating point register load instruction (ARM) . llvm-svn: 128646
-
Caroline Tice authored
Revert changes that caused this scheme to be hidden in certain cases. llvm-svn: 128638
-
Caroline Tice authored
Add code to emulate VLD1 (multiple single elements) ARM instruction. llvm-svn: 128637
-
Caroline Tice authored
Add code to emulate VSTR ARM instruction (store a floating point register). llvm-svn: 128614
-