Changeset db2cc456 in rtems


Ignore:
Timestamp:
Jan 18, 2002, 1:56:48 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4e91814b
Parents:
cdf5a5b4
Message:

2001-01-18 Joel Sherrill <joel@…>

  • src/powerpc/new_exception_processing/remdeb.h, src/powerpc/new_exception_processing/remdeb_xdr.c: Regenerated since I updated the main RTEMS development machine to RedHat? 7.2 and apparently got a new version of rpcgen.
Location:
c/src/librdbg
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/librdbg/ChangeLog

    rcdf5a5b4 rdb2cc456  
     12001-01-18      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/powerpc/new_exception_processing/remdeb.h,
     4        src/powerpc/new_exception_processing/remdeb_xdr.c: Regenerated since
     5        I updated the main RTEMS development machine to RedHat 7.2 and
     6        apparently got a new version of rpcgen.
     7
    182001-10-30      Victor V. Vengerov <vvv@oktet.ru>
    29
  • c/src/librdbg/src/powerpc/new_exception_processing/remdeb.h

    rcdf5a5b4 rdb2cc456  
    1717#define RTEMS_BACK_PORT 2073
    1818#ifndef REMDEB_H
    19 #define RPCGENSRVNAME(a)     a
     19#define RPCGENSRVNAME(a) a
    2020
    2121enum rpc_type {
     
    100100/* now define register macros to apply to xdr_regs struct */
    101101
    102 #define R_PC            0
    103 #define R_MSR           1
    104 #define R_EXCEPNB       2
    105 #define R_R0            3
    106 #define R_R1    (R_R0 + 1)
    107 #define R_R2    (R_R0 + 2)
    108 #define R_R3    (R_R0 + 3)
    109 #define R_R4    (R_R0 + 4)
    110 #define R_R5    (R_R0 + 5)
    111 #define R_R6    (R_R0 + 6)
    112 #define R_R7    (R_R0 + 7)
    113 #define R_R8    (R_R0 + 8)
    114 #define R_R9    (R_R0 + 9)
    115 #define R_R10   (R_R0 + 10)
    116 #define R_R11   (R_R0 + 11)
    117 #define R_R12   (R_R0 + 12)
    118 #define R_R13   (R_R0 + 13)
    119 #define R_R14   (R_R0 + 14)
    120 #define R_R15   (R_R0 + 15)
    121 #define R_R16   (R_R0 + 16)
    122 #define R_R17   (R_R0 + 17)
    123 #define R_R18   (R_R0 + 18)
    124 #define R_R19   (R_R0 + 19)
    125 #define R_R20   (R_R0 + 20)
    126 #define R_R21   (R_R0 + 21)
    127 #define R_R22   (R_R0 + 22)
    128 #define R_R23   (R_R0 + 23)
    129 #define R_R24   (R_R0 + 24)
    130 #define R_R25   (R_R0 + 25)
    131 #define R_R26   (R_R0 + 26)
    132 #define R_R27   (R_R0 + 27)
    133 #define R_R28   (R_R0 + 28)
    134 #define R_R29   (R_R0 + 29)
    135 #define R_R30   (R_R0 + 30)
    136 #define R_R31   (R_R0 + 31)
    137 #define R_CR    35
    138 #define R_CTR   36
    139 #define R_XER   37
    140 #define R_LR    38
    141 #define R_MQ    39
     102#define R_PC 0
     103#define R_MSR 1
     104#define R_EXCEPNB 2
     105#define R_R0 3
     106#define R_R1 (R_R0 + 1)
     107#define R_R2 (R_R0 + 2)
     108#define R_R3 (R_R0 + 3)
     109#define R_R4 (R_R0 + 4)
     110#define R_R5 (R_R0 + 5)
     111#define R_R6 (R_R0 + 6)
     112#define R_R7 (R_R0 + 7)
     113#define R_R8 (R_R0 + 8)
     114#define R_R9 (R_R0 + 9)
     115#define R_R10 (R_R0 + 10)
     116#define R_R11 (R_R0 + 11)
     117#define R_R12 (R_R0 + 12)
     118#define R_R13 (R_R0 + 13)
     119#define R_R14 (R_R0 + 14)
     120#define R_R15 (R_R0 + 15)
     121#define R_R16 (R_R0 + 16)
     122#define R_R17 (R_R0 + 17)
     123#define R_R18 (R_R0 + 18)
     124#define R_R19 (R_R0 + 19)
     125#define R_R20 (R_R0 + 20)
     126#define R_R21 (R_R0 + 21)
     127#define R_R22 (R_R0 + 22)
     128#define R_R23 (R_R0 + 23)
     129#define R_R24 (R_R0 + 24)
     130#define R_R25 (R_R0 + 25)
     131#define R_R26 (R_R0 + 26)
     132#define R_R27 (R_R0 + 27)
     133#define R_R28 (R_R0 + 28)
     134#define R_R29 (R_R0 + 29)
     135#define R_R30 (R_R0 + 30)
     136#define R_R31 (R_R0 + 31)
     137#define R_CR 35
     138#define R_CTR 36
     139#define R_XER 37
     140#define R_LR 38
     141#define R_MQ 39
    142142
    143143#include <libcpu/raw_exception.h>
    144144
    145 #define REG_PC tabreg[R_PC]     /* PC register offset */
    146 #define REG_SP tabreg[R_R1]    /* SP register offset */
    147 #define REG_FP tabreg[R_R1]    /* SP register offset (no FP on PPC) */
    148 #define BREAK_SIZE     4      /* Breakpoint occupies 4 bytes */
    149 #define BREAK_ADJ      0      /* Nothing to subtract from address after bp */
    150 #define IS_BREAK(l)    ((l) == 0x7d8d6808)
    151 #define SET_BREAK(l)   (0x7d8d6808)
     145#define REG_PC tabreg[R_PC] /* PC register offset */
     146#define REG_SP tabreg[R_R1] /* SP register offset */
     147#define REG_FP tabreg[R_R1] /* SP register offset (no FP on PPC) */
     148#define BREAK_SIZE 4 /* Breakpoint occupies 4 bytes */
     149#define BREAK_ADJ 0 /* Nothing to subtract from address after bp */
     150#define IS_BREAK(l) ((l) == 0x7d8d6808)
     151#define SET_BREAK(l) (0x7d8d6808)
    152152#define ORG_BREAK(c,p) (p)
    153 #define IS_STEP(regs)  (regs.tabreg[R_EXCEPNB] == ASM_TRACE_VECTOR) /* Was step and not break */
    154 #define TARGET_PROC_TYPE  3
     153#define IS_STEP(regs) (regs.tabreg[R_EXCEPNB] == ASM_TRACE_VECTOR) /* Was step and not break */
     154#define TARGET_PROC_TYPE 3
    155155#define MAXDEBUGGEE 150
    156156#define NAMEMAX 17
    157   /*
     157 /*
    158158   * Memory data for read/write text or data. The size is in data. The target
    159159   * addr is in the addr field.
     
    255255#ifndef XRY_MAX_CMD_STR
    256256#define XRY_MAX_CMD_STR 320
    257 #endif  /* REMDEB_H */
     257#endif /* REMDEB_H */
    258258
    259259struct xry_inst {
     
    284284typedef char *one_arg;
    285285#define XRY_MAX_OBJ_NAME 32
    286   /* now open_connex() routine which establishes a connection to server */
     286 /* now open_connex() routine which establishes a connection to server */
    287287
    288288enum debug_type {
     
    293293};
    294294typedef enum debug_type debug_type;
    295 #define DEBUGGER_IS_GDB 0x2    /* */
     295#define DEBUGGER_IS_GDB 0x2 /* */
    296296
    297297struct open_in {
     
    313313};
    314314typedef struct open_out open_out;
    315   /* now close_connex() routine which detaches from server */
     315 /* now close_connex() routine which detaches from server */
    316316
    317317enum close_control {
     
    326326};
    327327typedef struct close_in close_in;
    328   /* now send_signal() routine which sends signals to processes like kill(2) */
     328 /* now send_signal() routine which sends signals to processes like kill(2) */
    329329
    330330struct signal_in {
     
    339339};
    340340typedef struct signal_out signal_out;
    341   /* now wait_info() routine which returns results of polling the wait status
     341 /* now wait_info() routine which returns results of polling the wait status
    342342        of a process/actor. It may return 0 if running, else pid or -1 */
    343343
     
    374374};
    375375typedef struct wait_out wait_out;
    376   /* now ptrace() routine. This matches the Sun UNIX ptrace as well as
    377         some additions */ 
     376 /* now ptrace() routine. This matches the Sun UNIX ptrace as well as
     377        some additions */
    378378#define PTRFLG_FORCE 1
    379379#define PTRFLG_NON_OWNER 2
     
    443443};
    444444typedef struct get_signal_names_out get_signal_names_out;
    445   /* now define the actual calls we support */
     445 /* now define the actual calls we support */
    446446#define REMDEB_H
    447447#endif
  • c/src/librdbg/src/powerpc/new_exception_processing/remdeb_xdr.c

    rcdf5a5b4 rdb2cc456  
    5858
    5959        if (xdrs->x_op == XDR_ENCODE) {
    60                 buf = XDR_INLINE(xdrs, 40 * BYTES_PER_XDR_UNIT);
     60                buf = XDR_INLINE (xdrs, ( 40 ) * BYTES_PER_XDR_UNIT);
    6161                if (buf == NULL) {
    6262                         if (!xdr_vector (xdrs, (char *)objp->tabreg, 40,
     
    7575                return TRUE;
    7676        } else if (xdrs->x_op == XDR_DECODE) {
    77                 buf = XDR_INLINE(xdrs, 40 * BYTES_PER_XDR_UNIT);
     77                buf = XDR_INLINE (xdrs, ( 40 ) * BYTES_PER_XDR_UNIT);
    7878                if (buf == NULL) {
    7979                         if (!xdr_vector (xdrs, (char *)objp->tabreg, 40,
     
    9898        return TRUE;
    9999}
    100   /*
     100 /*
    101101   * Memory data for read/write text or data. The size is in data. The target
    102102   * addr is in the addr field.
     
    106106   */
    107107bool_t xdr_xdr_mem(xdrs, objp)
    108         XDR *xdrs;
    109         struct xdr_mem *objp;
    110 {
    111         if (!xdr_u_long(xdrs, &objp->addr)) {
    112                 return (FALSE);
    113         }
    114         if (!xdr_u_int(xdrs, &objp->dataNb)) {
    115                 return(FALSE);
    116         }
    117         return (xdr_opaque(xdrs, objp->data, objp->dataNb));
     108 XDR *xdrs;
     109 struct xdr_mem *objp;
     110{
     111 if (!xdr_u_long(xdrs, &objp->addr)) {
     112 return (FALSE);
     113 }
     114 if (!xdr_u_int(xdrs, &objp->dataNb)) {
     115 return(FALSE);
     116 }
     117 return (xdr_opaque(xdrs, objp->data, objp->dataNb));
    118118}
    119119
     
    161161                 if (!xdr_u_char (xdrs, &objp->curr_pass))
    162162                         return FALSE;
    163                 buf = XDR_INLINE(xdrs, MAX_THRD_BRK * BYTES_PER_XDR_UNIT);
     163                buf = XDR_INLINE (xdrs, ( MAX_THRD_BRK ) * BYTES_PER_XDR_UNIT);
    164164                if (buf == NULL) {
    165165                         if (!xdr_vector (xdrs, (char *)objp->thread_list, MAX_THRD_BRK,
     
    203203                 if (!xdr_u_char (xdrs, &objp->curr_pass))
    204204                         return FALSE;
    205                 buf = XDR_INLINE(xdrs, MAX_THRD_BRK * BYTES_PER_XDR_UNIT);
     205                buf = XDR_INLINE (xdrs, ( MAX_THRD_BRK ) * BYTES_PER_XDR_UNIT);
    206206                if (buf == NULL) {
    207207                         if (!xdr_vector (xdrs, (char *)objp->thread_list, MAX_THRD_BRK,
     
    263263}
    264264bool_t xdr_thread_list(xdrs, objp)
    265         XDR *xdrs;
    266         struct thread_list *objp;
    267 {
    268         return (xdr_array(xdrs, (char**)&objp->threads, &objp->nbThread,
    269                         UTHREAD_MAX, sizeof(KernThread), xdr_KernThread));
     265 XDR *xdrs;
     266 struct thread_list *objp;
     267{
     268 return (xdr_array(xdrs, (char**)&objp->threads, &objp->nbThread,
     269 UTHREAD_MAX, sizeof(KernThread), xdr_KernThread));
    270270}
    271271
     
    388388}
    389389#ifndef XRY_MAX_CMD_STR
    390 #endif  /* REMDEB_H */
     390#endif /* REMDEB_H */
    391391
    392392bool_t
     
    456456        return TRUE;
    457457}
    458   /* now open_connex() routine which establishes a connection to server */
     458 /* now open_connex() routine which establishes a connection to server */
    459459
    460460bool_t
     
    467467        return TRUE;
    468468}
    469 #define DEBUGGER_IS_GDB 0x2    /* */
     469#define DEBUGGER_IS_GDB 0x2 /* */
    470470
    471471bool_t
     
    498498
    499499        if (xdrs->x_op == XDR_ENCODE) {
    500                 buf = XDR_INLINE(xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
     500                buf = XDR_INLINE (xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
    501501                if (buf == NULL) {
    502502                         if (!xdr_u_long (xdrs, &objp->port))
     
    528528                return TRUE;
    529529        } else if (xdrs->x_op == XDR_DECODE) {
    530                 buf = XDR_INLINE(xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
     530                buf = XDR_INLINE (xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
    531531                if (buf == NULL) {
    532532                         if (!xdr_u_long (xdrs, &objp->port))
     
    574574        return TRUE;
    575575}
    576   /* now close_connex() routine which detaches from server */
     576 /* now close_connex() routine which detaches from server */
    577577
    578578bool_t
     
    595595        return TRUE;
    596596}
    597   /* now send_signal() routine which sends signals to processes like kill(2) */
     597 /* now send_signal() routine which sends signals to processes like kill(2) */
    598598
    599599bool_t
     
    620620        return TRUE;
    621621}
    622   /* now wait_info() routine which returns results of polling the wait status
     622 /* now wait_info() routine which returns results of polling the wait status
    623623        of a process/actor. It may return 0 if running, else pid or -1 */
    624624
     
    666666                 if (!xdr_stop_code (xdrs, &objp->reason))
    667667                         return FALSE;
    668                 buf = XDR_INLINE(xdrs,5 * BYTES_PER_XDR_UNIT);
     668                buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT);
    669669                if (buf == NULL) {
    670670                         if (!xdr_int (xdrs, &objp->handle))
     
    703703                 if (!xdr_stop_code (xdrs, &objp->reason))
    704704                         return FALSE;
    705                 buf = XDR_INLINE(xdrs,5 * BYTES_PER_XDR_UNIT);
     705                buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT);
    706706                if (buf == NULL) {
    707707                         if (!xdr_int (xdrs, &objp->handle))
     
    745745        return TRUE;
    746746}
    747   /* now ptrace() routine. This matches the Sun UNIX ptrace as well as
    748         some additions */ 
     747 /* now ptrace() routine. This matches the Sun UNIX ptrace as well as
     748        some additions */
    749749
    750750bool_t
     
    830830
    831831        if (xdrs->x_op == XDR_ENCODE) {
    832                 buf = XDR_INLINE(xdrs,6 * BYTES_PER_XDR_UNIT);
     832                buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
    833833                if (buf == NULL) {
    834834                         if (!xdr_int (xdrs, &objp->result))
     
    854854                return TRUE;
    855855        } else if (xdrs->x_op == XDR_DECODE) {
    856                 buf = XDR_INLINE(xdrs,6 * BYTES_PER_XDR_UNIT);
     856                buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
    857857                if (buf == NULL) {
    858858                         if (!xdr_int (xdrs, &objp->result))
     
    926926        return TRUE;
    927927}
    928   /* now define the actual calls we support */
     928 /* now define the actual calls we support */
Note: See TracChangeset for help on using the changeset viewer.