NetBurner 3.1
gdbstub.h
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
5 #ifndef _GDB_MON_H
6 #define _GDB_MON_H
7 
8 /* GDB Stub functions */
9 /*Module: GDB Stub
10 This Module provides code for operating a serial GDB stub.
11 This is used to debug programs running on a NetBurner system.
12 More information can be fount in ..nburn/docs/gdb/GDB-Gettingstarted
13 */
14 
15 /*Functions:*/
16 /*Group:Stub Initialization functions*/
17 /* Start the GDB stub and then immediatly stop at a break point */
18 /*
19 This function will start the GDB stub, and will stop immediatly at
20 a breakpoint. This function is best used during development to
21 stop the system from executing questionable code at startup.
22 It is also useful to control the system execution to debug startup
23 and initialization code.
24 
25 Parameters:
26  int port The serial port to use this can be 0 or 1 coresponding to uart 0 or uart 1
27  int baudrate The baud rate to use on the port.
28 
29 
30 */
31 /*See Also:
32  void InitGDBStubNoBreak(int port, int baudrate);
33 */
34 void InitGDBStub(int port, int baudrate);
35 
36 /* Start the GDB stub and continue without stopping */
37 /*
38 This function will start the GDB stub, and continue with normal
39 program execution. This function is best used to debug a program that
40 is operating correctly and has intermitant bugs or anomallies.
41 The program will run as normal until you connect the debugger.
42 Thus you can operate the program until one needs to debug it.
43 
44 Parameters:
45  int port The serial port to use this can be 0 or 1 coresponding to uart 0 or uart 1
46  int baudrate The baud rate to use on the port.
47 
48 
49 */
50 /*See Also:
51  void InitGDBStub(int port, int baudrate);
52 */
53 void InitGDBStubNoBreak(int port, int baudrate);
54 
55 #endif