Skip to content
  1. Sep 12, 2012
  2. Sep 05, 2012
  3. Aug 30, 2012
    • Greg Clayton's avatar
      Added the ability to verify the LLDB API on MacOSX using a script. Usage is: · 0274766b
      Greg Clayton authored
      ./verify_api.py --library ./LLDB.framework/LLDB --api-regex lldb --arch x86_64 /Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB
      
      So you specify a library with the "--library" option, then you specify an API regular expression that you want to match the executables against with "--api-regex <regex>", here we specify "lldb" to catch all undefined external API functions from the binary we want to test, then we specify the architectures to check with "--arch <arch>" (this can be specified more than once), and you give one or more executables.
      
      llvm-svn: 162941
      0274766b
  4. Aug 28, 2012
  5. Aug 27, 2012
  6. Aug 25, 2012
    • Filipe Cabecinhas's avatar
      Added SBDebugger's log callbacks to Python-land · c5041918
      Filipe Cabecinhas authored
      - Tweaked a parameter name in SBDebugger.h so my typemap will catch it;
      - Added a SBDebugger.Create(bool, callback, baton) to the swig interface;
      - Added SBDebugger.SetLoggingCallback to the swig interface;
      - Added a callback utility function for log callbacks;
      - Guard against Py_None on both callback utility functions;
      
      - Added a FIXME to the SBDebugger API test;
      - Added a __del__() stub for SBDebugger.
      
      We need to be able to get both the log callback and baton from an
      SBDebugger if we want to protect against memory leaks (or make the user
      responsible for holding another reference to the callback).
      Additionally, it's impossible to revert from a callback-backed log
      mechanism to a file-backed log mechanism.
      
      llvm-svn: 162633
      c5041918
  7. Aug 24, 2012
  8. Aug 22, 2012
    • Filipe Cabecinhas's avatar
      Fixed a Linux building bug pointed out by Daniel Malea. · 2c0978a4
      Filipe Cabecinhas authored
      llvm-svn: 162373
      2c0978a4
    • Filipe Cabecinhas's avatar
      Added a typemap and wrappers for SBInputReader callbacks · 6eb31e73
      Filipe Cabecinhas authored
      Now it's possible to use SBInputReader callbacks in Python.
      
      We leak the callback object, unfortunately. A __del__ method can be added
      to SBInputReader, but we have no way to check the callback function that
      is on the reader. So we can't call Py_DECREF on it when we have our
      PythonCallback function. One way to do it is to assume that reified
      SBInputReaders always have a Python callback (and always call Py_DECREF).
      Another one is to add methods or properties to SBInputReader (or make the
      m_callback_function property public).
      
      llvm-svn: 162356
      6eb31e73
  9. Aug 20, 2012
  10. Aug 18, 2012
  11. Aug 10, 2012
  12. Aug 09, 2012
  13. Aug 01, 2012
    • Greg Clayton's avatar
      <rdar://problem/11275622> · 1811b4fa
      Greg Clayton authored
      Added new API to lldb::SBTypeMember for bitfields:
      
          bool SBTypeMember::IsBitfield();
          uint32_t SBTypeMember::GetBitfieldSizeInBits();
      
      Also added new properties for easy access. Now SBTypeMember objects in python have a "fields" property for all type fields, "bases" for all direct bases, "vbases" for all virtual base classes and "members" for a combo of all three organized by bit offset. They all return a python list() of SBTypeMember objects. Usage:
      (lldb) script
      >>> t = lldb.target.FindFirstType("my_type")
      >>> for field in t.fields:
      ...     print field
      >>> for vbase in t.vbases:
      ...     print vbase
      >>> for base in t.bases:
      ...     print base
      >>> for member in t.members:
      ...     print member
      
      Also added new "is_bitfield" property to the SBTypeMember objects that will return the result of SBTypeMember::IsBitfield(), and "bitfield_bit_size" which will return the result of SBTypeMember::GetBitfieldSizeInBits();
      
      I also fixed "SBTypeMember::GetOffsetInBytes()" to return the correct byte offset.
      
      llvm-svn: 161091
      1811b4fa
  14. Jul 28, 2012
    • Jim Ingham's avatar
      Added an lldb_private & equivalent SB API to send an AsyncInterrupt to the event loop. · cfc0935e
      Jim Ingham authored
      Convert from calling Halt in the lldb Driver.cpp's input reader's sigint handler to sending this AsyncInterrupt so it can be handled in the 
      event loop.
      If you are attaching and get an async interrupt, abort the attach attempt.
      Also remember to destroy the process if get interrupted while attaching.
      Getting this to work also required handing the eBroadcastBitInterrupt in a few more places in Process WaitForEvent & friends.
      
      <rdar://problem/10792425>
      
      llvm-svn: 160903
      cfc0935e
  15. Jul 26, 2012
  16. Jul 21, 2012
  17. Jul 20, 2012
  18. Jul 13, 2012
  19. Jun 30, 2012
    • Greg Clayton's avatar
      Added documentation for many of our python properties and also made the... · 5ef31a9c
      Greg Clayton authored
      Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output.
      
      llvm-svn: 159468
      5ef31a9c
  20. Jun 28, 2012
  21. Jun 27, 2012
  22. Jun 08, 2012
    • Jim Ingham's avatar
      Make raw & parsed commands subclasses of CommandObject rather than having the... · 5a988416
      Jim Ingham authored
      Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 
      Execute which was never going to get run and another ExecuteRawCommandString.  Took the knowledge of how
      to prepare raw & parsed commands out of CommandInterpreter and put it in CommandObject where it belongs.
      
      Also took all the cases where there were the subcommands of Multiword commands declared in the .h file for
      the overall command and moved them into the .cpp file.
      
      Made the CommandObject flags work for raw as well as parsed commands.
      
      Made "expr" use the flags so that it requires you to be paused to run "expr".
      
      llvm-svn: 158235
      5a988416
  23. Jun 05, 2012
    • Johnny Chen's avatar
      rdar://problem/11584012 · b90827e6
      Johnny Chen authored
      Refactorings of watchpoint creation APIs so that SBTarget::WatchAddress(), SBValue::Watch(), and SBValue::WatchPointee()
      now take an additional 'SBError &error' parameter (at the end) to contain the reason if there is some failure in the
      operation.  Update 'watchpoint set variable/expression' commands to take advantage of that.
      
      Update existing test cases to reflect the API change and add test cases to verify that the SBError mechanism works for
      SBTarget::WatchAddress() by passing an invalid watch_size.
      
      llvm-svn: 157964
      b90827e6
  24. May 30, 2012
  25. May 26, 2012
  26. May 24, 2012
  27. May 22, 2012
  28. May 21, 2012
  29. May 19, 2012
Loading