OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [debug_c/] [serial_gdb.c] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  serial_gdb
2
 *
3
 *  Interface to initialize the GDB.
4
 *
5
 *  COPYRIGHT (c) 1989-1999.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *
8
 *  The license and distribution terms for this file may be
9
 *  found in the file LICENSE in this distribution or at
10
 *  http://www.OARcorp.com/rtems/license.html.
11
 *
12
 *  $Id: serial_gdb.c,v 1.2 2001-09-27 11:59:51 chris Exp $
13
 */
14
 
15
#include <uart.h>
16
#include <bspIo.h>
17
 
18
extern int BSPConsolePort;
19
 
20
void i386_stub_glue_init(int);
21
void i386_stub_glue_init_breakin(void);
22
void set_debug_traps(void);
23
 
24
 
25
 /* Init GDB glue  */
26
 
27
void init_serial_gdb( void )
28
{
29
  if(BSPConsolePort != BSP_UART_COM2)
30
    {
31
      /*
32
       * If com2 is not used as console use it for
33
       * debugging
34
       */
35
 
36
      i386_stub_glue_init(BSP_UART_COM2);
37
      printk( "Remote GDB using COM2...\n" );
38
 
39
    }
40
  else
41
    {
42
      /* Otherwise use com1 */
43
      i386_stub_glue_init(BSP_UART_COM1);
44
      printk( "Remote GDB using COM1...\n" );
45
    }
46
 
47
  printk( "Remote GDB: setting traps...\n" );
48
  /* Init GDB stub itself */
49
  set_debug_traps();
50
 
51
 
52
  printk( "Remote GDB: waiting for remote connection...\n" );
53
 
54
  /*
55
   * Init GDB break in capability,
56
   * has to be called after
57
   * set_debug_traps
58
   */
59
  i386_stub_glue_init_breakin();
60
 
61
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.