[Lldb-commits] [Bug 11618] New: lldb::SBValue::AddressOf does not work on dereferenced registers in synthetic children provider

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 19 13:05:50 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11618

             Bug #: 11618
           Summary: lldb::SBValue::AddressOf does not work on dereferenced
                    registers in synthetic children provider
           Product: lldb
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-commits at cs.uiuc.edu
        ReportedBy: nathanhowell at hotmail.com
    Classification: Unclassified


The AddressOf operator now works properly on integers and local variables but
doesn't seem to work with registers.

(lldb) register read r14
r14 = 0x0000000100504151

# works properly here using the value in the register
(lldb) print *(StgClosure*)0x0000000100504151
(StgClosure) $7 = {
  (StgInfoTable_) base_GHC.Arr_STArray_con_info = {
    (StgHalfWord) type = 1
    (char *) &description = 0x00000001000eceb0 "base:GHC.Arr.STArray"
  }
  (StgClosure) *arg0 = {
    (StgInfoTable_) ghc-prim_GHC.Types_I#_static_info = {
      (StgHalfWord) type = 8
      (char *) &description = 0x00000001000efeb8 "ghc-prim:GHC.Types.I#"
    }
    (unsigned long) arg0 = 0
  }
  (StgClosure) *arg1 = {
    (StgInfoTable_) ghc-prim_GHC.Types_I#_static_info = {
      (StgHalfWord) type = 8
      (char *) &description = 0x00000001000efeb8 "ghc-prim:GHC.Types.I#"
    }
    (unsigned long) arg0 = 64
  }
  (StgClosure) *arg2 = {
    (StgInfoTable_) stg_MUT_ARR_PTRS_DIRTY_info = {
      (StgHalfWord) type = 46
    }
  }
  (unsigned long) arg3 = 65
}

# but not when using the register directly
(lldb) print *(StgClosure*)$r14
Traceback (most recent call last):
  File "/Source/ghc-lldb/ghc.py", line 10, in __init__
    assert valobj.AddressOf(), 'valobj.AddressOf() == None'
AssertionError: valobj.AddressOf() == None
(StgClosure) $8 = {}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the lldb-commits mailing list