This is a simple bug. target_disable_btrace and target_teardown_btrace,
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 16 Oct 2013 02:41:42 +0000 (02:41 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 16 Oct 2013 02:41:42 +0000 (02:41 +0000)
commitd92f7ee31f8752821adac3785a8460d0f3d366ee
tree851da164970485643a316714a847d75f08f85694
parent26505cc0c4e4257c36df3e80507e531c8b1380e5
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.
gdb/ChangeLog
gdb/target.c