This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13483] gdb not taking 0 for pointer and boolean values


http://sourceware.org/bugzilla/show_bug.cgi?id=13483

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-09-10 17:13:01 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kseitz@sourceware.org    2012-09-10 17:12:53

Modified files:
    gdb            : ChangeLog gdbtypes.h gdbtypes.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.cp: converts.cc converts.exp 

Log message:
    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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14645&r2=1.14646
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbtypes.h.diff?cvsroot=src&r1=1.171&r2=1.172
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbtypes.c.diff?cvsroot=src&r1=1.241&r2=1.242
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3362&r2=1.3363
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/converts.cc.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/converts.exp.diff?cvsroot=src&r1=1.7&r2=1.8

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]