https://bugs.kde.org/show_bug.cgi?id=425026

            Bug ID: 425026
           Summary: who_points_at should report the field in the object
                    that does the pointing
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: noelgran...@gmail.com
  Target Milestone: ---

Assuming we have debug information, it would be nice if the

    (gdb) monitor who_points_at 0xsomething

command, could dig into the gdb typeinfo and report which field contains the
pointer value.

If that turns out to be too hard, a good second-option solution would be adding
an extra option

    (gdb) monitor who_points_at 0xsomething print

which 
(a) calculates the start address of the containing object
(b) finds out the type of the containting object (valgrind seems to know this
already)
(c) calls
    (gdb) print *(T *)0xsourceobject

which will make gdb print out the whole containing object.

Thanks

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to