/testbed/pc386-gdb.c
http://rtems-atapi.googlecode.com/ · C · 39 lines · 12 code · 8 blank · 19 comment · 0 complexity · c8a8dd47e68d1fad187aac117e09effd MD5 · raw file
- /*
- * $Id$
- *
- * RTEMS Project (http://www.rtems.org/)
- *
- * Copyright 2007 Chris Johns (chrisj@rtems.org)
- */
- /**
- * PC386 GDB support.
- */
- #include <stdio.h>
- #include <bsp.h>
- #include <uart.h>
- void
- pc386_gdb_init ()
- {
- printf ("GDB Initialisation\n");
- i386_stub_glue_init (BSP_UART_COM1);
- /*
- * Init GDB stub itself
- */
- set_debug_traps();
- /*
- * Init GDB break in capability, has to be called after set_debug_traps
- */
- i386_stub_glue_init_breakin();
- /*
- * Put breakpoint in and stop and wait for GDB.
- */
- breakpoint();
- }