Skip to content
  1. Jul 10, 2011
  2. Jul 09, 2011
  3. Jul 08, 2011
  4. Jul 07, 2011
    • Johnny Chen's avatar
      Add SBValue::GetID() member method call API. · b0b8be75
      Johnny Chen authored
      llvm-svn: 134636
      b0b8be75
    • Enrico Granata's avatar
    • Greg Clayton's avatar
      Stop the lldb_private::RegularExpression class from implicitly · 1d4313b2
      Greg Clayton authored
      constructing itself and causing unexpected things to happen
      in LLDB.
      
      llvm-svn: 134598
      1d4313b2
    • Greg Clayton's avatar
      Centralize the variable display prefs into a new option · 715c2365
      Greg Clayton authored
      group class: OptionGroupVariable. It gets initialized with
      a boolean that indicates if the frame specific options are
      included so that this can be used in both the "frame variable"
      and "target variable" commands.
      
      Removed the global functionality from the "frame variable" 
      command. Users should switch to using the "target variable"
      command.
      
      llvm-svn: 134594
      715c2365
    • Greg Clayton's avatar
      Added "target variable" command that allows introspection of global · 644247c1
      Greg Clayton authored
      variables prior to running your binary. Zero filled sections now get
      section data correctly filled with zeroes when Target::ReadMemory
      reads from the object file section data.
      
      Added new option groups and option values for file lists. I still need
      to hook up all of the options to "target variable" to allow more complete
      introspection by file and shlib.
      
      Added the ability for ValueObjectVariable objects to be created with
      only the target as the execution context. This allows them to be read
      from the object files through Target::ReadMemory(...). 
      
      Added a "virtual Module * GetModule()" function to the ValueObject
      class. By default it will look to the parent variable object and
      return its module. The module is needed when we have global variables
      that have file addresses (virtual addresses that are specific to
      module object files) and in turn allows global variables to be displayed
      prior to running.
      
      Removed all of the unused proxy object support that bit rotted in 
      lldb_private::Value.
      
      Replaced a lot of places that used "FileSpec::Compare (lhs, rhs) == 0" code
      with the more efficient "FileSpec::Equal (lhs, rhs)".
      
      Improved logging in GDB remote plug-in.
      
      llvm-svn: 134579
      644247c1
    • Enrico Granata's avatar
      new detailed descriptions for type summary add and type format add · 82a7d983
      Enrico Granata authored
      some changes to the help system code for better display of long help text
      -p and -r flags now also work for type format add
      
      llvm-svn: 134574
      82a7d983
  5. Jul 06, 2011
    • Enrico Granata's avatar
      bug fix in summary strings: · a7187d00
      Enrico Granata authored
      - ${*var[].something} was not working as expected
      options -p and -r now also work for type format add
      
      llvm-svn: 134523
      a7187d00
    • Greg Clayton's avatar
      Fixed an issue that was causing us to crash when evaluating expressions for · dd0649bc
      Greg Clayton authored
      objective C or C++ methods when "self" or "this" were in scope, but had 
      invalid locations in a DWARF location list. The lack of a valid value caused
      us to use an invalid type value and then we tried to import that invalid 
      value and we would crash.
      
      llvm-svn: 134518
      dd0649bc
    • Jim Ingham's avatar
      Set the EvaluationPoint's m_thread_id to the RIGHT invalid define... · 89b6109b
      Jim Ingham authored
      llvm-svn: 134505
      89b6109b
    • Greg Clayton's avatar
      Made the string representation for a SBValue return what "frame variable" · 262f80df
      Greg Clayton authored
      would return instead of a less than helpful "name: '%s'" description.
      
      Make sure that when we ask for the error from a ValueObject object we
      first update the value if needed.
      
      Cleaned up some SB functions to use internal functions and not re-call
      through the public API when possible.
      
      llvm-svn: 134497
      262f80df
    • Enrico Granata's avatar
      Fixed some format names · e443ba73
      Enrico Granata authored
      llvm-svn: 134492
      e443ba73
    • Greg Clayton's avatar
      Fixed some issues with ARM backtraces by not processing any push/pop · 34132754
      Greg Clayton authored
      instructions if they are conditional. Also fixed issues where the PC wasn't
      getting bit zero stripped for ARM targets when a stack frame was thumb. We
      now properly call through the GetOpcodeLoadAddress() functions to make sure
      the addresses are properly stripped for any targets that may decorate up
      their addresses.
      
      We now don't pass the SIGSTOP signals along. We can revisit this soon, but
      currently this was interfering with debugging some older ARM targets that
      don't have vCont support in the GDB server.
      
      llvm-svn: 134461
      34132754
    • Enrico Granata's avatar
      new syntax for summary strings: · 9fc1944e
      Enrico Granata authored
       - ${*expr} now simply means to dereference expr before actually using it
       - bitfields, array ranges and pointer ranges now work in a (hopefully) more natural and language-compliant way
      a new class TypeHierarchyNavigator replicates the behavior of the FormatManager in going through type hierarchies
      when one-lining summary strings, children's summaries can be used as well as values
      
      llvm-svn: 134458
      9fc1944e
  6. Jul 03, 2011
  7. Jul 02, 2011
    • Greg Clayton's avatar
      Cleanup errors that come out of commands and make sure they all have newlines · 197bacff
      Greg Clayton authored
      _only_ in the resulting stream, not in the error objects (lldb_private::Error).
      lldb_private::Error objects should always just have an error string with no 
      terminating newline characters or periods.
      
      Fixed an issue with GDB remote packet detection that could end up deadlocking
      if a full packet wasn't received in one chunk. Also modified the packet 
      checking function to properly toss one or more bytes when it detects bad
      data. 
      
      llvm-svn: 134357
      197bacff
    • Peter Collingbourne's avatar
      Fix Linux build errors · f52f0502
      Peter Collingbourne authored
      llvm-svn: 134347
      f52f0502
    • 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
  8. Jun 30, 2011
    • Greg Clayton's avatar
      Centralize all of the type name code so that we always strip the leading · e3055942
      Greg Clayton authored
      "struct ", "class ", and "union " from the start of any type names that are
      extracted from clang QualType objects. I had to fix test suite cases that
      were expecting the struct/union/class prefix to be there.
      
      llvm-svn: 134132
      e3055942
    • Enrico Granata's avatar
      This commit adds a new top subcommand "summary" to command type named "type".... · 4becb37e
      Enrico Granata authored
      This commit adds a new top subcommand "summary" to command type named "type". Currently this command
      implements three commands:
      
      type summary add <format> <typename1> [<typename2> ...]
      type summary delete <typename1> [<typename2> ...]
      type summary list [<typename1> [<typename2>] ...]
      type summary clear
      
      This allows you to specify the default format that will be used to display
      summaries for variables, shown when you use "frame variable" or "expression", or the SBValue classes.
      
      Examples:
      type summary add "x = ${var.x}" Point
      
      type summary list
      
      type summary add --one-liner SimpleType
      
      llvm-svn: 134108
      4becb37e
    • Greg Clayton's avatar
      Added support for finding and global variables in the SBTarget and SBModule · dea8cb4f
      Greg Clayton authored
      level in the public API. 
      
      Also modified the ValueObject values to be able to display global variables
      without having a valid running process. The globals will read themselves from
      the object file section data if there is no process, and from the process if
      there is one.
      
      Also fixed an issue where modifications for dynamic types could cause child
      values of ValueObjects to not show up if the value was unable to evaluate
      itself (children of NULL pointer objects).
      
      llvm-svn: 134102
      dea8cb4f
  9. Jun 29, 2011
    • Johnny Chen's avatar
      Add fuzz calls to SBType, SBValue, and SBValueList. · 6999f866
      Johnny Chen authored
      Fixed crashes for SBValue fuzz calls.
      And change 'bool SBType::IsPointerType(void)' to
      'bool SBType::IsAPointerType(void)' to avoid name collision with the static 'bool SBType::IsPointerType(void *)'
      function, which SWIG cannot handle.
      
      llvm-svn: 134096
      6999f866
Loading