This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog target.c
- From: sergiodj at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Wed, 16 Oct 2013 02:41:43 +0000
- Subject: src/gdb ChangeLog target.c
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