[xtensa-cvscommit] linux/arch/xtensa/kernel gdb-stub.c,1.3,1.4
Brought to you by:
zankel
|
From: <sfo...@us...> - 2002-09-22 21:46:52
|
Update of /cvsroot/xtensa/linux/arch/xtensa/kernel
In directory usw-pr-cvs1:/tmp/cvs-serv1995/kernel
Modified Files:
gdb-stub.c
Log Message:
Parameterize serial port and baud rate for kgdb connection.
There are 2 new command line parameters recognized by kgdb:
"gdbbaud=<baud rate>", and "gdbttyS=<serial port>".
The defaults are gdbbaud=9600 and gdbttyS=1 if these parameters are not specified.
Index: gdb-stub.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/kernel/gdb-stub.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** gdb-stub.c 22 Sep 2002 21:18:02 -0000 1.3
--- gdb-stub.c 22 Sep 2002 21:46:48 -0000 1.4
***************
*** 116,119 ****
--- 116,121 ----
int gdb_enter = 0; /* when set, kernel waits for connection from gdb on boot */
+ int gdb_ttyS = 1; /* which serail port to use, default ttyS1 */
+ int gdb_baud = 9600; /* baud rate to use */
int kernel_single_step = 0; /* when set, kernel should single step */
***************
*** 790,794 ****
return 1;
}
__setup("gdb", kgdb_opt_gdb);
-
--- 792,807 ----
return 1;
}
+ static int __init kgdb_opt_gdbttyS(char *str)
+ {
+ gdb_ttyS = simple_strtoul(str,NULL,10);
+ return 1;
+ }
+ static int __init kgdb_opt_gdbbaud(char *str)
+ {
+ gdb_baud = simple_strtoul(str,NULL,10);
+ return 1;
+ }
+ __setup("gdbttyS=", kgdb_opt_gdbttyS);
+ __setup("gdbbaud=", kgdb_opt_gdbbaud);
__setup("gdb", kgdb_opt_gdb);
|