source: trunk/minix/commands/mdb/proto.h@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 3.3 KB
Line 
1/*
2 * proto.h for mdb
3 */
4
5/* core.c */
6
7_PROTOTYPE( void prtmap, (void) );
8_PROTOTYPE( unsigned long core_init, (char *filename) );
9_PROTOTYPE( unsigned long file_init, (char *filename) );
10_PROTOTYPE( long read_core, (int req, long addr, long data) );
11
12/* mdb.c */
13
14_PROTOTYPE( void mdb_error, (char *s) );
15_PROTOTYPE( long breakpt , (long addr , char *cmd ));
16_PROTOTYPE( void tstart , (int req , int verbose , int val , int cnt ));
17
18/* io.c */
19
20_PROTOTYPE( char *get_cmd , (char *cbuf, int csize) );
21_PROTOTYPE( void openin , (char *s ));
22_PROTOTYPE( void logging, (int c, char *name) );
23_PROTOTYPE( void do_error, (char *message) );
24_PROTOTYPE( int Printf, (const char *format, ...));
25_PROTOTYPE( void outbyte, (int byte) );
26_PROTOTYPE( void outcomma, (void) );
27_PROTOTYPE( void outh8, (unsigned num) );
28_PROTOTYPE( void outh16, (unsigned num) );
29_PROTOTYPE( void outh32, (unsigned num) );
30_PROTOTYPE( void outh4, (unsigned num) );
31_PROTOTYPE( void outspace, (void) );
32_PROTOTYPE( void outstr, (char *s) );
33_PROTOTYPE( void outtab, (void) );
34_PROTOTYPE( void outustr, (char *s) );
35_PROTOTYPE( void closestring, (void) );
36_PROTOTYPE( int mytolower, (int ch) );
37_PROTOTYPE( void openstring, (char *string) );
38_PROTOTYPE( int stringpos, (void) );
39_PROTOTYPE( int stringtab, (void) );
40
41/* mdbdis86.c */
42
43_PROTOTYPE( long dasm, (long addr, int count, int symflg) );
44
45/* mdbexp.c */
46
47_PROTOTYPE( char *getexp, (char *buf, long *exp_p, int *seg_p) );
48_PROTOTYPE( char *skip, (char *s) );
49
50/* kernel.c */
51_PROTOTYPE( long get_reg, (int pid, long k) );
52_PROTOTYPE( void set_reg, (int pid, long k, long value) );
53_PROTOTYPE( long reg_addr, (char *s) );
54_PROTOTYPE( int disp_regs, (void) );
55_PROTOTYPE( int outsegreg, (off_t num) );
56_PROTOTYPE( void update , (void));
57_PROTOTYPE( void disp_maps , (void));
58
59/* misc.c */
60
61_PROTOTYPE( void dump_stack, (long count) );
62_PROTOTYPE( off_t file_size, (int fd) );
63_PROTOTYPE( void help_on, (int h) );
64_PROTOTYPE( void version_info, (void) );
65_PROTOTYPE( void help_page, (void) );
66
67#if EXTRA_SYMBOLS
68/* gnu_sym.c */
69_PROTOTYPE( void gnu_init, (char *filename) );
70_PROTOTYPE( long gnu_symbolvalue, (char *name, int is_text ) );
71_PROTOTYPE( void gnu_symbolic, (off_t value, int separator) );
72_PROTOTYPE( void gnu_listsym, (int tchar) );
73_PROTOTYPE( int gnu_text_symbol, (off_t value) );
74_PROTOTYPE( int gnu_finds_pc, (off_t pc) );
75_PROTOTYPE( int gnu_finds_data, (off_t off, int data_seg) );
76#endif /* EXTRA_SYMBOLS */
77
78/* sym.c */
79_PROTOTYPE( void syminit, (char *filename) );
80_PROTOTYPE( long symbolvalue, (char *name, int is_text ) );
81_PROTOTYPE( void printhex, (off_t v) );
82_PROTOTYPE( void symbolic, (off_t value, int separator) );
83_PROTOTYPE( void listsym, (char *cmd) );
84_PROTOTYPE( int text_symbol, (off_t value) );
85_PROTOTYPE( int finds_pc, (off_t pc) );
86_PROTOTYPE( int finds_data, (off_t off, int data_seg) );
87
88/* trace.c */
89_PROTOTYPE( long mdbtrace, (int req, int pid, long addr, long data) );
90_PROTOTYPE( u32_t peek_dword, (off_t addr));
91
92#if SYSCALLS_SUPPORT
93
94/* syscalls.c */
95_PROTOTYPE( void start_syscall, (long addr) );
96_PROTOTYPE( void do_syscall, (long addr) );
97
98/* decode.c */
99_PROTOTYPE( void decode_message, (unsigned addr) );
100_PROTOTYPE( void decode_result, (void) );
101
102/* ioctl.c */
103_PROTOTYPE( void decode_ioctl, (int sr, message *m) );
104
105#endif /* SYSCALLS_SUPPORT */
Note: See TracBrowser for help on using the repository browser.