-typedef int rdi_open_proc(unsigned type, struct Dbg_ConfigBlock const *config,
- struct Dbg_HostosInterface const *i,
- struct Dbg_MCState *dbg_state);
-typedef int rdi_close_proc(void);
-typedef int rdi_read_proc(ARMword source, void *dest, unsigned *nbytes);
-typedef int rdi_write_proc(const void *source, ARMword dest, unsigned *nbytes);
-typedef int rdi_CPUread_proc(unsigned mode, unsigned long mask, ARMword *state);
-typedef int rdi_CPUwrite_proc(unsigned mode, unsigned long mask, ARMword const *state);
-typedef int rdi_CPread_proc(unsigned CPnum, unsigned long mask, ARMword *state);
-typedef int rdi_CPwrite_proc(unsigned CPnum, unsigned long mask, ARMword const *state);
-typedef int rdi_setbreak_proc(ARMword address, unsigned type, ARMword bound,
- PointHandle *handle);
-typedef int rdi_clearbreak_proc(PointHandle handle);
-typedef int rdi_setwatch_proc(ARMword address, unsigned type, unsigned datatype,
- ARMword bound, PointHandle *handle);
-typedef int rdi_clearwatch_proc(PointHandle handle);
-typedef int rdi_execute_proc(PointHandle *handle);
-typedef int rdi_step_proc(unsigned ninstr, PointHandle *handle);
-typedef int rdi_info_proc(unsigned type, ARMword *arg1, ARMword *arg2);
-typedef int rdi_pointinq_proc(ARMword *address, unsigned type,
- unsigned datatype, ARMword *bound);
-
-typedef enum {
- RDI_ConfigCPU,
- RDI_ConfigSystem
-} RDI_ConfigAspect;
-
-typedef enum {
- RDI_MatchAny,
- RDI_MatchExactly,
- RDI_MatchNoEarlier
-} RDI_ConfigMatchType;
-
-typedef int rdi_addconfig_proc(unsigned long nbytes);
-typedef int rdi_loadconfigdata_proc(unsigned long nbytes, char const *data);
-typedef int rdi_selectconfig_proc(RDI_ConfigAspect aspect, char const *name,
- RDI_ConfigMatchType matchtype, unsigned versionreq,
- unsigned *versionp);
-
-typedef char *getbufferproc(void *getbarg, unsigned long *sizep);
-typedef int rdi_loadagentproc(ARMword dest, unsigned long size, getbufferproc *getb, void *getbarg);
-
-typedef struct {
- int itemmax;
- char const * const *names;
-} RDI_NameList;
-
-typedef RDI_NameList const *rdi_namelistproc(void);
-
-typedef int rdi_errmessproc(char *buf, int buflen, int errno);
-
-struct RDIProcVec {
- char rditypename[12];
-
- rdi_open_proc *open;
- rdi_close_proc *close;
- rdi_read_proc *read;
- rdi_write_proc *write;
- rdi_CPUread_proc *CPUread;
- rdi_CPUwrite_proc *CPUwrite;
- rdi_CPread_proc *CPread;
- rdi_CPwrite_proc *CPwrite;
- rdi_setbreak_proc *setbreak;
- rdi_clearbreak_proc *clearbreak;
- rdi_setwatch_proc *setwatch;
- rdi_clearwatch_proc *clearwatch;
- rdi_execute_proc *execute;
- rdi_step_proc *step;
- rdi_info_proc *info;
- /* V2 RDI */
- rdi_pointinq_proc *pointinquiry;
-
- /* These three useable only if RDIInfo_DownLoad returns no error */
- rdi_addconfig_proc *addconfig;
- rdi_loadconfigdata_proc *loadconfigdata;
- rdi_selectconfig_proc *selectconfig;
-
- rdi_namelistproc *drivernames;
- rdi_namelistproc *cpunames;
-
- rdi_errmessproc *errmess;
-
- /* Only if RDIInfo_Target returns a value with RDITarget_LoadAgent set */
- rdi_loadagentproc *loadagent;
+typedef int rdi_open_proc (unsigned type,
+ struct Dbg_ConfigBlock const *config,
+ struct Dbg_HostosInterface const *i,
+ struct Dbg_MCState *dbg_state);
+typedef int rdi_close_proc (void);
+typedef int rdi_read_proc (ARMword source, void *dest, unsigned *nbytes);
+typedef int rdi_write_proc (const void *source, ARMword dest,
+ unsigned *nbytes);
+typedef int rdi_CPUread_proc (unsigned mode, unsigned long mask,
+ ARMword * state);
+typedef int rdi_CPUwrite_proc (unsigned mode, unsigned long mask,
+ ARMword const *state);
+typedef int rdi_CPread_proc (unsigned CPnum, unsigned long mask,
+ ARMword * state);
+typedef int rdi_CPwrite_proc (unsigned CPnum, unsigned long mask,
+ ARMword const *state);
+typedef int rdi_setbreak_proc (ARMword address, unsigned type, ARMword bound,
+ PointHandle * handle);
+typedef int rdi_clearbreak_proc (PointHandle handle);
+typedef int rdi_setwatch_proc (ARMword address, unsigned type,
+ unsigned datatype, ARMword bound,
+ PointHandle * handle);
+typedef int rdi_clearwatch_proc (PointHandle handle);
+typedef int rdi_execute_proc (PointHandle * handle);
+typedef int rdi_step_proc (unsigned ninstr, PointHandle * handle);
+typedef int rdi_info_proc (unsigned type, ARMword * arg1, ARMword * arg2);
+typedef int rdi_pointinq_proc (ARMword * address, unsigned type,
+ unsigned datatype, ARMword * bound);
+
+typedef enum
+{
+ RDI_ConfigCPU,
+ RDI_ConfigSystem
+}
+RDI_ConfigAspect;
+
+typedef enum
+{
+ RDI_MatchAny,
+ RDI_MatchExactly,
+ RDI_MatchNoEarlier
+}
+RDI_ConfigMatchType;
+
+typedef int rdi_addconfig_proc (unsigned long nbytes);
+typedef int rdi_loadconfigdata_proc (unsigned long nbytes, char const *data);
+typedef int rdi_selectconfig_proc (RDI_ConfigAspect aspect, char const *name,
+ RDI_ConfigMatchType matchtype,
+ unsigned versionreq, unsigned *versionp);
+
+typedef char *getbufferproc (void *getbarg, unsigned long *sizep);
+typedef int rdi_loadagentproc (ARMword dest, unsigned long size,
+ getbufferproc * getb, void *getbarg);
+
+typedef struct
+{
+ int itemmax;
+ char const *const *names;
+}
+RDI_NameList;
+
+typedef RDI_NameList const *rdi_namelistproc (void);
+
+typedef int rdi_errmessproc (char *buf, int buflen, int errno);
+
+struct RDIProcVec
+{
+ char rditypename[12];
+
+ rdi_open_proc *open;
+ rdi_close_proc *close;
+ rdi_read_proc *read;
+ rdi_write_proc *write;
+ rdi_CPUread_proc *CPUread;
+ rdi_CPUwrite_proc *CPUwrite;
+ rdi_CPread_proc *CPread;
+ rdi_CPwrite_proc *CPwrite;
+ rdi_setbreak_proc *setbreak;
+ rdi_clearbreak_proc *clearbreak;
+ rdi_setwatch_proc *setwatch;
+ rdi_clearwatch_proc *clearwatch;
+ rdi_execute_proc *execute;
+ rdi_step_proc *step;
+ rdi_info_proc *info;
+ /* V2 RDI */
+ rdi_pointinq_proc *pointinquiry;
+
+ /* These three useable only if RDIInfo_DownLoad returns no error */
+ rdi_addconfig_proc *addconfig;
+ rdi_loadconfigdata_proc *loadconfigdata;
+ rdi_selectconfig_proc *selectconfig;
+
+ rdi_namelistproc *drivernames;
+ rdi_namelistproc *cpunames;
+
+ rdi_errmessproc *errmess;
+
+ /* Only if RDIInfo_Target returns a value with RDITarget_LoadAgent set */
+ rdi_loadagentproc *loadagent;