Re: [RFC] support -b when starting gdb

2013-01-16 Thread John Baldwin
On Wednesday, January 16, 2013 1:30:37 am Adrian Chadd wrote: > Also, I found 'set remotebaud' and 'set debug remote 1' to do this. > > I'd like to add the code just to support the same -b flag as gdb (so > -r can also be used with a non-standard serial port.) I think adding -b is fine. -- John

Re: [RFC] support -b when starting gdb

2013-01-16 Thread Adrian Chadd
It wasn't listed anywhere in the documentation / wiki. I only found it after I had posted that patch. eg: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-online-gdb.html I had to do a whole lot of searching to finally discover that particular option. And yes, it

Re: [RFC] support -b when starting gdb

2013-01-16 Thread Warner Losh
On Jan 16, 2013, at 9:05 AM, Garrett Cooper wrote: > On Jan 16, 2013, at 7:35 AM, Warner Losh wrote: > >> How does 'set remotebaud' not do what you want? >> >> Warner >> >> On Jan 15, 2013, at 10:15 PM, Adrian Chadd wrote: >> >>> Hi, >>> >>> There doesn't seem to be a blessed way to set the

Re: [RFC] support -b when starting gdb

2013-01-16 Thread Garrett Cooper
On Jan 16, 2013, at 7:35 AM, Warner Losh wrote: > How does 'set remotebaud' not do what you want? > > Warner > > On Jan 15, 2013, at 10:15 PM, Adrian Chadd wrote: > >> Hi, >> >> There doesn't seem to be a blessed way to set the baudrate from inside >> gdb/kgdb. It seems to be set from '-b' on

Re: [RFC] support -b when starting gdb

2013-01-16 Thread Warner Losh
How does 'set remotebaud' not do what you want? Warner On Jan 15, 2013, at 10:15 PM, Adrian Chadd wrote: > Hi, > > There doesn't seem to be a blessed way to set the baudrate from inside > gdb/kgdb. It seems to be set from '-b' on the command line. > > However kgdb doesn't have this support. >

Re: [RFC] support -b when starting gdb

2013-01-15 Thread Adrian Chadd
Also, I found 'set remotebaud' and 'set debug remote 1' to do this. I'd like to add the code just to support the same -b flag as gdb (so -r can also be used with a non-standard serial port.) Thanks, Adrian On 15 January 2013 21:15, Adrian Chadd wrote: > Hi, > > There doesn't seem to be a ble

[RFC] support -b when starting gdb

2013-01-15 Thread Adrian Chadd
Hi, There doesn't seem to be a blessed way to set the baudrate from inside gdb/kgdb. It seems to be set from '-b' on the command line. However kgdb doesn't have this support. This patch adds -b support so kgdb so I can override the default speed (9600 it seems) to speak kgdb over serial to a 115