Skip to content
  1. Sep 12, 2010
  2. Sep 10, 2010
    • Jason Molenda's avatar
      The first part of an lldb native stack unwinder. · fbcb7f2c
      Jason Molenda authored
      The Unwind and RegisterContext subclasses still need
      to be finished; none of this code is used by lldb at
      this point (unless you call into it by hand).
      
      The ObjectFile class now has an UnwindTable object.
      
      The UnwindTable object has a series of FuncUnwinders
      objects (Function Unwinders) -- one for each function
      in that ObjectFile we've backtraced through during this
      debug session.
      
      The FuncUnwinders object has a few different UnwindPlans.
      UnwindPlans are a generic way of describing how to find
      the canonical address of a given function's stack frame
      (the CFA idea from DWARF/eh_frame) and how to restore the
      caller frame's register values, if they have been saved
      by this function.
      
      UnwindPlans are created from different sources.  One source is the
      eh_frame exception handling information generated by the compiler
      for unwinding an exception throw.  Another source is an assembly
      language inspection class (UnwindAssemblyProfiler, uses the Plugin
      architecture) which looks at the instructions in the funciton
      prologue and describes the stack movements/register saves that are
      done.
      
      Two additional types of UnwindPlans that are worth noting are
      the "fast" stack UnwindPlan which is useful for making a first
      pass over a thread's stack, determining how many stack frames there
      are and retrieving the pc and CFA values for each frame (enough
      to create StackFrameIDs).  Only a minimal set of registers is
      recovered during a fast stack walk.  
      
      The final UnwindPlan is an architectural default unwind plan.
      These are provided by the ArchDefaultUnwindPlan class (which uses
      the plugin architecture).  When no symbol/function address range can
      be found for a given pc value -- when we have no eh_frame information
      and when we don't have a start address so we can't examine the assembly
      language instrucitons -- we have to make a best guess about how to 
      unwind.  That's when we use the architectural default UnwindPlan.
      On x86_64, this would be to assume that rbp is used as a stack pointer
      and we can use that to find the caller's frame pointer and pc value.
      It's a last-ditch best guess about how to unwind out of a frame.
      
      There are heuristics about when to use one UnwindPlan versues the other --
      this will all happen in the still-begin-written UnwindLLDB subclass of
      Unwind which runs the UnwindPlans.
      
      llvm-svn: 113581
      fbcb7f2c
    • Caroline Tice's avatar
      If the file the user specifies can't be found in the current directory, · 428a9a58
      Caroline Tice authored
      and the user didn't specify a particular directory, search for the file 
      using the $PATH environment variable.
      
      llvm-svn: 113575
      428a9a58
  3. Sep 09, 2010
  4. Sep 07, 2010
  5. Sep 03, 2010
  6. Aug 31, 2010
  7. Aug 30, 2010
  8. Aug 23, 2010
  9. Aug 21, 2010
    • Greg Clayton's avatar
      Modified the host process monitor callback function Host::StartMonitoringChildProcess · 0b76a2c2
      Greg Clayton authored
      to spawn a thread for each process that is being monitored. Previously
      LLDB would spawn a single thread that would wait for any child process which
      isn't ok to do as a shared library (LLDB.framework on Mac OSX, or lldb.so on
      linux). The old single thread used to call wait4() with a pid of -1 which 
      could cause it to reap child processes that it shouldn't have.
      
      Re-wrote the way Function blocks are handles. Previously I attempted to keep
      all blocks in a single memory allocation (in a std::vector). This made the
      code somewhat efficient, but hard to work with. I got rid of the old BlockList
      class, and went to a straight parent with children relationship. This new 
      approach will allow for partial parsing of the blocks within a function.
      
      llvm-svn: 111706
      0b76a2c2
  10. Aug 10, 2010
  11. Jul 23, 2010
  12. Jul 22, 2010
    • Greg Clayton's avatar
      Change over to using the definitions for mach-o types and defines to the · e1a916a7
      Greg Clayton authored
      defines that are in "llvm/Support/MachO.h". This should allow ObjectFileMachO
      and ObjectContainerUniversalMachO to be able to be cross compiled in Linux.
      
      Also did some cleanup on the ASTType by renaming it to ClangASTType and
      renaming the header file. Moved a lot of "AST * + opaque clang type *"
      functionality from lldb_private::Type over into ClangASTType.
      
      llvm-svn: 109046
      e1a916a7
  13. Jul 09, 2010
  14. Jul 07, 2010
  15. Jul 06, 2010
  16. Jul 02, 2010
  17. Jun 14, 2010
  18. Jun 11, 2010
    • Eli Friedman's avatar
      Fix includes. · a82475ab
      Eli Friedman authored
      llvm-svn: 105814
      a82475ab
    • Eli Friedman's avatar
      Fix TimeValue::Offset* to take uint64_t · 8d860d55
      Eli Friedman authored
      llvm-svn: 105812
      8d860d55
    • Greg Clayton's avatar
      Made lldb_private::ArchSpec more generic so that it can take a mach-o cpu · 41f92327
      Greg Clayton authored
      type and sub-type, or an ELF e_machine value. Also added a generic CPU type
      to the arch spec class so we can have a single arch definition that the LLDB
      core code can use. Previously a lot of places in the code were using the
      mach-o definitions from a macosx header file. 
      
      Switches over to using "llvm/Support/MachO.h" for the llvm::MachO::XXX for the
      CPU types and sub types for mach-o ArchSpecs. Added "llvm/Support/ELF.h" so 
      we can use the "llvm::ELF::XXX" defines for the ELF ArchSpecs.
      
      Got rid of all CPU_TYPE_ and CPU_SUBTYPE_ defines that were previously being
      used in LLDB.
      
      llvm-svn: 105806
      41f92327
  19. Jun 08, 2010
Loading