4.104.114.84.95
Last change
on this file since b459526 was
b459526,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/30/00 at 08:18:56
|
2000-08-26 Rosimildo da Silva <rdasilva@…>
- shared/comm: Added "/dev/ttyS1" & "/dev/ttyS2" support for
the i386 BSPs.
- shared/comm/gdb_glue.c: New file.
- shared/comm/i386_io.c: New file.
- shared/comm/tty_drv.c: New file.
- shared/comm/tty_drv.h: New file.
- shared/comm/Makefile.am: Account for new files.
- shared/comm/uart.c: Adds support for sending characters to
another "line discipline."
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* gdb_glue |
---|
2 | * |
---|
3 | * Interface to initialize the GDB. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1998. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * Copyright assigned to U.S. Government, 1994. |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #include <bsp.h> |
---|
17 | #include <stdio.h> |
---|
18 | #include <uart.h> |
---|
19 | |
---|
20 | #define BREAKPOINT() asm(" int $3"); |
---|
21 | |
---|
22 | extern int BSPConsolePort; |
---|
23 | |
---|
24 | /* Init GDB glue */ |
---|
25 | void init_remote_gdb( void ) |
---|
26 | { |
---|
27 | if(BSPConsolePort != BSP_UART_COM2) |
---|
28 | { |
---|
29 | /* |
---|
30 | * If com2 is not used as console use it for |
---|
31 | * debugging |
---|
32 | */ |
---|
33 | |
---|
34 | i386_stub_glue_init(BSP_UART_COM2); |
---|
35 | printf( "Remote GDB using COM2...\n" ); |
---|
36 | |
---|
37 | } |
---|
38 | else |
---|
39 | { |
---|
40 | /* Otherwise use com1 */ |
---|
41 | i386_stub_glue_init(BSP_UART_COM1); |
---|
42 | printf( "Remote GDB using COM1...\n" ); |
---|
43 | } |
---|
44 | |
---|
45 | printf( "Remote GDB: setting traps...\n" ); |
---|
46 | /* Init GDB stub itself */ |
---|
47 | set_debug_traps(); |
---|
48 | |
---|
49 | |
---|
50 | printf( "Remote GDB: waiting remote connection....\n" ); |
---|
51 | |
---|
52 | /* |
---|
53 | * Init GDB break in capability, |
---|
54 | * has to be called after |
---|
55 | * set_debug_traps |
---|
56 | */ |
---|
57 | i386_stub_glue_init_breakin(); |
---|
58 | |
---|
59 | /* Put breakpoint in */ |
---|
60 | /* breakpoint(); */ |
---|
61 | /* BREAKPOINT(); */ |
---|
62 | } |
---|
63 | |
---|
Note: See
TracBrowser
for help on using the repository browser.