|
1 | 1 | /**
|
2 |
| - * @file C DEBUGGING LIBRARY |
3 |
| - * @version 3 |
4 |
| - * |
5 |
| - * @section LICENSE |
6 |
| - * |
7 |
| - * Copyright (c) 2016 |
8 |
| - * Matthew "MateoConLechuga" Waltz |
9 |
| - * All rights reserved. |
10 |
| - * |
11 |
| - * Redistribution and use in source and binary forms, with or without |
12 |
| - * modification, are permitted provided that the following conditions are met: |
13 |
| - * |
14 |
| - * * Redistributions of source code must retain the above copyright notice, this |
15 |
| - * list of conditions and the following disclaimer. |
16 |
| - * |
17 |
| - * * Redistributions in binary form must reproduce the above copyright notice, |
18 |
| - * this list of conditions and the following disclaimer in the documentation |
19 |
| - * and/or other materials provided with the distribution. |
20 |
| - * |
21 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
22 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
24 |
| - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
25 |
| - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
26 |
| - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
27 |
| - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
28 |
| - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
29 |
| - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
30 |
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 |
| - * |
32 |
| - * @section DESCRIPTION |
33 |
| - * |
34 |
| - * This library implements some some useful debugging functions |
| 2 | + * @file |
| 3 | + * @author Matt "MateoConLechuga" Waltz |
| 4 | + * @brief Contains useful debugging features for use with the integrated CEmu debugger |
35 | 5 | */
|
36 | 6 |
|
37 | 7 | /**
|
38 |
| - * @brief Use dbg_sprintf(dbgout, const char*, ...); to print to the emulator console. See the syntax for 'printf' for more information |
| 8 | + * @fn void dbg_sprintf(out, const char*, ...) |
| 9 | + * @brief Use to print to the emulator console. See the syntax for 'printf' for more information |
39 | 10 | * @param out can be dbgout (black) or dbgerr (red)
|
40 |
| - * |
41 |
| - * void dbg_sprintf(out, const char*, ...); |
42 | 11 | */
|
43 | 12 |
|
44 | 13 | /**
|
| 14 | + * @fn void dbg_Debugger(void); |
45 | 15 | * @brief Opens the debugger
|
46 |
| - * |
47 |
| - * void dbg_Debugger(void); |
48 | 16 | */
|
49 | 17 |
|
50 | 18 | /**
|
51 |
| - * @brief Sets a breakpoint at a particualr address in an emulator |
| 19 | + * @fn void dbg_SetBreakpoint(void *address) |
| 20 | + * @brief Sets a breakpoint at a particular address in an emulator |
52 | 21 | * @param address is the address of the breakpoint to set
|
53 |
| - * |
54 |
| - * void dbg_SetBreakpoint(void *address); |
55 | 22 | */
|
56 | 23 |
|
57 | 24 | /**
|
58 |
| - * @brief Removes a breakpoint at a particualr address in an emulator |
| 25 | + * @fn void dbg_RemoveBreakpoint(void *address) |
| 26 | + * @brief Removes a breakpoint at a particular address in an emulator |
59 | 27 | * @param address is the address of the breakpoint to remove
|
60 |
| - * |
61 |
| - * void dbg_RemoveBreakpoint(void *address); |
62 | 28 | */
|
63 | 29 |
|
64 | 30 | /**
|
65 |
| - * @brief Sets a non-breaking watchpoint at a particualr address in an emulator |
| 31 | + * @fn void dbg_SetWatchpoint(void *address, unsigned length) |
| 32 | + * @brief Sets a non-breaking watchpoint at a particular address in an emulator |
66 | 33 | * @param address is the address of the watchpoint to set
|
67 | 34 | * @param length is the size of the data at the address (values 1-4)
|
68 |
| - * |
69 |
| - * void dbg_SetWatchpoint(void *address, unsigned length); |
70 | 35 | */
|
71 | 36 |
|
72 | 37 | /**
|
73 |
| - * @brief Sets a read watchpoint at a particualr address in an emulator |
| 38 | + * @fn void dbg_SetReadWatchpoint(void *address, unsigned length) |
| 39 | + * @brief Sets a read watchpoint at a particular address in an emulator |
74 | 40 | * @param address is the address of the watchpoint to set
|
75 | 41 | * @param length is the size of the data at the address (values 1-4)
|
76 |
| - * |
77 |
| - * void dbg_SetReadWatchpoint(void *address, unsigned length); |
78 | 42 | */
|
79 | 43 |
|
80 | 44 | /**
|
81 |
| - * @brief Sets a write watchpoint at a particualr address in an emulator |
| 45 | + * @fn void dbg_SetWriteWatchpoint(void *address, unsigned length) |
| 46 | + * @brief Sets a write watchpoint at a particular address in an emulator |
82 | 47 | * @param address is the address of the watchpoint to set
|
83 | 48 | * @param length is the size of the data at the address (values 1-4)
|
84 |
| - * |
85 |
| - * void dbg_SetWriteWatchpoint(void *address, unsigned length); |
86 | 49 | */
|
87 | 50 |
|
88 | 51 | /**
|
89 |
| - * @brief Sets a read and write watchpoint at a particualr address in an emulator |
| 52 | + * @fn void dbg_SetReadWriteWatchpoint(void *address, unsigned length) |
| 53 | + * @brief Sets a read and write watchpoint at a particular address in an emulator |
90 | 54 | * @param address is the address of the watchpoint to set
|
91 | 55 | * @param length is the size of the data at the address (values 1-4)
|
92 |
| - * |
93 |
| - * void dbg_SetReadWriteWatchpoint(void *address, unsigned length); |
94 | 56 | */
|
95 | 57 |
|
96 | 58 | /**
|
97 |
| - * @brief Removes a watchpoint at a particualr address in an emulator |
| 59 | + * @fn void dbg_RemoveWatchpoint(void *address) |
| 60 | + * @brief Removes a watchpoint at a particular address in an emulator |
98 | 61 | * @param address is the address of the watchpoint to remove
|
99 |
| - * |
100 |
| - * void dbg_RemoveWatchpoint(void *address); |
101 | 62 | */
|
102 | 63 |
|
103 | 64 | /**
|
| 65 | + * @fn void dbg_RemoveAllBreakpoints(void) |
104 | 66 | * @brief Removes all breakpoints in an emulator
|
105 |
| - * |
106 |
| - * void dbg_RemoveAllBreakpoints(void); |
107 | 67 | */
|
108 | 68 |
|
109 | 69 | /**
|
| 70 | + * @fn void dbg_RemoveAllWatchpoints(void) |
110 | 71 | * @brief Removes all watchpoints in an emulator
|
111 |
| - * |
112 |
| - * void dbg_RemoveAllWatchpoints(void); |
113 | 72 | */
|
114 | 73 |
|
115 |
| -/** |
116 |
| - * Preprocessor definitions (should not be looked at :P) |
117 |
| - */ |
| 74 | +/* Preprocessor definitions (should not be looked at :P) */ |
118 | 75 | #ifdef dbg_Debugger
|
119 | 76 | #undef dbg_Debugger
|
120 | 77 | #endif
|
|
197 | 154 | #define dbgerr (NULL)
|
198 | 155 | #endif
|
199 | 156 |
|
200 |
| -/** |
201 |
| - * simple function prototypes (should not ever be used or even looked at) |
202 |
| - */ |
| 157 | +/* simple function prototypes (should not ever be used or even looked at) */ |
203 | 158 | void SetBreakpoint(void *address);
|
204 | 159 | void RemoveBreakpoint(void *address);
|
205 | 160 | void SetWatchpoint(void *address, unsigned length);
|
|
0 commit comments