|
|
Re: kgdb on arm for 2.6: msg#00114
linux.kernel.debugging.kgdb.bugs
|
Subject: |
Re: kgdb on arm for 2.6 |
Lance Spaulding wrote:
George Anzinger wrote:
Hm... Looks like a gdb bug then. The trace you did not show is the
6.0 gdb on the 2.6 kgdb. That would be most interesting. What I am
seeing below is the 2.4 kgdb is doing the full single step on its
own. What I would expect to see the 6.0 gdb on the 2.6 kgdb doing is
fetching the instruction, doing what ever side effects the instruction
generates such as changing the PC and registers and, possibly memory.
George
Hm... Yes, it does not even try to do a hw "s" but just gets to doing the
needed breakpoint and so on. Looks like gdb got dumbed down for 6.2.
Here's a single step with gdb 6.0 on 2.6:
GNU DDD 3.3.11 (i686-pc-linux-gnu), by Dorothea Lütkehaus and Andreas
Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
Copyright © 2001 Universität des Saarlandes, Germany.
Copyright © 2001-2004 Free Software Foundation, Inc.
(gdb) target remote lcsdebug6:4013
Sending packet: $Hc-1#09...Nak
Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received: QC0000000000000001
Sending packet: $qOffsets#4b...Ack
Packet received:
Sending packet: $?#3f...Ack
Packet received: S05
Sending packet: $Hg1#e0...Ack
Packet received: OK
Sending packet: $g#67...Ack
Packet received:
01000000680000000100000024631e00cc631e000301000001000000010000000000d01f040000003c100000503ea400543ea400403ea400103f0800d450040000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $m450d4,4#fe...Ack
Packet received: ffdeffe7
Sending packet: $m450d4,4#fe...Ack
Packet received: ffdeffe7
Sending packet: $m450d4,4#fe...Ack
Packet received: ffdeffe7
0x000450d4 in $d () at err.h:18
warning: shared library handler failed to enable breakpoint
Sending packet: $qSymbol::#5b...Ack
Packet received:
Packet qSymbol (symbol-lookup) is NOT supported
(gdb) show version
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux".
(gdb) si
Sending packet: $m450d4,4#fe...Ack
Packet received: ffdeffe7
Sending packet: $Z0,450d8,4#4b...Ack
Packet received: OK
Packet Z0 (software-breakpoint) is supported
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
[New Thread 1]
Sending packet: $g#67...Ack
Packet received:
01000000680000000100000024631e00cc631e000301000001000000010000000000d01f040000003c100000503ea400543ea400403ea400103f0800d850040000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $z0,450d8,4#6b...Ack
Packet received: OK
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $m450dc,4#2d...Ack
Packet received: 002083e5
Sending packet: $m450e0,4#fb...Ack
Packet received: 10a89de8
0x000450d8 in $a () at err.h:18
(gdb) si
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $Z0,450dc,4#76...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received:
01000000680000000000000024631e00cc631e000301000001000000010000000000d01f040000003c100000503ea400543ea400403ea400103f0800dc50040000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $z0,450dc,4#96...Ack
Packet received: OK
Sending packet: $m450dc,4#2d...Ack
Packet received: 002083e5
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $m450dc,4#2d...Ack
Packet received: 002083e5
Sending packet: $m450dc,4#2d...Ack
Packet received: 002083e5
Sending packet: $m450d8,4#02...Ack
Packet received: 012042e2
Sending packet: $m450dc,4#2d...Ack
Packet received: 002083e5
Sending packet: $m450e0,4#fb...Ack
Packet received: 10a89de8
(gdb)
Single-stepping one instruction at a time seems to work OK but I found
that using "next" or "step" still isn't working right for me (I'm
getting an invalid value in the reply -- still trying to isolate this
one to make sure its not something I'm doing).
Again, the "set debug remote 1" thing will show what request it had trouble
with while trying to do the next or step (these are really nothing but a
series of "si"s). I am assuming this is NOT an SMP box, right?
--
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_idv37&alloc_id865&op=click
|
|