* Re: gdbserver-6.3 : Next command gets stuck then zooms.
@ 2006-01-10 22:25 vexspam-gdbmail
2006-01-11 4:20 ` Daniel Jacobowitz
2006-01-11 5:27 ` Nathan J. Williams
0 siblings, 2 replies; 5+ messages in thread
From: vexspam-gdbmail @ 2006-01-10 22:25 UTC (permalink / raw)
To: gdb
Hey Daniel,
Any pointers on where I should start looking - or an approach to
debugging the debugger?
I'm roaming the gdbserver and kernel sources right now.
In the Virtex-4 (405-ish as you know) the MSR doesn't have a single step
enable (SE bit) - it does have a debug interrupt enable (DE bit).
If you know - what is the expected flow of operations I should be seeing
for the next command?
I'm trying to wrap my head around where I should be looking to fix my
broken kernel.
Thanks
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdbserver-6.3 : Next command gets stuck then zooms.
2006-01-10 22:25 gdbserver-6.3 : Next command gets stuck then zooms vexspam-gdbmail
@ 2006-01-11 4:20 ` Daniel Jacobowitz
2006-01-11 5:27 ` Nathan J. Williams
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-01-11 4:20 UTC (permalink / raw)
To: vexspam-gdbmail; +Cc: gdb
On Tue, Jan 10, 2006 at 03:25:43PM -0700, vexspam-gdbmail@usa.net wrote:
> Hey Daniel,
>
> Any pointers on where I should start looking - or an approach to
> debugging the debugger?
>
> I'm roaming the gdbserver and kernel sources right now.
>
> In the Virtex-4 (405-ish as you know) the MSR doesn't have a single step
> enable (SE bit) - it does have a debug interrupt enable (DE bit).
>
> If you know - what is the expected flow of operations I should be seeing
> for the next command?
>
> I'm trying to wrap my head around where I should be looking to fix my
> broken kernel.
Sorry, I haven't a clue how it's supposed to work; I've just
encountered a greater than normal percentage of broken 4xx kernels ;-)
The kernel list may be more helpful.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdbserver-6.3 : Next command gets stuck then zooms.
2006-01-10 22:25 gdbserver-6.3 : Next command gets stuck then zooms vexspam-gdbmail
2006-01-11 4:20 ` Daniel Jacobowitz
@ 2006-01-11 5:27 ` Nathan J. Williams
1 sibling, 0 replies; 5+ messages in thread
From: Nathan J. Williams @ 2006-01-11 5:27 UTC (permalink / raw)
To: vexspam-gdbmail; +Cc: gdb
vexspam-gdbmail@usa.net writes:
> In the Virtex-4 (405-ish as you know) the MSR doesn't have a single step
> enable (SE bit) - it does have a debug interrupt enable (DE bit).
>
> If you know - what is the expected flow of operations I should be seeing
> for the next command?
Roughly, what the kernel should do is to set the DE bit in the MSR and
also set the Instruction Complete (ICMP) bit in DBCR0, which gives you
a trap after each instruction. However, you have to be sure your trap
handler for the debug exception can handle (ignore and return from,
mostly) debug traps that happen at the first instruction of *other*
exception handlers, because the DE bit of the MSR isn't cleared when,
for example, you take a TLB miss exception.
So gdbserver calls ptrace(PTRACE_SSTEP), the kernel turns on ICMP and
sets DE in the process's MSR, returns to userland, takes a TLB miss on
the instruction for whatever reason, enters the TLB miss handler, and
then takes a debug exception for the completion of the first
instruction in the TLB miss handler. The debug exception handler needs
to notice this (perhaps by checking the value of CSRR0 against known
kernel code addresses or known exception handler code addresses),
clear DE in CSRR1 but leave it alone in SRR1, and return to the TLB
miss handler. The miss handler will then finish unmolested and return
to the program, which can *then* trigger the debug exception for
completing an instruction you were actually interested in.
Have fun!
- Nathan
^ permalink raw reply [flat|nested] 5+ messages in thread
* gdbserver-6.3 : Next command gets stuck then zooms.
@ 2006-01-10 20:09 vexspam-gdbmail
2006-01-10 21:43 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: vexspam-gdbmail @ 2006-01-10 20:09 UTC (permalink / raw)
To: gdb
Hey folks,
I'm in a pickle - for my x86 to ppc405 setup the gdb next command
does not move off the source line where I place a breakpoint.
I'm thinking the trouble lies either in gdbserver or in the target kernel.
Perhaps someone has seen a similar symptom and can point me in the right
direction. Any help would be great.....
Please forgive the length of the post - I thought it would be best to
provide as much information as possible as early as possible.
I have gdb-6.3 compiled for x86 chatting to gdbserver cross compiled
using powerpc-405-linux-gnu-gcc.
gdb stops at the breakpoint I have defined but the 'next' command refuses
to move off that source line. After using the next command four or five
times the program being debugged continues to completion.
gdbserver does return a trap at the line with the breakpoint but
continues to trap at that same address.
From the log below.....
Sending packet: $vCont;s#b8...Ack <--- Continue
Packet received: T0501:7fcf8be0;40:10000304; <--- WTF! We're @ same addr
The target program is simple and compiled static.
powerpc-405-linux-gnu-gcc -g -static -o test405 main.c
Size approx 500K....
--- On the target ---
AppSpec demo] /mnt $ ./gdbser~1 foo:2001 test405
Process test405 created; pid = 164
Listening on port 2001
Remote debugging from host 192.168.1.101
Inside FooLine One
Line Two
Line Three
Line Four
Line Five
Child exited with retcode = 34
Child exited with status 52
GDBserver exiting
--- On the host ---
[jgibbons@nebula ~/test405]$ powerpc-405-linux-gnu-gdb
GNU gdb 6.3
Copyright 2004 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=powerpc-405-linux-gnu".
(gdb) file test405
Reading symbols from /home/jgibbons/test405/test405...done.
(gdb) set debug remote 1
(gdb) target remote 192.168.1.210:2001
Remote debugging using 192.168.1.210:2001
Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received:
Sending packet: $qOffsets#4b...Ack
Packet received:
Sending packet: $?#3f...Ack
Packet received: T0501:7fcf8e20;40:10000100;
0x10000100 in _start ()
Sending packet: $qSymbol::#5b...Ack
Packet received: qSymbol:5f5f707468726561645f746872656164735f6576656e7473
Packet qSymbol (symbol-lookup) is supported
Sending packet:
$qSymbol::5f5f707468726561645f746872656164735f6576656e7473#47...Ack
Packet received: OK
(gdb) list
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
4 {
5 printf("Inside Foo");
6 }
7
8
9 main()
10 {
11 static int findme = 1;
12
13 jrgfoo();
(gdb) list 1
1 #include <stdio.h>
2
3 jrgfoo()
4 {
5 printf("Inside Foo");
6 }
7
8
9 main()
10 {
(gdb)
11 static int findme = 1;
12
13 jrgfoo();
14
15 printf("Line One\n");
16
17 printf("Line Two\n");
18
19 printf("Line Three\n");
20
(gdb)
21 printf("Line Four\n");
22
23 printf("Line Five\n");
24
25 }
(gdb) b 17
Breakpoint 1 at 0x10000304: file main.c, line 17.
(gdb) c
Continuing.
Sending packet: $vCont?#49...Ack
Packet received: vCont;c;C;s;S
Packet vCont (verbose-resume) is supported
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8e20;40:10000104;
Sending packet: $Z0,10000100,4#98...Ack
Packet received:
Packet Z0 (software-breakpoint) is NOT supported
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $X10000100,0:#70...Ack
Packet received:
binary downloading NOT suppported by target
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;c#a8...Ack <----- Continue
Packet received: T0501:7fcf8be0;40:10000304; <----- Trap? @ 10000304 : OK
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $Hg0#df...Ack
Packet received: OK
Sending packet: $p1f#07...Ack
Packet received:
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d0302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack <----- Continue
Packet received: T0501:7fcf8be0;40:10000304; <----- WTF! We're @ same addr
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack <----- Continue
Packet received: T0501:7fcf8be0;40:10000304; <--+-- Back again 10000304
Sending packet: $m10000100,4#4f...Ack +-- 0x40 is PC?
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) s
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) s
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000304;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7d821008
Sending packet: $M10000100,4:7c290b78#6f...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 7d821008
Sending packet: $M10000304,4:3d201006#2f...Ack
Packet received: OK
Breakpoint 1, main () at main.c:17
17 printf("Line Two\n");
(gdb) n
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c0000000910037d5c0000001300000013000000000002d03000000000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100003040002d2302400002210000304c00fab3c2000000000000000
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000308;
Sending packet: $m10000100,4#4f...Ack
Packet received: 7c290b78
Sending packet: $M10000100,4:7d821008#37...Ack
Packet received: OK
Sending packet: $m10000304,4#55...Ack
Packet received: 3d201006
Sending packet: $M10000304,4:7d821008#3d...Ack
Packet received: OK
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:1000030c;
Sending packet: $vCont;s#b8...Ack
Packet received: T0501:7fcf8be0;40:10000c30;
Sending packet: $g#67...Ack
Packet received:
100003047fcf8be01005ea2c1005e99010037d5c0000001300000013000000000002d03010060000000000007fcf8b60c06a00001008beb000000000000000000000000000000000000000007fa2fa100000000010060844100002e0100007dc100008b4000000007fcf8e5c7fcf8e24000000017fa4ce0c0ffc5d4c7fcf8be00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000c300002d0302400002210000310c00fab3c2000000000000000
Sending packet: $m100002e0,4#85...Ack
Packet received: 9421ffe0
Sending packet: $m100002e4,4#89...Ack
Packet received: 7c0802a6
Sending packet: $m100002e8,4#8d...Ack
Packet received: 93e1001c
Sending packet: $m100002ec,4#b8...Ack
Packet received: 90010024
Sending packet: $m100002f0,4#86...Ack
Packet received: 7c3f0b78
Sending packet: $m100002f4,4#8a...Ack
Packet received: 4bffffb1
Sending packet: $m7fcf8be0,4#62...Ack
Packet received: 7fcf8c00
Sending packet: $m10000310,4#52...Ack
Packet received: 3d201006
Sending packet: $M10000310,4:7d821008#3a...Ack
Packet received: OK
Sending packet: $vCont;c#a8...Ack
Packet received: W40
Program exited with code 0100.
(gdb)
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: gdbserver-6.3 : Next command gets stuck then zooms.
2006-01-10 20:09 vexspam-gdbmail
@ 2006-01-10 21:43 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-01-10 21:43 UTC (permalink / raw)
To: vexspam-gdbmail; +Cc: gdb
On Tue, Jan 10, 2006 at 01:08:56PM -0700, vexspam-gdbmail@usa.net wrote:
>
> Hey folks,
>
> I'm in a pickle - for my x86 to ppc405 setup the gdb next command
> does not move off the source line where I place a breakpoint.
>
> I'm thinking the trouble lies either in gdbserver or in the target kernel.
> Perhaps someone has seen a similar symptom and can point me in the right
> direction. Any help would be great.....
Sounds like your kernel is broken. The 4xx line has very different
debug hardware than the other PPC families.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-01-11 5:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 22:25 gdbserver-6.3 : Next command gets stuck then zooms vexspam-gdbmail
2006-01-11 4:20 ` Daniel Jacobowitz
2006-01-11 5:27 ` Nathan J. Williams
-- strict thread matches above, loose matches on Subject: below --
2006-01-10 20:09 vexspam-gdbmail
2006-01-10 21:43 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox