OSDN Git Service

gdb
authortromey <tromey>
Tue, 2 Feb 2010 16:45:15 +0000 (16:45 +0000)
committertromey <tromey>
Tue, 2 Feb 2010 16:45:15 +0000 (16:45 +0000)
commit677024d73489e948b02d51c1805e93773c0d2b00
treebe0608d0cfaf3c0ee81977aa9b87944c7d6fdc67
parent49c7b4239d3d142da3ae645ec15c8629b390a636
gdb
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
* valops.c (search_struct_field): Compute nbases after calling
CHECK_TYPEDEF.
(check_field): Call CHECK_TYPEDEF.
* cp-valprint.c (cp_print_value): Pass correct address to
baseclass_offset.  Fix check for virtual base past the end of the
object.  Don't offset address passed to cp_print_value_fields or
apply_val_pretty_printer.
(cp_print_value_fields): Fix call to val_print.
(cp_print_value_fields_rtti): New function.
* c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
* p-valprint.c (pascal_object_print_value_fields): Fix call to
val_print.
* python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
offset to address.
* language.h (struct language_defn) <la_val_print>: Document.
* c-lang.h (cp_print_value_fields_rtti): Declare.
gdb/testsuite
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
* gdb.cp/virtbase.cc: New file.
* gdb.cp/virtbase.exp: New file.
* gdb.cp/userdef.exp: Allow 'struct' or 'class'.
gdb/ChangeLog
gdb/c-lang.h
gdb/c-valprint.c
gdb/cp-valprint.c
gdb/language.h
gdb/python/py-prettyprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/userdef.exp
gdb/testsuite/gdb.cp/virtbase.cc [new file with mode: 0644]
gdb/testsuite/gdb.cp/virtbase.exp [new file with mode: 0644]
gdb/valops.c