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:
Chris Johns
2007-12-03 02:16:25 +00:00
parent 7b57da65ad
commit 7ace3828e5
3 changed files with 50 additions and 0 deletions

View File

@@ -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

View File

@@ -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 );
}

View 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