forked from Imagelibrary/rtems
2007-12-03 Chris Johns <chrisj@rtems.org>
* console/console.c: Set the baud rate for stdin to 19200 when opening the console. This is the default rate for the dbug monitor. * gdb-init: New.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2007-12-03 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* console/console.c: Set the baud rate for stdin to 19200 when
|
||||
opening the console. This is the default rate for the dbug
|
||||
monitor.
|
||||
* gdb-init: New.
|
||||
|
||||
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspstart.c: Eliminate the interrupt_vector_table field in the
|
||||
|
||||
@@ -722,6 +722,20 @@ rtems_device_driver console_open(
|
||||
}
|
||||
}
|
||||
|
||||
if (status == RTEMS_SUCCESSFUL)
|
||||
{
|
||||
/*
|
||||
* Reset the default baudrate.
|
||||
*/
|
||||
struct termios term;
|
||||
if (tcgetattr (STDIN_FILENO, &term) >= 0)
|
||||
{
|
||||
term.c_cflag &= ~(CBAUD | CSIZE);
|
||||
term.c_cflag |= CS8 | B19200;
|
||||
tcsetattr (STDIN_FILENO, TCSANOW, &term);
|
||||
}
|
||||
}
|
||||
|
||||
return( status );
|
||||
}
|
||||
|
||||
|
||||
29
c/src/lib/libbsp/m68k/mcf5235/gdb-init
Normal file
29
c/src/lib/libbsp/m68k/mcf5235/gdb-init
Normal file
@@ -0,0 +1,29 @@
|
||||
#
|
||||
# Connect to the target.
|
||||
#
|
||||
target remote | m68k-bdm-gdbserver pipe /dev/bdmcf0
|
||||
|
||||
#
|
||||
# The console loop the Axman dbug monitor. Found by trial and error
|
||||
# with the debugger.
|
||||
#
|
||||
hb *0xffe254c0
|
||||
|
||||
#
|
||||
# Run to initialise the RAM. The target will stop when the
|
||||
# breakpoint is hit. Load the program.
|
||||
#
|
||||
c
|
||||
load
|
||||
|
||||
#
|
||||
# Break on an exception.
|
||||
#
|
||||
b _uhoh
|
||||
|
||||
#
|
||||
# Travel to main then stop.
|
||||
#
|
||||
tb main
|
||||
c
|
||||
|
||||
Reference in New Issue
Block a user