Patch from Eric Valette <valette@crf.canon.fr> to make librdbg work

with the new RPC code.
This commit is contained in:
Joel Sherrill
2000-06-29 15:48:05 +00:00
parent 5f3ad6a89d
commit 14b4125f3c

View File

@@ -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