Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Dec 2007 20:13:33 -0800
From:      Julian Elischer <julian@ironport.com>
To:        FreeBSD Current <current@freebsd.org>
Subject:   remote gdb failures in recent builds (last 6 months or so.)
Message-ID:  <4754D3ED.3060200@ironport.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010309050009000007020103
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


Here's a trace of kgdb attempting to sync with a kernel over the serial 
port..

--->    "+"

--->    "$Hc-1#09"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$Hc-1#09"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$Hc-1#09"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$Hc-1#09"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "-"

   <--- "$T058:e3375ac0;thread:186c5;#b5$"

--->    "+"

--->    "$qC#b4"

   <--- "T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$qC#b4"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$qC#b4"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$qC#b4"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "-"

   <--- "$T058:e3375ac0;thread:186c5;#b5$"

--->    "+"

--->    "$qOffsets#4b"

   <--- "T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$qOffsets#4b"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$qOffsets#4b"

   <--- "$T058:e3375ac0;thread:186c5;#b5$T058:e3375ac0;thread:186c5;#b5"

--->    "$qOffsets#4b"

--->    "-"

   <--- "$T058:e3375ac0;thread:186c5;#b5$"

--->    "+"

"Couldn't establish connection to remote target 

"

"Malformed response to offset query, T058:e3375ac0;thread:186c5;"

note that:
1/ gdb CAN read the damned data.. this is obtained from ktrace.
2/ it prints out the packet in the error message.
3/ teh kernel is sending each message twice, in pairs.
4/ after kgdb finally sends a '-' (NAK) teh kernel sends ONE MORE
which seems to be accepted

Anyone have any clues?




~                                                                      


--------------010309050009000007020103--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4754D3ED.3060200>