From dd8e4b760b6b86a49be79f04a29fa7be20e11b92 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 30 Apr 2018 09:09:27 +0200 Subject: libdebugger: Move to separate library Always build remote TCP support since it depends only on the POSIX socket API. It works with the legacy network stack and libbsd. Move it to a separate libdebugger.a library to allow an easy use with libbsd via "-ldebugger -lbsd" otherwise we would have a cyclic dependency between libbsd.a and librtemscpu.a. Update #3419. --- cpukit/libdebugger/rtems-debugger-remote-tcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libdebugger/rtems-debugger-remote-tcp.c') diff --git a/cpukit/libdebugger/rtems-debugger-remote-tcp.c b/cpukit/libdebugger/rtems-debugger-remote-tcp.c index b62f3a1f52..696e2deb8c 100644 --- a/cpukit/libdebugger/rtems-debugger-remote-tcp.c +++ b/cpukit/libdebugger/rtems-debugger-remote-tcp.c @@ -1,6 +1,5 @@ /* - * Copyright (c) 2016 Chris Johns . - * All rights reserved. + * Copyright (c) 2016 Chris Johns . All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -38,7 +37,7 @@ #include #include -#include "rtems-debugger-remote-tcp.h" +#include /** * Debugger default server port. 'RT' as ASCII. @@ -277,6 +276,7 @@ tcp_remote_disconnect(rtems_debugger_remote* remote) tcp = (rtems_debugger_remote_tcp*) remote->data; close(tcp->fd); + tcp->fd = -1; rtems_debugger_unlock(); -- cgit v1.2.3