Skip to content
  1. Jul 16, 2011
    • Johnny Chen's avatar
      Create an interface file for SBTarget named SBTarget.i which relieves SBTarget.h · dc7d3c12
      Johnny Chen authored
      of the duty of having SWIG docstring features and multiline string literals
      embedded within.
      
      lldb.swig now %include .../SBTarget.i, instead of .../SBTarget.h.  Will create
      other interface files and transition them over.
      
      Also update modify-python-lldb.py to better handle the trailing blank line right
      before the ending '"""' Python docstring delimiter.
      
      llvm-svn: 135355
      dc7d3c12
    • Peter Collingbourne's avatar
      Add missing #include, fixes Linux build · bac7150d
      Peter Collingbourne authored
      llvm-svn: 135346
      bac7150d
    • Greg Clayton's avatar
      Completed more work on the KDP darwin kernel debugging Process plug-in. · 4df8ddfc
      Greg Clayton authored
      Implemented connect, disconnect, reattach, version, and hostinfo.
      
      Modified the ConnectionFileDescriptor class to be able to handle UDP. 
      
      Added a new Stream subclass called StreamBuffer that is backed by a
      llvm::SmallVector for better efficiency.
      
      Modified the DataExtractor class to have a static function that can
      dump hex bytes into a stream. This is currently being used to dump incoming
      binary packet data in the KDP plug-in.
      
      llvm-svn: 135338
      4df8ddfc
    • Enrico Granata's avatar
      Some descriptive text for the Python script feature: · 0c5ef693
      Enrico Granata authored
       - help type summary add now gives some hints on how to use it
      frame variable and target variable now have a --no-summary-depth (-Y) option:
       - simply using -Y without an argument will skip one level of summaries, i.e.
         your aggregate types will expand their children and display no summary, even
         if they have one. children will behave normally
       - using -Y<int>, as in -Y4, -Y7, ..., will skip as many levels of summaries as
         given by the <int> parameter (obviously, -Y and -Y1 are the same thing). children
         beneath the given depth level will behave normally
       -Y0 is the same as omitting the --no-summary-depth parameter entirely
       This option replaces the defined-but-unimplemented --no-summary
      
      llvm-svn: 135336
      0c5ef693
    • Sean Callanan's avatar
      Added support for dynamic detection of AVX, and · c4ffe37c
      Sean Callanan authored
      fixed a few bugs that revealed.  Now the "register
      read" command should show AVX registers
      (ymm0-ymm15) on Mac OS X platforms that support
      them.
      
      When testing this on Mac OS X, run debugserver
      manually, like this:
      
      debugserver --native-regs localhost:1111 /path/to/executable
      
      Then
      
      lldb /path/to/executable
      ...
      (lldb) process connect connect://localhost:1111
      
      llvm-svn: 135331
      c4ffe37c
    • Enrico Granata's avatar
      System-wide summaries: · 9dd75c88
      Enrico Granata authored
       - Summaries for char*, const char* and char[] are loaded at startup as
         system-wide summaries. This means you cannot delete them unless you use
         the -a option to type summary delete/clear
       - You can add your own system-wide summaries by using the -w option to type
         summary add
      Several code improvements for the Python summaries feature
      
      llvm-svn: 135326
      9dd75c88
    • Peter Collingbourne's avatar
      Fix gcc build error · 6b917bb9
      Peter Collingbourne authored
      llvm-svn: 135325
      6b917bb9
    • Johnny Chen's avatar
      Add TestValueAPI.py to exercise the newly added/modified SBValue APIs: · 5819ab49
      Johnny Chen authored
      o GetChildAtIndex, and
      o GetValueForExpressionPath
      
      llvm-svn: 135315
      5819ab49
  2. Jul 15, 2011
    • Johnny Chen's avatar
      Add some more docstrings for SBCompileUnit and SBBreakpoint, plus incorporate... · 135f63fb
      Johnny Chen authored
      Add some more docstrings for SBCompileUnit and SBBreakpoint, plus incorporate the doxgen doc block of
      
      SBValue::GetChildAtIndex(uint32_t idx, 
                               lldb::DynamicValueType use_dynamic,
                               bool can_create_synthetic);
      
      into the SBValue docstrings.
      
      llvm-svn: 135295
      135f63fb
    • Greg Clayton's avatar
      Added the ability to get synthetic child values from SBValue objects that · f6602482
      Greg Clayton authored
      represent pointers and arrays by adding an extra parameter to the 
      
      SBValue
      SBValue::GetChildAtIndex (uint32_t idx, 
                               DynamicValueType use_dynamic, 
                               bool can_create_synthetic);
      
      The new "can_create_synthetic" will allow you to create child values that
      aren't actually a part of the original type. So if you code like:
      
      int *foo_ptr = ...
      
      And you have a SBValue that contains the value for "foo_ptr":
      
      SBValue foo_value = ...
      
      You can now get the "foo_ptr[12]" item by doing this:
      
      v = foo_value.GetChiltAtIndex (12, lldb.eNoDynamicValues, True);
      
      Normall the "foo_value" would only have one child value (an integer), but
      we can create "synthetic" child values by treating the pointer as an array.
      
      Likewise if you have code like:
      
      int array[2];
      
      array_value = ....
      
      v = array_value.GetChiltAtIndex (0);     // Success, v will be valid
      v = array_value.GetChiltAtIndex (1);     // Success, v will be valid
      v = array_value.GetChiltAtIndex (2);     // Fail, v won't be valid, "2" is not a valid zero based index in "array"
      
      But if you use the ability to create synthetic children:
      
      v = array_value.GetChiltAtIndex (0, lldb.eNoDynamicValues, True);     // Success, v will be valid
      v = array_value.GetChiltAtIndex (1, lldb.eNoDynamicValues, True);     // Success, v will be valid
      v = array_value.GetChiltAtIndex (2, lldb.eNoDynamicValues, True);     // Success, v will be valid
      
      llvm-svn: 135292
      f6602482
    • Greg Clayton's avatar
      Fixed the comment lines in the file comment headers. · 59ec512c
      Greg Clayton authored
      llvm-svn: 135284
      59ec512c
    • Greg Clayton's avatar
      Added the ability to connect using "tcp://<host>:<port>" which is the · 57508026
      Greg Clayton authored
      same as the old "connect://<host>:<port>". Also added the ability to
      connect using "udp://<host>:<port>" which will open a connected 
      datagram socket. I need to find a way to specify a non connected
      datagram socket as well. 
      
      We might need to start setting some settings in the URL itself, 
      maybe something like:
      
      udp://<host>:<port>?connected=yes
      udp://<host>:<port>?connected=no
      
      I am open to suggestions for URL settings.
      
      Also did more work on the KDP darwin kernel plug-in.
      
       
      
      llvm-svn: 135277
      57508026
    • Greg Clayton's avatar
      Hollowed out process plug-in to do KDP darwin kernel debugging. · f9765acd
      Greg Clayton authored
      llvm-svn: 135240
      f9765acd
    • Enrico Granata's avatar
      Python summary strings: · f2bbf717
      Enrico Granata authored
       - you can use a Python script to write a summary string for data-types, in one of
         three ways:
          -P option and typing the script a line at a time
          -s option and passing a one-line Python script
          -F option and passing the name of a Python function
         these options all work for the "type summary add" command
         your Python code (if provided through -P or -s) is wrapped in a function
         that accepts two parameters: valobj (a ValueObject) and dict (an LLDB
         internal dictionary object). if you use -F and give a function name,
         you're expected to define the function on your own and with the right
         prototype. your function, however defined, must return a Python string
       - test case for the Python summary feature
       - a few quirks:
        Python summaries cannot have names, and cannot use regex as type names
        both issues will be fixed ASAP
      major redesign of type summary code:
       - type summary working with strings and type summary working with Python code
         are two classes, with a common base class SummaryFormat
       - SummaryFormat classes now are able to actively format objects rather than
         just aggregating data
       - cleaner code to print descriptions for summaries
      the public API now exports a method to easily navigate a ValueObject hierarchy
      New InputReaderEZ and PriorityPointerPair classes
      Several minor fixes and improvements
      
      llvm-svn: 135238
      f2bbf717
    • Johnny Chen's avatar
    • Johnny Chen's avatar
      Add usage docstrings to SBTarget, SBProcess, and SBThread. · e625325d
      Johnny Chen authored
      llvm-svn: 135221
      e625325d
    • Johnny Chen's avatar
      Minor change of variable name, from m to b (for breakpoint). · b3f07c19
      Johnny Chen authored
      llvm-svn: 135214
      b3f07c19
    • Johnny Chen's avatar
      Fixed a crasher where entering 'help disasm' on the command line would crash lldb. · 331eff39
      Johnny Chen authored
      The reasom of the crash is because of a missing entry in the argument table corresponding to eArgTypeUnsignedInteger.
      Add such entry and modify the call site of the crash to go through a fail-fast API to retrieve the argument table.
      
      Add a regression test to TestHelp.py.
      
      llvm-svn: 135206
      331eff39
  3. Jul 14, 2011
  4. Jul 13, 2011
  5. Jul 12, 2011
    • Greg Clayton's avatar
      Added the ability to _not_ skip the prologue when settings breakpoints · d16e1e59
      Greg Clayton authored
      by name by adding an extra parameter to the lldb_private::Target breakpoint 
      setting functions.
      
      Added a function in the DWARF symbol file plug-in that can dump errors
      and prints out which DWARF file the error is happening in so we can track
      down what used to be assertions easily.
      
      Fixed the MacOSX kernel plug-in to properly read the kext images and set
      the kext breakpoint to watch for kexts as they are loaded.
      
      llvm-svn: 134990
      d16e1e59
    • Jim Ingham's avatar
      Added "command history" command to dump the command history. · a5a97ebe
      Jim Ingham authored
      Also made:
      (lldb) !<NUM>
      (lldb) !-<NUM>
      (lldb) !!
      
      work with the history.  For added benefit:
      
      (lldb) !<NUM><TAB>
      
      will insert the command at position <NUM> in the history into the command line to be edited.
      
      This is only partial, I still need to sync up editline's history list with the one kept by the interpreter.
      
      llvm-svn: 134955
      a5a97ebe
    • Enrico Granata's avatar
      test case for the named summaries feature · d62e57fb
      Enrico Granata authored
      llvm-svn: 134944
      d62e57fb
    • Enrico Granata's avatar
      named summaries: · f9fa6ee5
      Enrico Granata authored
       - a new --name option for "type summary add" lets you give a name to a summary
       - a new --summary option for "frame variable" lets you bind a named summary to one or more variables
      ${var%s} now works for printing the value of 0-terminated CStrings
      type format test case now tests for cascading
       - this is disabled on GCC because GCC may end up stripping typedef chains, basically breaking cascading
      new design for the FormatNavigator class
      new template class CleanUp2 meant to support cleanup routines with 1 additional parameter beyond resource handle
      
      llvm-svn: 134943
      f9fa6ee5
    • Johnny Chen's avatar
      Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path,... · 1d3e880c
      Johnny Chen authored
      Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path, stdout_path, and stderr_path
      is just wrong and resulted in the inferior's output getting mixed into the GDB remote communication's
      log file.  Change all test cases to not pass os.ctermid() and either use SBTarget.LaunchSimple() or
      SBTarget.Launch() and pass None as stdin_path/stdout_path/srderr_path to use a pseudo terminal.
      
      rdar://problem/9716499 program output is getting mixed into the GDB remote communications
      
      llvm-svn: 134940
      1d3e880c
  6. Jul 11, 2011
Loading