Changeset 1c2388c6 in rtems for c/src/librdbg/src/rdbg.c


Ignore:
Timestamp:
06/29/00 15:48:59 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9b6d173
Parents:
dedb090f
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

    rdedb090f r1c2388c6  
    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.