forked from Imagelibrary/rtems
2001-01-18 Joel Sherrill <joel@OARcorp.com>
* 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.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2001-01-18 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2001-10-30 Victor V. Vengerov <vvv@oktet.ru>
|
||||
|
||||
* src/m68k/rdbg_cpu_asm.S: Now compiles on ColdFire.
|
||||
|
||||
@@ -16,7 +16,7 @@ extern "C" {
|
||||
#define RTEMS_PORT 2071
|
||||
#define RTEMS_BACK_PORT 2073
|
||||
#ifndef REMDEB_H
|
||||
#define RPCGENSRVNAME(a) a
|
||||
#define RPCGENSRVNAME(a) a
|
||||
|
||||
enum rpc_type {
|
||||
SUNRPC = 0,
|
||||
@@ -99,62 +99,62 @@ struct xdr_regs {
|
||||
typedef struct xdr_regs xdr_regs;
|
||||
/* now define register macros to apply to xdr_regs struct */
|
||||
|
||||
#define R_PC 0
|
||||
#define R_MSR 1
|
||||
#define R_EXCEPNB 2
|
||||
#define R_R0 3
|
||||
#define R_R1 (R_R0 + 1)
|
||||
#define R_R2 (R_R0 + 2)
|
||||
#define R_R3 (R_R0 + 3)
|
||||
#define R_R4 (R_R0 + 4)
|
||||
#define R_R5 (R_R0 + 5)
|
||||
#define R_R6 (R_R0 + 6)
|
||||
#define R_R7 (R_R0 + 7)
|
||||
#define R_R8 (R_R0 + 8)
|
||||
#define R_R9 (R_R0 + 9)
|
||||
#define R_R10 (R_R0 + 10)
|
||||
#define R_R11 (R_R0 + 11)
|
||||
#define R_R12 (R_R0 + 12)
|
||||
#define R_R13 (R_R0 + 13)
|
||||
#define R_R14 (R_R0 + 14)
|
||||
#define R_R15 (R_R0 + 15)
|
||||
#define R_R16 (R_R0 + 16)
|
||||
#define R_R17 (R_R0 + 17)
|
||||
#define R_R18 (R_R0 + 18)
|
||||
#define R_R19 (R_R0 + 19)
|
||||
#define R_R20 (R_R0 + 20)
|
||||
#define R_R21 (R_R0 + 21)
|
||||
#define R_R22 (R_R0 + 22)
|
||||
#define R_R23 (R_R0 + 23)
|
||||
#define R_R24 (R_R0 + 24)
|
||||
#define R_R25 (R_R0 + 25)
|
||||
#define R_R26 (R_R0 + 26)
|
||||
#define R_R27 (R_R0 + 27)
|
||||
#define R_R28 (R_R0 + 28)
|
||||
#define R_R29 (R_R0 + 29)
|
||||
#define R_R30 (R_R0 + 30)
|
||||
#define R_R31 (R_R0 + 31)
|
||||
#define R_CR 35
|
||||
#define R_CTR 36
|
||||
#define R_XER 37
|
||||
#define R_LR 38
|
||||
#define R_MQ 39
|
||||
#define R_PC 0
|
||||
#define R_MSR 1
|
||||
#define R_EXCEPNB 2
|
||||
#define R_R0 3
|
||||
#define R_R1 (R_R0 + 1)
|
||||
#define R_R2 (R_R0 + 2)
|
||||
#define R_R3 (R_R0 + 3)
|
||||
#define R_R4 (R_R0 + 4)
|
||||
#define R_R5 (R_R0 + 5)
|
||||
#define R_R6 (R_R0 + 6)
|
||||
#define R_R7 (R_R0 + 7)
|
||||
#define R_R8 (R_R0 + 8)
|
||||
#define R_R9 (R_R0 + 9)
|
||||
#define R_R10 (R_R0 + 10)
|
||||
#define R_R11 (R_R0 + 11)
|
||||
#define R_R12 (R_R0 + 12)
|
||||
#define R_R13 (R_R0 + 13)
|
||||
#define R_R14 (R_R0 + 14)
|
||||
#define R_R15 (R_R0 + 15)
|
||||
#define R_R16 (R_R0 + 16)
|
||||
#define R_R17 (R_R0 + 17)
|
||||
#define R_R18 (R_R0 + 18)
|
||||
#define R_R19 (R_R0 + 19)
|
||||
#define R_R20 (R_R0 + 20)
|
||||
#define R_R21 (R_R0 + 21)
|
||||
#define R_R22 (R_R0 + 22)
|
||||
#define R_R23 (R_R0 + 23)
|
||||
#define R_R24 (R_R0 + 24)
|
||||
#define R_R25 (R_R0 + 25)
|
||||
#define R_R26 (R_R0 + 26)
|
||||
#define R_R27 (R_R0 + 27)
|
||||
#define R_R28 (R_R0 + 28)
|
||||
#define R_R29 (R_R0 + 29)
|
||||
#define R_R30 (R_R0 + 30)
|
||||
#define R_R31 (R_R0 + 31)
|
||||
#define R_CR 35
|
||||
#define R_CTR 36
|
||||
#define R_XER 37
|
||||
#define R_LR 38
|
||||
#define R_MQ 39
|
||||
|
||||
#include <libcpu/raw_exception.h>
|
||||
|
||||
#define REG_PC tabreg[R_PC] /* PC register offset */
|
||||
#define REG_SP tabreg[R_R1] /* SP register offset */
|
||||
#define REG_FP tabreg[R_R1] /* SP register offset (no FP on PPC) */
|
||||
#define BREAK_SIZE 4 /* Breakpoint occupies 4 bytes */
|
||||
#define BREAK_ADJ 0 /* Nothing to subtract from address after bp */
|
||||
#define IS_BREAK(l) ((l) == 0x7d8d6808)
|
||||
#define SET_BREAK(l) (0x7d8d6808)
|
||||
#define REG_PC tabreg[R_PC] /* PC register offset */
|
||||
#define REG_SP tabreg[R_R1] /* SP register offset */
|
||||
#define REG_FP tabreg[R_R1] /* SP register offset (no FP on PPC) */
|
||||
#define BREAK_SIZE 4 /* Breakpoint occupies 4 bytes */
|
||||
#define BREAK_ADJ 0 /* Nothing to subtract from address after bp */
|
||||
#define IS_BREAK(l) ((l) == 0x7d8d6808)
|
||||
#define SET_BREAK(l) (0x7d8d6808)
|
||||
#define ORG_BREAK(c,p) (p)
|
||||
#define IS_STEP(regs) (regs.tabreg[R_EXCEPNB] == ASM_TRACE_VECTOR) /* Was step and not break */
|
||||
#define TARGET_PROC_TYPE 3
|
||||
#define IS_STEP(regs) (regs.tabreg[R_EXCEPNB] == ASM_TRACE_VECTOR) /* Was step and not break */
|
||||
#define TARGET_PROC_TYPE 3
|
||||
#define MAXDEBUGGEE 150
|
||||
#define NAMEMAX 17
|
||||
/*
|
||||
/*
|
||||
* Memory data for read/write text or data. The size is in data. The target
|
||||
* addr is in the addr field.
|
||||
* Be careful before modifying because this value goes into internal
|
||||
@@ -254,7 +254,7 @@ typedef struct {
|
||||
#define XRY_MAX_INSTANCES 16
|
||||
#ifndef XRY_MAX_CMD_STR
|
||||
#define XRY_MAX_CMD_STR 320
|
||||
#endif /* REMDEB_H */
|
||||
#endif /* REMDEB_H */
|
||||
|
||||
struct xry_inst {
|
||||
u_char flags;
|
||||
@@ -283,7 +283,7 @@ typedef struct instance_union instance_union;
|
||||
|
||||
typedef char *one_arg;
|
||||
#define XRY_MAX_OBJ_NAME 32
|
||||
/* now open_connex() routine which establishes a connection to server */
|
||||
/* now open_connex() routine which establishes a connection to server */
|
||||
|
||||
enum debug_type {
|
||||
DEBTYP_PROCESS = 0,
|
||||
@@ -292,7 +292,7 @@ enum debug_type {
|
||||
DEBTYP_OTHER = 3,
|
||||
};
|
||||
typedef enum debug_type debug_type;
|
||||
#define DEBUGGER_IS_GDB 0x2 /* */
|
||||
#define DEBUGGER_IS_GDB 0x2 /* */
|
||||
|
||||
struct open_in {
|
||||
u_char back_port[16];
|
||||
@@ -312,7 +312,7 @@ struct open_out {
|
||||
u_short server_vers;
|
||||
};
|
||||
typedef struct open_out open_out;
|
||||
/* now close_connex() routine which detaches from server */
|
||||
/* now close_connex() routine which detaches from server */
|
||||
|
||||
enum close_control {
|
||||
CLOSE_IGNORE = 0,
|
||||
@@ -325,7 +325,7 @@ struct close_in {
|
||||
close_control control;
|
||||
};
|
||||
typedef struct close_in close_in;
|
||||
/* now send_signal() routine which sends signals to processes like kill(2) */
|
||||
/* now send_signal() routine which sends signals to processes like kill(2) */
|
||||
|
||||
struct signal_in {
|
||||
int pid;
|
||||
@@ -338,7 +338,7 @@ struct signal_out {
|
||||
int errNo;
|
||||
};
|
||||
typedef struct signal_out signal_out;
|
||||
/* now wait_info() routine which returns results of polling the wait status
|
||||
/* now wait_info() routine which returns results of polling the wait status
|
||||
of a process/actor. It may return 0 if running, else pid or -1 */
|
||||
|
||||
enum stop_code {
|
||||
@@ -373,8 +373,8 @@ struct wait_out {
|
||||
u_long thread;
|
||||
};
|
||||
typedef struct wait_out wait_out;
|
||||
/* now ptrace() routine. This matches the Sun UNIX ptrace as well as
|
||||
some additions */
|
||||
/* now ptrace() routine. This matches the Sun UNIX ptrace as well as
|
||||
some additions */
|
||||
#define PTRFLG_FORCE 1
|
||||
#define PTRFLG_NON_OWNER 2
|
||||
#define PTRFLG_FREE 4
|
||||
@@ -442,7 +442,7 @@ struct get_signal_names_out {
|
||||
all_signals signals;
|
||||
};
|
||||
typedef struct get_signal_names_out get_signal_names_out;
|
||||
/* now define the actual calls we support */
|
||||
/* now define the actual calls we support */
|
||||
#define REMDEB_H
|
||||
#endif
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ xdr_xdr_regs (XDR *xdrs, xdr_regs *objp)
|
||||
int i;
|
||||
|
||||
if (xdrs->x_op == XDR_ENCODE) {
|
||||
buf = XDR_INLINE(xdrs, 40 * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, ( 40 ) * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_vector (xdrs, (char *)objp->tabreg, 40,
|
||||
sizeof (u_int), (xdrproc_t) xdr_u_int))
|
||||
@@ -74,7 +74,7 @@ xdr_xdr_regs (XDR *xdrs, xdr_regs *objp)
|
||||
}
|
||||
return TRUE;
|
||||
} else if (xdrs->x_op == XDR_DECODE) {
|
||||
buf = XDR_INLINE(xdrs, 40 * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, ( 40 ) * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_vector (xdrs, (char *)objp->tabreg, 40,
|
||||
sizeof (u_int), (xdrproc_t) xdr_u_int))
|
||||
@@ -97,7 +97,7 @@ xdr_xdr_regs (XDR *xdrs, xdr_regs *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/*
|
||||
/*
|
||||
* Memory data for read/write text or data. The size is in data. The target
|
||||
* addr is in the addr field.
|
||||
* Be careful before modifying because this value goes into internal
|
||||
@@ -105,16 +105,16 @@ xdr_xdr_regs (XDR *xdrs, xdr_regs *objp)
|
||||
* become too small if this value gets incremented.
|
||||
*/
|
||||
bool_t xdr_xdr_mem(xdrs, objp)
|
||||
XDR *xdrs;
|
||||
struct xdr_mem *objp;
|
||||
XDR *xdrs;
|
||||
struct xdr_mem *objp;
|
||||
{
|
||||
if (!xdr_u_long(xdrs, &objp->addr)) {
|
||||
return (FALSE);
|
||||
}
|
||||
if (!xdr_u_int(xdrs, &objp->dataNb)) {
|
||||
return(FALSE);
|
||||
}
|
||||
return (xdr_opaque(xdrs, objp->data, objp->dataNb));
|
||||
if (!xdr_u_long(xdrs, &objp->addr)) {
|
||||
return (FALSE);
|
||||
}
|
||||
if (!xdr_u_int(xdrs, &objp->dataNb)) {
|
||||
return(FALSE);
|
||||
}
|
||||
return (xdr_opaque(xdrs, objp->data, objp->dataNb));
|
||||
}
|
||||
|
||||
bool_t
|
||||
@@ -160,7 +160,7 @@ xdr_xdr_break (XDR *xdrs, xdr_break *objp)
|
||||
return FALSE;
|
||||
if (!xdr_u_char (xdrs, &objp->curr_pass))
|
||||
return FALSE;
|
||||
buf = XDR_INLINE(xdrs, MAX_THRD_BRK * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, ( MAX_THRD_BRK ) * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_vector (xdrs, (char *)objp->thread_list, MAX_THRD_BRK,
|
||||
sizeof (u_long), (xdrproc_t) xdr_u_long))
|
||||
@@ -202,7 +202,7 @@ xdr_xdr_break (XDR *xdrs, xdr_break *objp)
|
||||
return FALSE;
|
||||
if (!xdr_u_char (xdrs, &objp->curr_pass))
|
||||
return FALSE;
|
||||
buf = XDR_INLINE(xdrs, MAX_THRD_BRK * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, ( MAX_THRD_BRK ) * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_vector (xdrs, (char *)objp->thread_list, MAX_THRD_BRK,
|
||||
sizeof (u_long), (xdrproc_t) xdr_u_long))
|
||||
@@ -262,11 +262,11 @@ xdr_KernThread (XDR *xdrs, KernThread *objp)
|
||||
return TRUE;
|
||||
}
|
||||
bool_t xdr_thread_list(xdrs, objp)
|
||||
XDR *xdrs;
|
||||
struct thread_list *objp;
|
||||
XDR *xdrs;
|
||||
struct thread_list *objp;
|
||||
{
|
||||
return (xdr_array(xdrs, (char**)&objp->threads, &objp->nbThread,
|
||||
UTHREAD_MAX, sizeof(KernThread), xdr_KernThread));
|
||||
return (xdr_array(xdrs, (char**)&objp->threads, &objp->nbThread,
|
||||
UTHREAD_MAX, sizeof(KernThread), xdr_KernThread));
|
||||
}
|
||||
|
||||
bool_t
|
||||
@@ -387,7 +387,7 @@ xdr_CHAR_DATA (XDR *xdrs, CHAR_DATA *objp)
|
||||
return TRUE;
|
||||
}
|
||||
#ifndef XRY_MAX_CMD_STR
|
||||
#endif /* REMDEB_H */
|
||||
#endif /* REMDEB_H */
|
||||
|
||||
bool_t
|
||||
xdr_xry_inst (XDR *xdrs, xry_inst *objp)
|
||||
@@ -455,7 +455,7 @@ xdr_one_arg (XDR *xdrs, one_arg *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/* now open_connex() routine which establishes a connection to server */
|
||||
/* now open_connex() routine which establishes a connection to server */
|
||||
|
||||
bool_t
|
||||
xdr_debug_type (XDR *xdrs, debug_type *objp)
|
||||
@@ -466,7 +466,7 @@ xdr_debug_type (XDR *xdrs, debug_type *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
#define DEBUGGER_IS_GDB 0x2 /* */
|
||||
#define DEBUGGER_IS_GDB 0x2 /* */
|
||||
|
||||
bool_t
|
||||
xdr_open_in (XDR *xdrs, open_in *objp)
|
||||
@@ -497,7 +497,7 @@ xdr_open_out (XDR *xdrs, open_out *objp)
|
||||
int i;
|
||||
|
||||
if (xdrs->x_op == XDR_ENCODE) {
|
||||
buf = XDR_INLINE(xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_u_long (xdrs, &objp->port))
|
||||
return FALSE;
|
||||
@@ -527,7 +527,7 @@ xdr_open_out (XDR *xdrs, open_out *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
} else if (xdrs->x_op == XDR_DECODE) {
|
||||
buf = XDR_INLINE(xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, (2 + ( 4 )) * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_u_long (xdrs, &objp->port))
|
||||
return FALSE;
|
||||
@@ -573,7 +573,7 @@ xdr_open_out (XDR *xdrs, open_out *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/* now close_connex() routine which detaches from server */
|
||||
/* now close_connex() routine which detaches from server */
|
||||
|
||||
bool_t
|
||||
xdr_close_control (XDR *xdrs, close_control *objp)
|
||||
@@ -594,7 +594,7 @@ xdr_close_in (XDR *xdrs, close_in *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/* now send_signal() routine which sends signals to processes like kill(2) */
|
||||
/* now send_signal() routine which sends signals to processes like kill(2) */
|
||||
|
||||
bool_t
|
||||
xdr_signal_in (XDR *xdrs, signal_in *objp)
|
||||
@@ -619,7 +619,7 @@ xdr_signal_out (XDR *xdrs, signal_out *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/* now wait_info() routine which returns results of polling the wait status
|
||||
/* now wait_info() routine which returns results of polling the wait status
|
||||
of a process/actor. It may return 0 if running, else pid or -1 */
|
||||
|
||||
bool_t
|
||||
@@ -665,7 +665,7 @@ xdr_wait_out (XDR *xdrs, wait_out *objp)
|
||||
}
|
||||
if (!xdr_stop_code (xdrs, &objp->reason))
|
||||
return FALSE;
|
||||
buf = XDR_INLINE(xdrs,5 * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_int (xdrs, &objp->handle))
|
||||
return FALSE;
|
||||
@@ -702,7 +702,7 @@ xdr_wait_out (XDR *xdrs, wait_out *objp)
|
||||
}
|
||||
if (!xdr_stop_code (xdrs, &objp->reason))
|
||||
return FALSE;
|
||||
buf = XDR_INLINE(xdrs,5 * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_int (xdrs, &objp->handle))
|
||||
return FALSE;
|
||||
@@ -744,8 +744,8 @@ xdr_wait_out (XDR *xdrs, wait_out *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/* now ptrace() routine. This matches the Sun UNIX ptrace as well as
|
||||
some additions */
|
||||
/* now ptrace() routine. This matches the Sun UNIX ptrace as well as
|
||||
some additions */
|
||||
|
||||
bool_t
|
||||
xdr_ptrace_in (XDR *xdrs, ptrace_in *objp)
|
||||
@@ -829,7 +829,7 @@ xdr_get_text_data_out (XDR *xdrs, get_text_data_out *objp)
|
||||
|
||||
|
||||
if (xdrs->x_op == XDR_ENCODE) {
|
||||
buf = XDR_INLINE(xdrs,6 * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_int (xdrs, &objp->result))
|
||||
return FALSE;
|
||||
@@ -853,7 +853,7 @@ xdr_get_text_data_out (XDR *xdrs, get_text_data_out *objp)
|
||||
}
|
||||
return TRUE;
|
||||
} else if (xdrs->x_op == XDR_DECODE) {
|
||||
buf = XDR_INLINE(xdrs,6 * BYTES_PER_XDR_UNIT);
|
||||
buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
|
||||
if (buf == NULL) {
|
||||
if (!xdr_int (xdrs, &objp->result))
|
||||
return FALSE;
|
||||
@@ -925,4 +925,4 @@ xdr_get_signal_names_out (XDR *xdrs, get_signal_names_out *objp)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
/* now define the actual calls we support */
|
||||
/* now define the actual calls we support */
|
||||
|
||||
Reference in New Issue
Block a user