Changeset 14b4125 in rtems


Ignore:
Timestamp:
Jun 29, 2000, 3:48:05 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
5aac7bc
Parents:
5f3ad6a
Message:

Patch from Eric Valette <valette@…> to make librdbg work
with the new RPC code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/librdbg/src/rdbg.c

    r5f3ad6a r14b4125  
    1717#include <rdbg/rdbg.h>
    1818#include <rdbg/servrpc.h>
     19#include <rtems/rtems_bsdnet.h>
     20#include <rpc/pmap_clnt.h>
     21#include <sys/socket.h>
     22#include <netinet/in.h>
    1923
    2024u_short  rtemsPort = RTEMS_PORT;
     
    6872    }
    6973    rtemsSock = sock;
     74    if (!svc_register(rtemsXprt, REMOTEDEB, REMOTEVERS, remotedeb_2, 0)) {
     75        printf(stderr, "unable to register (REMOTEDEB, REMOTEVERS, udp).");
     76        return -4;
     77    }
     78
    7079    return 0;
    7180}
     
    7483rdbgDaemon (rtems_task_argument argument)
    7584{
    76   for (;;){
    77 
    78     if (TotalReboot == 1){
    79       rtemsReboot();
    80     }
    81 
    82     svc_processrequest( rtemsXprt, REMOTEDEB, REMOTEVERS, remotedeb_2);
    83   }
     85  svc_run();
    8486}
    8587
Note: See TracChangeset for help on using the changeset viewer.