From 1c2388c6997ba35e1cd75d10fd44f8a43afc8acd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 29 Jun 2000 15:48:59 +0000 Subject: Patch from Eric Valette to make librdbg work with the new RPC code. --- c/src/librdbg/src/rdbg.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'c') diff --git a/c/src/librdbg/src/rdbg.c b/c/src/librdbg/src/rdbg.c index a7288550a4..be12dd8f50 100644 --- a/c/src/librdbg/src/rdbg.c +++ b/c/src/librdbg/src/rdbg.c @@ -16,6 +16,10 @@ #include #include #include +#include +#include +#include +#include u_short rtemsPort = RTEMS_PORT; int BackPort = RTEMS_BACK_PORT; @@ -67,20 +71,18 @@ rdbgInit (void) return -3; } rtemsSock = sock; + if (!svc_register(rtemsXprt, REMOTEDEB, REMOTEVERS, remotedeb_2, 0)) { + printf(stderr, "unable to register (REMOTEDEB, REMOTEVERS, udp)."); + return -4; + } + return 0; } rtems_task rdbgDaemon (rtems_task_argument argument) { - for (;;){ - - if (TotalReboot == 1){ - rtemsReboot(); - } - - svc_processrequest( rtemsXprt, REMOTEDEB, REMOTEVERS, remotedeb_2); - } + svc_run(); } void -- cgit v1.2.3