logo       

Re: kgdb on arm for 2.6: msg#00099

linux.kernel.debugging.kgdb.bugs

Subject: Re: kgdb on arm for 2.6

Lance Spaulding wrote:
Amit Kale wrote:

arm processor doesn't contain hardware support for single step. gdb is aware of this and uses breakpoints for this purpose. It sends an 's' packet, which if failed tells gdb that stub doesn't support single stepping. Gdb uses breakpoints after that.

-Amit

How do I get gdb to do this? When I try to single-step I get the "invalid reply" message then gdb is basically hung. I'm using gdb v6.1. Also for reference, single-stepping works fine on the same platform using a old (~ 2 years) version of kgdb and a 2.4 kernel. It's just the new 2.6 version of kgdb that I can't get working right.

I suspect that the new code is not "correctly" rejecting the "s". Could you, with the old 2.4 version, do:
set debug remote 1
si


Then, if you like, you could compare with the new version. I suspect the reply to the "si" command is different. It looks like the current reply is <nil> (i.e. there is a packet but it is just $#<CS> which are all overhead characters).


--
George Anzinger george@xxxxxxxxxx
HRT (High-res-timers): http://sourceforge.net/projects/high-res-timers/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise