The wrapper uo_redirect seems like it should return the return value
from of implementation function, since callers rely on it, but it
doesn't.
gdb/ChangeLog:
* ui-out.c (uo_redirect): Return the return value from the
implementation function.
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (uo_redirect): Return the return value from the
+ implementation function.
+
2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
* ui-out.c (ui_out_destroy, uo_data_destroy): Remove.
{
if (!uiout->impl->redirect)
return -1;
- uiout->impl->redirect (uiout, outstream);
- return 0;
+ return uiout->impl->redirect (uiout, outstream);
}
/* local functions */