PR gdb/13483
authorKeith Seitz <keiths@redhat.com>
Mon, 10 Sep 2012 17:12:53 +0000 (17:12 +0000)
committerKeith Seitz <keiths@redhat.com>
Mon, 10 Sep 2012 17:12:53 +0000 (17:12 +0000)
commit5b4f6e25c3d9e1d51c35ca0d5000ea0b32b26a81
tree01804b106dd08a6ae2f5eb014cc7b573bb4066b0
parent6d2920c847e9f9719d30f38ae94a8cce221edd97
PR gdb/13483
* gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
(BOOL_CONVERSION_BADNESS): ... this.
* gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
(rank_one_type): Allow all boolean conversions
permitted by the standard.

* gdb.cp/converts.cc (A::A): Add ctor.
(A::member_): Add member.
(enum my_enum): New enumeration.
(main): Add calls to foo1_7 with various
permitted arguments.
* gdb.cp/converts.exp: Add tests for boolean
conversions permitted by the standard.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/converts.cc
gdb/testsuite/gdb.cp/converts.exp