Skip to content
  1. Aug 22, 2012
    • Greg Clayton's avatar
      Reimplemented the code that backed the "settings" in lldb. There were many... · 67cc0636
      Greg Clayton authored
      Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation:
      - no setting auto completion
      - very manual and error prone way of getting/setting variables
      - tons of code duplication
      - useless instance names for processes, threads
      
      Now settings can easily be defined like option values. The new settings makes use of the "OptionValue" classes so we can re-use the option value code that we use to set settings in command options. No more instances, just "does the right thing".
      
      llvm-svn: 162366
      67cc0636
  2. Oct 31, 2011
  3. Sep 21, 2011
    • Jim Ingham's avatar
      Add a new breakpoint type "break by source regular expression". · 969795f1
      Jim Ingham authored
      Fix the RegularExpression class so it has a real copy constructor.
      Fix the breakpoint setting with multiple shared libraries so it makes
        one breakpoint not one per shared library.
      Add SBFileSpecList, to be used to expose the above to the SB interface (not done yet.)
      
      llvm-svn: 140225
      969795f1
  4. Jul 02, 2011
    • Enrico Granata's avatar
      several improvements to "type summary": · 0a3958e0
      Enrico Granata authored
       - type names can now be regular expressions (exact matching is done first, and is faster)
       - integral (and floating) types can be printed as bitfields, i.e. ${var[low-high]} will extract bits low thru high of the value and print them
       - array subscripts are supported, both for arrays and for pointers. the syntax is ${*var[low-high]}, or ${*var[]} to print the whole array (the latter only works for statically sized arrays)
       - summary is now printed by default when a summary string references a variable. if that variable's type has no summary, value is printed instead. to force value, you can use %V as a format specifier
       - basic support for ObjectiveC:
        - ObjectiveC inheritance chains are now walked through
        - %@ can be specified as a summary format, to print the ObjectiveC runtime description for an object
       - some bug fixes
      
      llvm-svn: 134293
      0a3958e0
  5. Dec 19, 2010
    • Greg Clayton's avatar
      Improved our argument parsing abilities to be able to handle stuff more like · 6ad07dd9
      Greg Clayton authored
      a shell would interpret it. A few examples that we now handle correctly
      
      INPUT: "Hello "world
      OUTPUT: "Hello World"
      
      INPUT: "Hello "' World'
      OUTPUT: "Hello World"
      
      INPUT: Hello" World"
      OUTPUT: "Hello World"
      
      This broke the setting of dictionary values for the "settings set" command
      for things like:
      
      (lldb) settings set target.process.env-vars ["MY_ENV_VAR"]=YES
      
      since we would drop the quotes. I fixed the user settings controller to use
      a regular expression so it can accept any of the following inputs for
      dictionary setting:
      
      settings set target.process.env-vars ["MY_ENV_VAR"]=YES
      settings set target.process.env-vars [MY_ENV_VAR]=YES
      settings set target.process.env-vars MY_ENV_VAR=YES
      
      We might want to eventually drop the first two syntaxes, but I won't make
      that decision right now.
      
      This allows more natural setting of the envirorment variables:
      
      settings set target.process.env-vars MY_ENV_VAR=YES ABC=DEF CWD=/tmp
      
      llvm-svn: 122166
      6ad07dd9
  6. Oct 11, 2010
    • Greg Clayton's avatar
      Added the ability to get error strings back from failed · 46747022
      Greg Clayton authored
      lldb_private::RegularExpression compiles and matches with:
      
          size_t
          RegularExpression::GetErrorAsCString (char *err_str, 
                                                size_t err_str_max_len) const;
          
      Added the ability to search a variable list for variables whose names match
      a regular expression:
      
          size_t
          VariableList::AppendVariablesIfUnique (const RegularExpression& regex, 
                                                 VariableList &var_list, 
                                                 size_t& total_matches);
      
      
      Also added the ability to append a variable to a VariableList only if it is 
      not already in the list:
      
          bool
          VariableList::AddVariableIfUnique (const lldb::VariableSP &var_sp);
      
      Cleaned up the "frame variable" command:
      - Removed the "-n NAME" option as this is the default way for the command to
        work.
      - Enable uniqued regex searches on variable names by fixing the "--regex RE"
        command to work correctly. It will match all variables that match any
        regular expressions and only print each variable the first time it matches.
      - Fixed the option type for the "--regex" command to by eArgTypeRegularExpression
        instead of eArgTypeCount
      
      llvm-svn: 116178
      46747022
  7. Jul 21, 2010
  8. Jun 09, 2010
  9. Jun 08, 2010
Loading