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

            Bug ID: 360008
           Summary: Contents of Power vr registers contents is not printed
                    correctly when the --vgdb-shadow-registers=yes  option
                    is used.
           Product: valgrind
           Version: 3.12 SVN
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: callgrind
          Assignee: josef.weidendor...@gmx.de
          Reporter: c...@us.ibm.com

When the option --vgdb-shadow-registers=yes is specified while using gdb to
debug a user program running on Valgrind, the contents of the vr registers
(non-shadow) registers do not print out correctly.  I am seeing all zeros. 
Also, the shadow register prints as all zero which in my particular test case
is wrong.  I have put debug print statements into the code in
coregrind/m_gdbserver/valgrind-low-ppc64.c as well as enabling the debug print
in routine fetch_register() in coregrind/m_gdbserver/target.c to see the
contents of the specific vr register and corresponding shadow register that I
am interested in.  The debug prints show the correct values are in the
registers.  

Without the --vgdb-shadow-registers=yes option the vr registers contents is
printed correctly.  I have dug through the code and can't figure out why the
shadow option is causing the issue.  If there is someone who is familiar with
the code who could assist me in debugging the issue, I would appreciate the
help.

Reproducible: Always

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

Reply via email to