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/16042] gdb/target.c fails to compile functions target_disable_btrace() and target_teardown_btrace()


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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    sergiodj@sourceware.org    2013-10-16 02:41:43

Modified files:
    gdb            : ChangeLog target.c 

Log message:
    This is a simple bug.  target_disable_btrace and target_teardown_btrace,
    both from gdb/target.c, do a "return" calling another function.  But both
    are marked as void.  Despite the fact that the functions being called are
    void as well, this is wrong.  This patch fixes this by calling the
functions
    and then returning in the next line.

    2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>

    PR gdb/16042
    * target.c (target_disable_btrace): Fix invalid return value for
    void function.
    (target_teardown_btrace): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.16103&r2=1.16104
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c.diff?cvsroot=src&r1=1.350&r2=1.351

-- 
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]