logo       

Re: kgdb on arm for 2.6: msg#00128

linux.kernel.debugging.kgdb.bugs

Subject: Re: kgdb on arm for 2.6

For this you will need an ARM dude. That is not me...

George
--

Lance Spaulding wrote:
George Anzinger wrote:

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.



Hi again,

Using gdb 6.0 most things are working but I've found that I cannot view the state of the cpsr (current program status register). With the current kgdb and 2.6 it always shows 0 whereas with the old kgdb and 2.4, I see correct values (same version of gdb and ddd in both cases). When stepping through the code I can see the cpsr is not zero as it gets sometimes copied to registers which I can view correctly. Here's the debug trace from breakpoint(), then calling local_irq_disable() and local_irq_enable() which should modify the cpsr but gdb isn't showing the changes even though the other registers are being updated:

(gdb) target remote lcsdebug6:4013
0x000465dc in $d () at err.h:18
/home/lance/cpb/arm/os/linux-2.6.x/include/linux/err.h:18:429:beg:0x465dc
warning: shared library handler failed to enable breakpoint
(gdb) set debug remote 1
(gdb) up
Sending packet: $m465dc,4#33...Ack
Packet received: ffdeffe7
Sending packet: $m8344c,4#03...Ack
Packet received: 00300fe1
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: 00300fe1
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $m8344c,4#03...Ack
Packet received: 00300fe1
#1 0x0008344c in load_flat_binary (bprm=0xafa288, regs=0xaa1f6c) at fs/binfmt_flat.c:848
(gdb) break fs/binfmt_flat.c:849
Breakpoint 1 at 0x8344c: file fs/binfmt_flat.c, line 849.
(gdb) cont
Sending packet: $Z0,8344c,4#4c...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: 88a2af006c1faa00000000008c932100a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408004c34080000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $z0,8344c,4#6c...Ack
Packet received: OK

Breakpoint 1, load_flat_binary (bprm=0xafa288, regs=0xaa1f6c) at fs/binfmt_flat.c:849
(gdb) stepi
Sending packet: $m8344c,4#03...Ack
Packet received: 00300fe1
Sending packet: $Z0,83450,4#1a...Ack
Packet received: OK
Sending packet: $Hc1#dc...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received: 88a2af006c1faa000000000013000060a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408005034080000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $z0,83450,4#3a...Ack
Packet received: OK
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: 00300fe1
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
(gdb) stepi
Sending packet: $Z0,8344c,4#4c...Ack
Packet received: OK
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $Z0,83454,4#1e...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received: 88a2af006c1faa000000000093000060a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408005434080000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $z0,83454,4#3e...Ack
Packet received: OK
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $z0,8344c,4#6c...Ack
Packet received: OK
(gdb) stepi
Sending packet: $Z0,8344c,4#4c...Ack
Packet received: OK
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $Z0,83458,4#22...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received: 88a2af006c1faa000000000093000060a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408005834080000000000000000000000000000000000000000000000000000000000000000000000000093000060
Sending packet: $z0,83458,4#42...Ack
Packet received: OK
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $z0,8344c,4#6c...Ack
Packet received: OK
(gdb) stepi
Sending packet: $Z0,8344c,4#4c...Ack
Packet received: OK
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $Z0,8345c,4#4d...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received: 88a2af006c1faa000000000093000060a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408005c34080000000000000000000000000000000000000000000000000000000000000000000000000093000060
Sending packet: $z0,8345c,4#6d...Ack
Packet received: OK
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $z0,8344c,4#6c...Ack
Packet received: OK
(gdb) stepi
Sending packet: $Z0,8344c,4#4c...Ack
Packet received: OK
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $Z0,83460,4#1b...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received: 88a2af006c1faa000000000013000060a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408006034080000000000000000000000000000000000000000000000000000000000000000000000000093000060
Sending packet: $z0,83460,4#3b...Ack
Packet received: OK
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $z0,8344c,4#6c...Ack
Packet received: OK
(gdb) stepi
Sending packet: $Z0,8344c,4#4c...Ack
Packet received: OK
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $Z0,83464,4#1f...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T05thread:0000000000000001;
Sending packet: $g#67...Ack
Packet received: 88a2af006c1faa000000000013000060a8c5190088a2af006c1faa00feffffff6c1faa006c1faa0010971900181faa00781caa00781caa004c3408006434080000000000000000000000000000000000000000000000000000000000000000000000000013000060
Sending packet: $z0,83464,4#3f...Ack
Packet received: OK
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83430,4#cf...Ack
Packet received: 0dc0a0e1
Sending packet: $m83434,4#d3...Ack
Packet received: f0d92de9
Sending packet: $m83438,4#d7...Ack
Packet received: 04b04ce2
Sending packet: $m8343c,4#02...Ack
Packet received: 0add4de2
Sending packet: $m83440,4#d0...Ack
Packet received: 0050a0e1
Sending packet: $m83444,4#d4...Ack
Packet received: 0160a0e1
Sending packet: $m83448,4#d8...Ack
Packet received: 4f0cffeb
Sending packet: $m8344c,4#03...Ack
Packet received: fedeffe7
Sending packet: $m83450,4#d1...Ack
Packet received: 803083e3
Sending packet: $m83454,4#d5...Ack
Packet received: 03f021e1
Sending packet: $m83458,4#d9...Ack
Packet received: 00300fe1
Sending packet: $m8345c,4#04...Ack
Packet received: 8030c3e3
Sending packet: $m83460,4#d2...Ack
Packet received: 03f021e1
Sending packet: $m83464,4#d6...Ack
Packet received: 7c059fe5
Sending packet: $m83468,4#da...Ack
Packet received: 0510a0e1
Sending packet: $m8346c,4#05...Ack
Packet received: 0620a0e1
Sending packet: $z0,8344c,4#6c...Ack
Packet received: OK
(gdb)

Thanks,
Lance


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport


--
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642


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

News | FAQ | advertise