diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-29 15:48:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-29 15:48:59 +0000 |
commit | 1c2388c6997ba35e1cd75d10fd44f8a43afc8acd (patch) | |
tree | f9a1a85bc02452d04e9d8efc20a352378d483594 | |
parent | Patch rtems-rc-20000627-2 from Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-1c2388c6997ba35e1cd75d10fd44f8a43afc8acd.tar.bz2 |
Patch from Eric Valette <valette@crf.canon.fr> to make librdbg work
with the new RPC code.
Diffstat (limited to '')
-rw-r--r-- | c/src/librdbg/src/rdbg.c | 18 |
1 files changed, 10 insertions, 8 deletions
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 <rtems/error.h> #include <rdbg/rdbg.h> #include <rdbg/servrpc.h> +#include <rtems/rtems_bsdnet.h> +#include <rpc/pmap_clnt.h> +#include <sys/socket.h> +#include <netinet/in.h> 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 |