gdb/
authorPedro Alves <palves@redhat.com>
Wed, 2 Feb 2011 17:41:54 +0000 (17:41 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 2 Feb 2011 17:41:54 +0000 (17:41 +0000)
commit580688f393b43a7456e3bf2857da9c5401e8954f
tree0a3e410d5f8c8057b923342ff003021d3e290495
parent3d2c1d41d4b6cdaa6052ddfd99b0745cc70c9cbb
gdb/
* c-valprint.c (c_value_print): When doing virtual base pointer
adjustment, create a new value with adjusted contents rather than
changing the contents of the value being printed (and getting it
wrong).

gdb/testsuite/
* gdb.cp/virtbase.cc (VirtualBase, VirtualMiddleA, VirtualMiddleB)
(Virtual): New structs.
(virtual_o, virtual_middle_b): New globals.
* gdb.cp/virtbase.exp: New tests.
gdb/ChangeLog
gdb/c-valprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/virtbase.cc
gdb/testsuite/gdb.cp/virtbase.exp
This page took 0.028707 seconds and 4 git commands to generate.