PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/testbed/pc386-gdb.c

http://rtems-atapi.googlecode.com/
C | 39 lines | 12 code | 8 blank | 19 comment | 0 complexity | c8a8dd47e68d1fad187aac117e09effd MD5 | raw file
 1/*
 2 *  $Id$
 3 *
 4 * RTEMS Project (http://www.rtems.org/)
 5 *
 6 * Copyright 2007 Chris Johns (chrisj@rtems.org)
 7 */
 8
 9/**
10 * PC386 GDB support.
11 */
12
13#include <stdio.h>
14
15#include <bsp.h>
16#include <uart.h>
17
18void
19pc386_gdb_init ()
20{
21  printf ("GDB Initialisation\n");
22
23  i386_stub_glue_init (BSP_UART_COM1);
24
25  /*
26   * Init GDB stub itself
27   */
28  set_debug_traps();
29
30  /*
31   * Init GDB break in capability, has to be called after set_debug_traps
32   */
33  i386_stub_glue_init_breakin();
34
35  /*
36   * Put breakpoint in and stop and wait for GDB.
37   */
38  breakpoint();
39}