Initial creation of sourceware repository
[deliverable/binutils-gdb.git] / gdb / rdi-share / ardi.h
CommitLineData
c906108c
SS
1/*
2 * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved.
3 *
4 * This software may be freely used, copied, modified, and distributed
5 * provided that the above copyright notice is preserved in all copies of the
6 * software.
7 */
8
9/*
10 * ardi.h
11 * ADP RDI interfaces
12 *
13 * $Revision$
14 * $Date$
15 */
16
17#include "host.h"
18
19typedef unsigned32 ARMword;
20
21#include "dbg_rdi.h"
22#include "dbg_conf.h"
23
24extern char *commandline;
25extern ARMword last_vector_catch;
26
27/* This is the size of buffers that are asked for by standard channels
28 * Non standard channels may wish to copy this!
29 */
30extern int Armsd_BufferSize;
31
32typedef int (*host_ChannelBufferFilledFnPtr)(unsigned int ,unsigned char ** ,void *);
33
34int angel_RDI_open(
35 unsigned type, Dbg_ConfigBlock const *config,
36 Dbg_HostosInterface const *hostif, struct Dbg_MCState *dbg_state);
37int angel_RDI_close(void);
38
39int angel_RDI_read(ARMword source, void *dest, unsigned *nbytes);
40int angel_RDI_write(const void *source, ARMword dest, unsigned *nbytes);
41
42int angel_RDI_CPUread(unsigned mode, unsigned long mask, ARMword *buffer);
43int angel_RDI_CPUwrite(unsigned mode, unsigned long mask,
44 ARMword const *buffer);
45
46int angel_RDI_CPread(unsigned CPnum, unsigned long mask, ARMword *buffer);
47int angel_RDI_CPwrite(unsigned CPnum, unsigned long mask,
48 ARMword const *buffer);
49
50int angel_RDI_setbreak(ARMword address, unsigned type, ARMword bound,
51 PointHandle *handle);
52int angel_RDI_clearbreak(PointHandle handle);
53
54int angel_RDI_setwatch(ARMword address, unsigned type, unsigned datatype,
55 ARMword bound, PointHandle *handle);
56int angel_RDI_clearwatch(PointHandle handle);
57
58int angel_RDI_pointinq(ARMword *address, unsigned type, unsigned datatype,
59 ARMword *bound);
60
61int angel_RDI_execute(PointHandle *handle);
62
63int angel_RDI_step(unsigned ninstr, PointHandle *handle);
64
65int angel_RDI_info(unsigned type, ARMword *arg1, ARMword *arg2);
66
67int angel_RDI_AddConfig(unsigned long nbytes);
68
69int angel_RDI_LoadConfigData(unsigned long nbytes, char const *data);
70
71int angel_RDI_SelectConfig(RDI_ConfigAspect aspect, char const *name,
72 RDI_ConfigMatchType matchtype, unsigned versionreq,
73 unsigned *versionp);
74
75RDI_NameList const *angel_RDI_drivernames(void);
76
77int angel_RDI_LoadAgent(ARMword dest, unsigned long size, getbufferproc *getb,
78 void *getbarg);
79
80extern const struct Dbg_HostosInterface *angel_hostif;
81
82typedef int angel_RDI_TargetStoppedProc(unsigned stopped_reason, void *arg);
83
84extern int angel_RDI_OnTargetStopping(angel_RDI_TargetStoppedProc *fn,
85 void *arg);
This page took 0.028318 seconds and 4 git commands to generate.