Skip to content
  1. Jul 16, 2015
    • Siva Chandra's avatar
      Add a class ValueObjectConstResultCast. · f8877efc
      Siva Chandra authored
      Summary:
      Other changes around the main change include:
      
      1. Add a method Cast to ValueObjectConstResult, ValueObjectConstResultImpl
      and ValueObjectConstResultChild.
      
      2. Add an argument |live_address| of type lldb::addr_t to the constructor
      of ValueObjectConstResultChild. This is passed on to the backing
      ValueObjectConstResultImpl object constructor so that the address of the
      child value can be calculated properly.
      
      Reviewers: granata.enrico, clayborg
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D11203
      
      llvm-svn: 242374
      f8877efc
  2. Nov 15, 2011
  3. Jul 23, 2011
    • Johnny Chen's avatar
      Add an additional formatter class RecursiveDecentFormatter which prints the · 36d7d916
      Johnny Chen authored
      value and the decendents.  For an example,
      
      rdf = lldbutil.RecursiveDecentFormatter(indent_child=2)
      print rdf.format(g_table)
      
      produces:
      
      (const char **[2]) g_table = 0x00000001055a80f0 (location)
        (const char **) [0] = 0x00000001055a8080
          (const char *) *[0] = "Sunday"
        (const char **) [1] = 0x00000001055a80c0
          (const char *) *[1] = "Monday"
      
      llvm-svn: 135815
      36d7d916
  4. Jul 22, 2011
    • Johnny Chen's avatar
      Add BasicFormatter and ChildVisitingFormatter utility classes to the lldbutil.py module · 989b7efd
      Johnny Chen authored
      which provide some convenient ways to print an SBValue object.  Use that in TestValueAPI.py
      to print the 'days_of_week' char* array variable.
      
      For an example:
      
      cvf = lldbutil.ChildVisitingFormatter(indent=2)
      print cvf.format(days_of_week)
      
      produces:
      
      (const char *[7]) days_of_week = 0x00000001026a5060 (location)
        (const char *) [0] = "Sunday"
        (const char *) [1] = "Monday"
        (const char *) [2] = "Tuesday"
        (const char *) [3] = "Wednesday"
        (const char *) [4] = "Thursday"
        (const char *) [5] = "Friday"
        (const char *) [6] = "Saturday"
      
      llvm-svn: 135736
      989b7efd
  5. Jul 16, 2011
Loading