forked from Imagelibrary/rtems
Patch from Eric Valette <valette@crf.canon.fr> to make librdbg work
with the new RPC code.
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
#include <rtems/error.h>
|
#include <rtems/error.h>
|
||||||
#include <rdbg/rdbg.h>
|
#include <rdbg/rdbg.h>
|
||||||
#include <rdbg/servrpc.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;
|
u_short rtemsPort = RTEMS_PORT;
|
||||||
int BackPort = RTEMS_BACK_PORT;
|
int BackPort = RTEMS_BACK_PORT;
|
||||||
@@ -67,20 +71,18 @@ rdbgInit (void)
|
|||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
rtemsSock = sock;
|
rtemsSock = sock;
|
||||||
|
if (!svc_register(rtemsXprt, REMOTEDEB, REMOTEVERS, remotedeb_2, 0)) {
|
||||||
|
printf(stderr, "unable to register (REMOTEDEB, REMOTEVERS, udp).");
|
||||||
|
return -4;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_task
|
rtems_task
|
||||||
rdbgDaemon (rtems_task_argument argument)
|
rdbgDaemon (rtems_task_argument argument)
|
||||||
{
|
{
|
||||||
for (;;){
|
svc_run();
|
||||||
|
|
||||||
if (TotalReboot == 1){
|
|
||||||
rtemsReboot();
|
|
||||||
}
|
|
||||||
|
|
||||||
svc_processrequest( rtemsXprt, REMOTEDEB, REMOTEVERS, remotedeb_2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user