Re: [Kgdb-bugreport] [PATCH 1/3] KGDB: Major refactoring

2008-02-07 Thread Ingo Molnar

* Jason Wessel [EMAIL PROTECTED] wrote:

  Could you try something else too perhaps, which would be way useful 
  for me: to add a sysctl flag (or something like that) to change 
  kgdboc to accept a Ctrl-C and break into kgdb mode? [this means a 
  simple Ctrl-C on a kgdboc line would break into KGDB as well - but 
  that would be an acceptable price.] Right now kgdboc just hangs when 
  gdb attaches - i have to generate a SysRq sequence via a terminal 
  emulator to break it into KGDB mode.
 
 FYI, even if you were to hack in a control-c vs sysrq, gdb will still 
 hang on connect because it does not issue a break of any kind when it 
 connects.  It assumes the connection is in a usable state.

sigh. That's quite a usability barrier IMHO.

 The proxy spliter automatically sends the break (or in the current 
 case the sysrq g)

any link to the proxy splitter? Googling for kgdb proxy splitter did 
not yield anything obviously on-topic.

Ingo

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport


Re: [Kgdb-bugreport] [PATCH 1/3] KGDB: Major refactoring

2008-02-06 Thread Ingo Molnar

* Jan Kiszka [EMAIL PROTECTED] wrote:

 As most changes are tightly coupled, this refactoring patch for
 KGDB_8250 as well as the core and the new KGDBOC driver comes as a
 single chunk. The changes are:
  - Reorganized configuration: I/O drivers can be independently
configured as module or built-in
  - Dynamic reconfiguration for KGDB_8250 (just like for KGDBOC)
  - Reworked KGDB_8250 configuration string format
  - attachwait removed, arming the debugger via assigning an I/O driver
implies attachwait
  - Cleaned up I/O driver managment of the core
  - Matured the various boot-up, configure, unconfigure code paths for
both I/O drivers
  - IRQ vs. KGDB_CONSOLE-output SMP race fixed for KGDB_8250
  - Reduced and cleaned up hooks into serial_core/8250
  - Kconfig cleanups

great stuff! I've picked these cleanups up into x86.git. (will pick up 
Jason's commits too)

Could you try something else too perhaps, which would be way useful for 
me: to add a sysctl flag (or something like that) to change kgdboc to 
accept a Ctrl-C and break into kgdb mode? [this means a simple Ctrl-C on 
a kgdboc line would break into KGDB as well - but that would be an 
acceptable price.] Right now kgdboc just hangs when gdb attaches - i 
have to generate a SysRq sequence via a terminal emulator to break it 
into KGDB mode.

This would make kgdboc way more practical without having to resort to a 
protocol splitting proxy, etc.

Ingo

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport


Re: [Kgdb-bugreport] [PATCH 1/3] KGDB: Major refactoring

2008-02-05 Thread Jason Wessel
Jan Kiszka wrote:
 As most changes are tightly coupled, this refactoring patch for
 KGDB_8250 as well as the core and the new KGDBOC driver comes as a
 single chunk. The changes are:
  - Reorganized configuration: I/O drivers can be independently
configured as module or built-in
  - Dynamic reconfiguration for KGDB_8250 (just like for KGDBOC)
  - Reworked KGDB_8250 configuration string format
  - attachwait removed, arming the debugger via assigning an I/O driver
implies attachwait
  - Cleaned up I/O driver managment of the core
  - Matured the various boot-up, configure, unconfigure code paths for
both I/O drivers
  - IRQ vs. KGDB_CONSOLE-output SMP race fixed for KGDB_8250
  - Reduced and cleaned up hooks into serial_core/8250
  - Kconfig cleanups

 What we no longer have:
  - Simple serial configuration for _early_ debugging, use the io/mem
format instead or wait until the debugger is able to resolve ttySx
during late-init

 To-do:
  - KGDBOC does not yet cleanly interacts with the TTY subsystem to
attach to some console

 Signed-off-by: Jan Kiszka [EMAIL PROTECTED]
   

Jan,

I pulled in all your changes and made some minor white space fixes. 

I started the 2.6.25 branch with all Ingo's changes, your changes and
several additional patches I received.

http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=summary

Thanks,
Jason.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport