Hello,
 I have a pb using kgdb on a 2.6.30 kernel over a serial line .

 I have given this kernel command line to the test machine :
  ro kgdb=/dev/ttyS0,115200 kgdboc=ttyS0,115200 

 On the test machine, from the root directory of 2.6.30 sources I launch ddd 
vmlinux.
Then within ddd, I type: set remotebaud 115200,
 set debug remote 1

Then back to the test machine, within a terminal , I type as root :
 echo g > /proc/sysrq-trigger that freezes the test machine .
 
Finally back in the development machine, within ddd I type :
 target remote /dev/ttyS0  and here is what ddd displays :

(gdb) target remote /dev/ttyS0
Sending packet: $qSupported#37...Sending packet: $qSupported#37...Sending 
packet: $qSupported#37...Sending packet: $qSupported#37...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Packet qSupported (supported-packets) is supported
warning: unrecognized item "timeout" in "qSupported" response
Sending packet: $?#3f...Sending packet: $?#3f...Sending packet: $?#3f...Sending 
packet: $?#3f...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $Hc-1#09...Sending packet: $Hc-1#09...Sending packet: 
$Hc-1#09...Sending packet: $Hc-1#09...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qC#b4...Sending packet: $qC#b4...Sending packet: 
$qC#b4...Sending packet: $qC#b4...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qOffsets#4b...Sending packet: $qOffsets#4b...Sending packet: 
$qOffsets#4b...Sending packet: $qOffsets#4b...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Malformed response to offset query, timeout
(gdb) 


If I add 'kgdbwait' option in the test machine kernel command line options
the kernel stops on the test machine, and I succeed to attach gdb from the dev 
machine to the kernel test machine.
Breaking on printk function works for the first times first or second hundreds, 
but if I ask to ignore 500 printk's before the kernel stops, it actually 
doesn't stop and stays stalled . 
Do you have an idea of the way to fix that ?

 Thanks a lot,
 Cédric
  
 



      
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to