server: revert commit 7e6556b3ca
With the removal of old tpiu code, commit 7e6556b3ca ("server:
permit the add_service function to return the created service")
http://openocd.zylin.com/5717/ can be reverted.
Fix also the new calls to add_service().
Change-Id: Ib7f2dfc6a9e829239e20313e0f121911085fdc00
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6031
Tested-by: jenkins
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
This commit is contained in:
@@ -697,7 +697,7 @@ static int jim_arm_tpiu_swo_enable(Jim_Interp *interp, int argc, Jim_Obj *const
|
||||
retval = add_service("tpiu_swo_trace", &obj->out_filename[1],
|
||||
CONNECTION_LIMIT_UNLIMITED, arm_tpiu_swo_service_new_connection,
|
||||
arm_tpiu_swo_service_input, arm_tpiu_swo_service_connection_closed,
|
||||
priv, NULL);
|
||||
priv);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_ERROR("Can't configure trace TCP port %s", &obj->out_filename[1]);
|
||||
return JIM_ERR;
|
||||
|
||||
@@ -207,8 +207,7 @@ int jsp_init(struct or1k_jtag *jtag_info, char *banner)
|
||||
jsp_new_connection,
|
||||
jsp_input,
|
||||
jsp_connection_closed,
|
||||
jsp_service,
|
||||
NULL);
|
||||
jsp_service);
|
||||
}
|
||||
|
||||
COMMAND_HANDLER(handle_jsp_port_command)
|
||||
|
||||
Reference in New Issue
Block a user