summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 15:48:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 15:48:05 +0000
commit14b4125f3c285c7595ebb8b7c27a4abe03cbc1d8 (patch)
tree42609094a7676c13deb6cf5080930a120edc304e /c
parentPatch from Chris Johns <cjohns@cybertec.com.au> and (diff)
downloadrtems-14b4125f3c285c7595ebb8b7c27a4abe03cbc1d8.tar.bz2
Patch from Eric Valette <valette@crf.canon.fr> to make librdbg work
with the new RPC code.
Diffstat (limited to 'c')
-rw-r--r--c/src/librdbg/src/rdbg.c18
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