From 580688f393b43a7456e3bf2857da9c5401e8954f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 2 Feb 2011 17:41:54 +0000 Subject: 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa694be..b57bbdf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2011-02-02 Pedro Alves + * 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). + +2011-02-02 Pedro Alves + * xml-support.c (xml_find_attribute): New. (xinclude_start_include): Use it. * xml-support.h (xml_find_attribute): Declare. -- cgit v1.1