- Oct 11, 2012
-
-
Greg Clayton authored
Fixed an indentation issue that only shows up when dumping .o files that use linked addresses (DWARF in .o files with debug map). llvm-svn: 165740
-
rdar://problem/12331741Greg Clayton authored
Dynamic type code must be efficient and fast. Now it is. Added ObjC v1 support for getting the complete list of ISA values. The main flow of the AppleObjCRuntime subclasses is now they must override "virtual bool UpdateISAToDescriptorMap_Impl();". This function will update the complete list of ISA values and create ClassDescriptorSP objects for each one. Now we have the complete list of valid ISA values which we can use for verification when doing dynamic typing. Refactored a bunch of stuff so that the AppleObjCRuntime subclasses don't have to implement as many functions as they used to. llvm-svn: 165730
-
Greg Clayton authored
llvm-svn: 165728
-
Micah Villmow authored
Add in the first iteration of support for llvm/clang/lldb to allow variable per address space pointer sizes to be optimized correctly. llvm-svn: 165726
-
Jason Molenda authored
with ~, we need to realpath it. Fixes the case where settings set target.expr-prefix ~/lldb.prefix.header wouldn't read this prefix header file. <rdar://problem/12475676> llvm-svn: 165704
-
Jason Molenda authored
malloc'ed heap to an llvm SmallVector. llvm-svn: 165703
-
rdar://problem/12462744Enrico Granata authored
<rdar://problem/12462744> Implement a new SBDeclaration class to wrap an lldb_private::Declaration - make a GetDeclaration() API on SBValue to return a declaration. This will only work for vroot variables as they are they only objects for which we currently provide a valid Declaration llvm-svn: 165672
-
- Oct 10, 2012
-
-
Jason Molenda authored
to once in the AssemblyParse_x86 ctor. an instruction llvm-svn: 165662
-
Jim Ingham authored
Change the Thread constructor over to take a Process& rather than a ProcessSP. We can't create Threads with a NULL ProcessSP, so it makes no sense to use the SP. Then make the Thread a Broadcaster, and get it to broadcast when the selected frame is changed (but only from the Command Line) and when Thread::ReturnFromFrame changes the stack. Made the Driver use this notification to print the new thread status rather than doing it in the command. Fixed a few places where people were setting their broadcaster class by hand rather than using the static broadcaster class call. <rdar://problem/12383087> llvm-svn: 165640
-
Jim Ingham authored
Don't make regexp commands as regular commands - they are "short cuts" and users should be able to override them with "unalias" but you can't unalias normal commands. llvm-svn: 165630
-
Jason Molenda authored
llvm-svn: 165597
-
Jason Molenda authored
API (to get the length of x86 instructions) to using the LLVM-MC disassembler. <rdar://problem/12411000> llvm-svn: 165587
-
Greg Clayton authored
llvm-svn: 165580
-
Sean Callanan authored
over to simply update its cache and then look up the descriptor in the cache. This is fine because the cache now builds much faster (since descriptors are minimal). Metaclasses aren't in the cache, so I switched the Describe method for class descriptors from using GetClassDescriptor to manually creating an automatic ClassDescriptorV2. llvm-svn: 165579
-
Sean Callanan authored
The following are now derived lazily: - The name of the class (cached); - the instance size of the class (not cached); The following have been removed entirely: - Whether the class is realized. This is an implementation detail. - The contents of the objc_class object. That object can be read as needed. - Whether the class is valid. The fact that we vended a class to begin with means it's valid. We will only give up looking parts of it up if they are not in the format we expect. llvm-svn: 165567
-
-
- Oct 09, 2012
-
-
Sean Callanan authored
lighter-weight so that the cache can be populated faster. - I Added a ProcessWP to the runtime so I can take it out of the individual descriptors, saving space; - I made the constructors for the descriptors private so that only the runtime can invoke them; and - I removed the constructor that takes a ValueObject since the logic for using a ValueObject is in the runtime. llvm-svn: 165549
-
Jason Molenda authored
Thanks again Dan! llvm-svn: 165519
-
Greg Clayton authored
llvm-svn: 165516
-
Greg Clayton authored
Fixed the redo.py script to emit correct arch and compiler options after dotest.py was switched over to use argparse. llvm-svn: 165507
-
Jason Molenda authored
whether we try to call an external program to load symbols unconditionally, or if we check the user's preferences before calling it. ProcessMachCore now sets CanJIT to false - we can't execute code in a core file. DynamicLoaderDarwinKernel::OSKextLoadedKextSummary::LoadImageUsingMemoryModule changed to load the kernel from an on-disk file if at all possible. Don't load the kext binaries out of memory from the remote systems - their linkedit doesn't seem to be in a good state and we'll error out down in SymbolVendorMacOSX if we try to use the in-memory images. Call Symbols::DownloadObjectAndSymbolFile to get the kext/kernel binary -- the external program may be able to give us a file path on the local filesystem instead of reading the binary / dSYM over a network drive every time. Fall back to calling Target::GetSharedModule() like before if DownloadObjectAndSymbolFile fails. llvm-svn: 165471
-
Greg Clayton authored
llvm-svn: 165460
-
Greg Clayton authored
llvm-svn: 165441
-
Greg Clayton authored
Added a new "module" log channel which covers module creation, deletion, and common module list actions. Also added a new option for "log enable" which is "--stack" which will print out a stack backtrace for each log line. This was used to track down the leaking module issue I fixed last week. llvm-svn: 165438
-
Greg Clayton authored
Checking in fixes that I used to track down a leaking module. The heap module can now search the vm regions with the --vm-regions options to any of the heap functions. This is currently slow and often will time out when run on a large program since our user expression timeout is set to 500000 usec. We need to add an API to LLDB where we can specify the timeout for an expression. llvm-svn: 165437
-
- Oct 08, 2012
-
-
rdar://problem/12200505Enrico Granata authored
<rdar://problem/12200505> Fixing a logical error in SBProcess, where the get_process_thread_list function was creating invalid threads_access instances, and hence failing to correctly fill in the list llvm-svn: 165421
-
Enrico Granata authored
Silly me! There was a closing ) missing from one of the lines - and Python complained about syntax errors on the next line. It being a Friday afternoon made the rest llvm-svn: 165420
-
Enrico Granata authored
llvm-svn: 165410
-
Micah Villmow authored
llvm-svn: 165396
-
- Oct 06, 2012
-
-
Jason Molenda authored
if we have a kernel binary, set the target's architecture to match. Include the target's architecture in the ModuleSpec when we're searching for the kext binaries on the local system -- otherwise we won't get a specific slice of a fat file picked out for us and we won't use the returned Module correctly. Remove the redundant attempt to find a file on the local filesystem from this method. In ProcessGDBRemote::CheckForKernel(), if we have a kernel binary in memory, mark the canJIT as false. There is no jitting code in kernel debug sessions. llvm-svn: 165357
-
Jason Molenda authored
starting lldb I get % ./lldb -x Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/tmp/build/Debug/LLDB.framework/Versions/A/Resources/Python/lldb/__init__.py", line 9008 raise TypeError("No array item of type %s" % str(type(key))) ^ SyntaxError: invalid syntax Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined (lldb) I did a clean build and still got the problem so I'm backing this out until Enrico can look at it. llvm-svn: 165356
-
Jim Ingham authored
Make the error message from regex commands use the command's syntax string if it exists rather than a generic but not at all helpful message about not matching some unknown regex... llvm-svn: 165349
-
Enrico Granata authored
llvm-svn: 165348
-
-
-
Jason Molenda authored
it's too easy to type by mistake when typing "l" (read: I did this once). llvm-svn: 165340
-
- Oct 05, 2012
-
-
Jason Molenda authored
to watch var set/exp -- that's now the default in the shipped lldb. llvm-svn: 165333
-
Jason Molenda authored
Document "f <n>" selects frame n. "t <n>" selects thread n but this was just added to TOT so most people won't have access to an lldb that accepts it. llvm-svn: 165332
-
Jim Ingham authored
llvm-svn: 165330
-
Jim Ingham authored
llvm-svn: 165328
-