Skip to content
  1. Feb 29, 2012
    • Johnny Chen's avatar
      Patch from Filipe Cabecinhas! · 1cf107c4
      Johnny Chen authored
      Attached is a small python fix to save the current stout and std err when starting a python session, then diverting them (as it was before), and restoring the previous values afterwards. Otherwise, a python script could suddenly find itself without output.
      
      llvm-svn: 151693
      1cf107c4
    • Johnny Chen's avatar
      rdar://problem/10652076 · e979eda7
      Johnny Chen authored
      Initial step -- infrastructure change -- to fix the bug.  Change the RegisterInfo data structure
      to contain two additional fields (uint32_t *value_rges and uint32_t *invalidate_regs) to facilitate
      architectures which have register mapping.
      
      Update all existing RegsiterInfo arrays to have two extra NULL's (the additional fields) in each row,
      GDBRemoteRegisterContext.cpp is modified to add d0-d15 and q0-q15 register info entries which take
      advantage of the value_regs field to specify the containment relationship:
      
      d0 -> (s0, s1)
      ...
      d15 -> (s30, s31)
      q0 -> (d0, d1)
      ...
      q15 -> (d30, d31)
      
      llvm-svn: 151686
      e979eda7
    • Han Ming Ong's avatar
      <rdar://10950312> · cec8c90a
      Han Ming Ong authored
      Need to GetProcess() to set the uid of the process to attach.
      
      llvm-svn: 151679
      cec8c90a
    • Han Ming Ong's avatar
      <rdar://10950196> · 1c0c51a5
      Han Ming Ong authored
      Returns true when there is any info retrieved.
      
      llvm-svn: 151678
      1c0c51a5
    • Han Ming Ong's avatar
      Fixed a crasher for remote device debugging. · ea4e8492
      Han Ming Ong authored
      llvm-svn: 151677
      ea4e8492
  2. Feb 28, 2012
  3. Feb 27, 2012
  4. Feb 26, 2012
    • Greg Clayton's avatar
      Made a ModuleSpec class in Module.h which can specify a module using one or · b9a01b39
      Greg Clayton authored
      more of the local path, platform path, associated symbol file, UUID, arch,
      object name and object offset. This allows many of the calls that were
      GetSharedModule to reduce the number of arguments that were used in a call
      to these functions. It also allows a module to be created with a ModuleSpec
      which allows many things to be specified prior to any accessors being called
      on the Module class itself. 
      
      I was running into problems when adding support for "target symbol add"
      where you can specify a stand alone debug info file after debugging has started
      where I needed to specify the associated symbol file path and if I waited until
      after construction, the wrong  symbol file had already been located. By using
      the ModuleSpec it allows us to construct a module with as little or as much
      information as needed and not have to change the parameter list.
      
      llvm-svn: 151476
      b9a01b39
  5. Feb 25, 2012
  6. Feb 24, 2012
    • Greg Clayton's avatar
      Fixed a crasher that was happening after making ObjectFile objects have a · c7f09cca
      Greg Clayton authored
      weak reference back to the Module. We were crashing when trying to make a
      memory object file since it was trying to get the object in the Module 
      constructor before the "Module *" had been put into a shared pointer, and the
      module was trying to initialize a weak pointer back to it.
      
      llvm-svn: 151397
      c7f09cca
    • Johnny Chen's avatar
      2120e2bd
    • Greg Clayton's avatar
      Fixed the launching code when using the new SBLaunchInfo. · 38d1f051
      Greg Clayton authored
      llvm-svn: 151392
      38d1f051
    • Enrico Granata's avatar
      Reworking the ObjC formatters test case not to test everything in one huge... · 9283444b
      Enrico Granata authored
      Reworking the ObjC formatters test case not to test everything in one huge code block - better for maintenance and debugging
      
      llvm-svn: 151390
      9283444b
    • Enrico Granata's avatar
    • Johnny Chen's avatar
      Makefiles for new mach-core directory. · 45178a26
      Johnny Chen authored
      Patch from dawn@burble.org!
      
      llvm-svn: 151375
      45178a26
    • Jim Ingham's avatar
      e8dd1307
    • Greg Clayton's avatar
      Added the new way we will eventually do all attaches and launches. First clients · 0e615684
      Greg Clayton authored
      will fill out either a SBLaunchInfo or SBAttachInfo class, then call:
      
      SBProcess SBTarget::Launch (SBLaunchInfo &, SBError &);
      SBProcess SBTarget::Attach (SBAttachInfo &, SBError &);
      
      The attach is working right now and allows the ability to set many filters such
      as the parent process ID, the user/group ID, the effective user/group ID, and much
      more.
      
      The launch is not yet working, but I will get this working soon. By changing our
      launch and attach calls to take an object, it allows us to add more capabilities to
      launching and attaching without having to have launch and attach functions that
      take more and more arguments. 
      
      Once this is all working we will deprecated the older launch and attach fucntions
      and eventually remove them.
      
      llvm-svn: 151344
      0e615684
    • Greg Clayton's avatar
      <rdar://problem/10103468> · e72dfb32
      Greg Clayton authored
      I started work on being able to add symbol files after a debug session
      had started with a new "target symfile add" command and quickly ran into
      problems with stale Address objects in breakpoint locations that had 
      lldb_private::Section pointers into modules that had been removed or 
      replaced. This also let to grabbing stale modules from those sections. 
      So I needed to thread harded the Address, Section and related objects.
      
      To do this I modified the ModuleChild class to now require a ModuleSP
      on initialization so that a weak reference can created. I also changed
      all places that were handing out "Section *" to have them hand out SectionSP.
      All ObjectFile, SymbolFile and SymbolVendors were inheriting from ModuleChild
      so all of the find plug-in, static creation function and constructors now
      require ModuleSP references instead of Module *. 
      
      Address objects now have weak references to their sections which can
      safely go stale when a module gets destructed. 
      
      This checkin doesn't complete the "target symfile add" command, but it
      does get us a lot clioser to being able to do such things without a high
      risk of crashing or memory corruption.
      
      llvm-svn: 151336
      e72dfb32
Loading