* pthread_create does not return when remote debugging
@ 2003-06-28 7:16 Jon Ringle
2003-06-28 13:43 ` Jon Ringle
2003-06-28 15:01 ` Daniel Jacobowitz
0 siblings, 2 replies; 12+ messages in thread
From: Jon Ringle @ 2003-06-28 7:16 UTC (permalink / raw)
To: gdb
Hi,
I am having an issue when remote debugging a multi-threaded app, a call to
pthread_create hangs inside __pthread_wait_for_restart_signal on the host
gdb.
Thanks in advance.
Jon
I've built a gdb-5.3 cross debugging environment i686 host/arm target with the
following:
$ tar xzf gdb-5.3.tar.gz
$ mkdir gdb-native
$ cd gdb-native
$ ../gdb-5.3/configure --host=i686-pc-linux-gnu \
--target=arm-linux \
--build=i686-pc-linux-gnu
$ make
$ cd ..
$ mkdir gdb-cross
$ cd gdb-cross
$ HOSTCC=gcc CC='arm-linux-gcc -msoft-float' \
../gdb-5.3/configure --host=arm-linux \
--target=arm-linux \
--build=i686-pc-linux-gnu
$ make
$ cd ..
I copy gdb-cross/gdb/gdbserver/gdbserver to the target arm.
On the target, I execute:
# ./gdbserver :5555 test-thread
Process test-thread created; pid = 380
On the host I run:
$ gdb-native/gdb/gdb test-thread
GNU gdb 5.3
Copyright 2002 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) set solib-absolute-prefix /dev/null
(gdb) set solib-search-path /usr/arm-linux/lib
(gdb) target remote 10.10.10.101:5555
Remote debugging using 10.10.10.101:5555
0x400025c0 in ?? ()
(gdb) b pthread_create
Breakpoint 1 at 0x20019e0
(gdb) c
Continuing.
[New Thread 1024]
[Switching to Thread 1024]
Breakpoint 1, 0x020019e0 in pthread_create ()
(gdb) finish
Run till exit from #0 0x020019e0 in pthread_create ()
<<<<< at this point it gdb hangs indefinately. I ctrl-c out >>>>>>
Program received signal SIGINT, Interrupt.
0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
../sysdeps/unix/sysv/linux/sigsuspend.c:48
48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
in ../sysdeps/unix/sysv/linux/sigsuspend.c
(gdb) bt
#0 0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
../sysdeps/unix/sysv/linux/sigsuspend.c:48
#1 0x40101b34 in __pthread_wait_for_restart_signal (self=0x401116e0) at
pthread.c:786
#2 0x40101138 in __pthread_create_2_1 (thread=0x206f8dc, attr=0xbffffc58,
start_routine=0x20043ac <console>, arg=0xbffffd88) at restart.h:26
#3 0x0204b424 in createThread (func=0x20043ac <console>, arg=0xbffffd88,
threadname=0x204f4f0 "console") at thread.c:84
#4 0x020022b8 in main (argc=1, argv=0xbffffdd4) at main.c:168
#5 0x401484a0 in __libc_start_main (main=0x2002054 <main>, argc=1,
argv=0xbffffdd4, init=0x2001848 <_init>, fini=0x204f334 <_fini>,
rtld_fini=0x4000ca60 <_dl_fini>,
stack_end=0xbffffeba) at ../sysdeps/generic/libc-start.c:92
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 7:16 pthread_create does not return when remote debugging Jon Ringle
@ 2003-06-28 13:43 ` Jon Ringle
2003-06-28 15:52 ` Jon Ringle
2003-06-28 15:01 ` Daniel Jacobowitz
1 sibling, 1 reply; 12+ messages in thread
From: Jon Ringle @ 2003-06-28 13:43 UTC (permalink / raw)
To: gdb
Updated output below to have 'set debug remote 1' just before the hang...
Seems like it would be useful information.
Jon
On Saturday 28 June 2003 01:28 am, Jon Ringle wrote:
> Hi,
>
> I am having an issue when remote debugging a multi-threaded app, a call to
> pthread_create hangs inside __pthread_wait_for_restart_signal on the host
> gdb.
>
> Thanks in advance.
>
> Jon
>
> I've built a gdb-5.3 cross debugging environment i686 host/arm target with
> the following:
>
> $ tar xzf gdb-5.3.tar.gz
> $ mkdir gdb-native
> $ cd gdb-native
> $ ../gdb-5.3/configure --host=i686-pc-linux-gnu \
> --target=arm-linux \
> --build=i686-pc-linux-gnu
> $ make
> $ cd ..
> $ mkdir gdb-cross
> $ cd gdb-cross
> $ HOSTCC=gcc CC='arm-linux-gcc -msoft-float' \
> ../gdb-5.3/configure --host=arm-linux \
> --target=arm-linux \
> --build=i686-pc-linux-gnu
> $ make
> $ cd ..
>
> I copy gdb-cross/gdb/gdbserver/gdbserver to the target arm.
> On the target, I execute:
> # ./gdbserver :5555 test-thread
> Process test-thread created; pid = 380
>
>
> On the host I run:
> $ gdb-native/gdb/gdb test-thread
GNU gdb 5.3
Copyright 2002 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) set solib-absolute-prefix /dev/null
(gdb) set solib-search-path /usr/arm-linux/lib
(gdb) target extended-remote 10.10.10.101:5555
Remote debugging using 10.10.10.101:5555
0x400025c0 in ?? ()
(gdb) b pthread_create
Breakpoint 1 at 0x20019e0
(gdb) c
Continuing.
[New Thread 1024]
[Switching to Thread 1024]
Breakpoint 1, 0x020019e0 in pthread_create ()
(gdb) set debug remote 1
(gdb) finish
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Sending packet: $m204b230,4#5a...Ack
Packet received: 0dc0a0e1
Sending packet: $m204b234,4#5e...Ack
Packet received: 00d82de9
Sending packet: $m204b238,4#62...Ack
Packet received: 04b04ce2
Sending packet: $m204b23c,4#8d...Ack
Packet received: 30d04de2
Sending packet: $m204b240,4#5b...Ack
Packet received: 10000be5
Sending packet: $m204b244,4#5f...Ack
Packet received: 14100be5
Sending packet: $m204b248,4#63...Ack
Packet received: 18200be5
Sending packet: $m204b24c,4#8e...Ack
Packet received: 0030a0e3
Sending packet: $m204b250,4#5c...Ack
Packet received: 20300be5
Sending packet: $m204b254,4#60...Ack
Packet received: ab0300eb
Sending packet: $m204b258,4#64...Ack
Packet received: 0030a0e1
Sending packet: $m204b25c,4#8f...Ack
Packet received: 030053e3
Sending packet: $m204b260,4#5d...Ack
Packet received: 020000da
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Run till exit from #0 0x020019e0 in pthread_create ()
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $m20019e4,4#62...Ack
Packet received: 0cc08fe0
Sending packet: $M20019e4,4:01009fef#a7...Ack
Packet received: OK
Sending packet: $Hc400#3f...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T050b:54fdffbf;0d:18fdffbf;0f:e4190002;
Sending packet: $M20019e4,4:0cc08fe0#d5...Ack
Packet received: OK
Sending packet: $m20019e4,4#62...Ack
Packet received: 0cc08fe0
Sending packet: $m4000cbd0,4#ea...Ack
Packet received: 0dc0a0e1
Sending packet: $M4000cbd0,4:01009fef#2f...Ack
Packet received: OK
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $M20019e0,4:01009fef#a3...Ack
Packet received: OK
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Sending packet: $M204b424,4:01009fef#a4...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
remote_interrupt called
remote_stop called
Packet received: T020b:b0fbffbf;0d:90fbffbf;0f:c4eb1440;
<<<<< Hang occurs here! Pressing ctrl-c to abort. >>>>>>>>>
Program received signal SIGINT, Interrupt.
Sending packet: $g#67...Ack
Packet received:
fcffffff08000000641a11406c010000841a1140b4fbffbf16000000301a214088fdffbfdcf80602c0c32040b0fbffbf90fbffbf90fbffbfb4eb1440c4eb14400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000020
Sending packet: $m4014ebc4,4#f4...Ack
Packet received: 0040a0e1
Sending packet: $m4014ebc4,4#f4...Ack
Packet received: 0040a0e1
Sending packet: $m4014eb84,4#c9...Ack
Packet received: 0dc0a0e1
Sending packet: $m4014eb88,4#cd...Ack
Packet received: f0dc2de9
Sending packet: $m4014eb8c,4#f8...Ack
Packet received: b0a09fe5
Sending packet: $m4014eb90,4#c6...Ack
Packet received: b0209fe5
Sending packet: $m4014eb94,4#ca...Ack
Packet received: 0aa08fe0
Sending packet: $m4014eb98,4#ce...Ack
Packet received: 02709ae7
Sending packet: $m4014eb9c,4#f9...Ack
Packet received: 04b04ce2
Sending packet: $m4014eba0,4#ee...Ack
Packet received: 003097e5
Sending packet: $m4014eba4,4#f2...Ack
Packet received: 0050a0e1
Sending packet: $m4014eba8,4#f6...Ack
Packet received: 000053e3
Sending packet: $m4014ebac,4#21...Ack
Packet received: 1700001a
Sending packet: $M4000cbd0,4:0dc0a0e1#52...Ack
Packet received: OK
Sending packet: $M20019e0,4:04c09fe5#a8...Ack
Packet received: OK
Sending packet: $M204b424,4:0030a0e1#63...Ack
Packet received: OK
0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
../sysdeps/unix/sysv/linux/sigsuspend.c:48
48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
in ../sysdeps/unix/sysv/linux/sigsuspend.c
(gdb) set debug remote 0
(gdb) bt
#0 0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
../sysdeps/unix/sysv/linux/sigsuspend.c:48
#1 0x40101b34 in __pthread_wait_for_restart_signal (self=0x401116e0) at
pthread.c:786
#2 0x40101138 in __pthread_create_2_1 (thread=0x206f8dc, attr=0xbffffc58,
start_routine=0x20043ac <console>, arg=0xbffffd88) at restart.h:26
#3 0x0204b424 in createThread (func=0x20043ac <console>, arg=0xbffffd88,
threadname=0x204f4f0 "console") at thread.c:84
#4 0x020022b8 in main (argc=1, argv=0xbffffdd4) at main.c:168
#5 0x401484a0 in __libc_start_main (main=0x2002054 <main>, argc=1,
argv=0xbffffdd4, init=0x2001848 <_init>, fini=0x204f334 <_fini>,
rtld_fini=0x4000ca60 <_dl_fini>,
stack_end=0xbffffeba) at ../sysdeps/generic/libc-start.c:92
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 7:16 pthread_create does not return when remote debugging Jon Ringle
2003-06-28 13:43 ` Jon Ringle
@ 2003-06-28 15:01 ` Daniel Jacobowitz
2003-06-28 15:02 ` Jon Ringle
1 sibling, 1 reply; 12+ messages in thread
From: Daniel Jacobowitz @ 2003-06-28 15:01 UTC (permalink / raw)
To: Jon Ringle; +Cc: gdb
On Sat, Jun 28, 2003 at 01:28:02AM -0400, Jon Ringle wrote:
> Hi,
>
> I am having an issue when remote debugging a multi-threaded app, a call to
> pthread_create hangs inside __pthread_wait_for_restart_signal on the host
> gdb.
Have you tried this without the breakpoint in pthread_create?
Other than that nothing obvious comes to mind, you'll have to
investigate yourself. Sorry.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 15:01 ` Daniel Jacobowitz
@ 2003-06-28 15:02 ` Jon Ringle
2003-06-28 15:30 ` Daniel Jacobowitz
0 siblings, 1 reply; 12+ messages in thread
From: Jon Ringle @ 2003-06-28 15:02 UTC (permalink / raw)
To: Daniel Jacobowitz, gdb
On Saturday 28 June 2003 10:43 am, Daniel Jacobowitz wrote:
> On Sat, Jun 28, 2003 at 01:28:02AM -0400, Jon Ringle wrote:
> > Hi,
> >
> > I am having an issue when remote debugging a multi-threaded app, a call
> > to pthread_create hangs inside __pthread_wait_for_restart_signal on the
> > host gdb.
>
> Have you tried this without the breakpoint in pthread_create?
I have. This is what I had initially done, and narrow the problem down to
pthread_create never returning.
>
> Other than that nothing obvious comes to mind, you'll have to
> investigate yourself. Sorry.
Could the problem be on the gdbserver side not sending back anything in
response to gdb Sending packet: &c#63...Ack?
Would I be headed in the right direction for investigation?
Jon
-----
Breakpoint 1, 0x020019e0 in pthread_create ()
(gdb) set debug remote 1
(gdb) finish
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Sending packet: $m204b230,4#5a...Ack
Packet received: 0dc0a0e1
Sending packet: $m204b234,4#5e...Ack
Packet received: 00d82de9
Sending packet: $m204b238,4#62...Ack
Packet received: 04b04ce2
Sending packet: $m204b23c,4#8d...Ack
Packet received: 30d04de2
Sending packet: $m204b240,4#5b...Ack
Packet received: 10000be5
Sending packet: $m204b244,4#5f...Ack
Packet received: 14100be5
Sending packet: $m204b248,4#63...Ack
Packet received: 18200be5
Sending packet: $m204b24c,4#8e...Ack
Packet received: 0030a0e3
Sending packet: $m204b250,4#5c...Ack
Packet received: 20300be5
Sending packet: $m204b254,4#60...Ack
Packet received: ab0300eb
Sending packet: $m204b258,4#64...Ack
Packet received: 0030a0e1
Sending packet: $m204b25c,4#8f...Ack
Packet received: 030053e3
Sending packet: $m204b260,4#5d...Ack
Packet received: 020000da
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Run till exit from #0 0x020019e0 in pthread_create ()
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $m20019e4,4#62...Ack
Packet received: 0cc08fe0
Sending packet: $M20019e4,4:01009fef#a7...Ack
Packet received: OK
Sending packet: $Hc400#3f...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T050b:54fdffbf;0d:18fdffbf;0f:e4190002;
Sending packet: $M20019e4,4:0cc08fe0#d5...Ack
Packet received: OK
Sending packet: $m20019e4,4#62...Ack
Packet received: 0cc08fe0
Sending packet: $m4000cbd0,4#ea...Ack
Packet received: 0dc0a0e1
Sending packet: $M4000cbd0,4:01009fef#2f...Ack
Packet received: OK
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $M20019e0,4:01009fef#a3...Ack
Packet received: OK
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Sending packet: $M204b424,4:01009fef#a4...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 15:02 ` Jon Ringle
@ 2003-06-28 15:30 ` Daniel Jacobowitz
2003-06-28 20:02 ` Jon Ringle
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Jacobowitz @ 2003-06-28 15:30 UTC (permalink / raw)
To: Jon Ringle; +Cc: gdb
On Sat, Jun 28, 2003 at 11:01:34AM -0400, Jon Ringle wrote:
> On Saturday 28 June 2003 10:43 am, Daniel Jacobowitz wrote:
> > On Sat, Jun 28, 2003 at 01:28:02AM -0400, Jon Ringle wrote:
> > > Hi,
> > >
> > > I am having an issue when remote debugging a multi-threaded app, a call
> > > to pthread_create hangs inside __pthread_wait_for_restart_signal on the
> > > host gdb.
> >
> > Have you tried this without the breakpoint in pthread_create?
>
> I have. This is what I had initially done, and narrow the problem down to
> pthread_create never returning.
>
> >
> > Other than that nothing obvious comes to mind, you'll have to
> > investigate yourself. Sorry.
>
> Could the problem be on the gdbserver side not sending back anything in
> response to gdb Sending packet: &c#63...Ack?
No. That's a continue request. The target isn't stopping again, but
that's not gdbserver's fault... it won't respond to the client until
the program stops.
Find out why it's not stopping...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 13:43 ` Jon Ringle
@ 2003-06-28 15:52 ` Jon Ringle
2003-06-29 2:16 ` Jon Ringle
0 siblings, 1 reply; 12+ messages in thread
From: Jon Ringle @ 2003-06-28 15:52 UTC (permalink / raw)
To: gdb
Arghhh... I placed my <ctrl-c> comment in the wrong spot in the last
message... Corrected below.
My apologies :)
Jon
On Saturday 28 June 2003 03:16 am, Jon Ringle wrote:
> Updated output below to have 'set debug remote 1' just before the hang...
> Seems like it would be useful information.
>
> Jon
>
> On Saturday 28 June 2003 01:28 am, Jon Ringle wrote:
> > Hi,
> >
> > I am having an issue when remote debugging a multi-threaded app, a call
> > to pthread_create hangs inside __pthread_wait_for_restart_signal on the
> > host gdb.
> >
> > Thanks in advance.
> >
> > Jon
> >
> > I've built a gdb-5.3 cross debugging environment i686 host/arm target
> > with the following:
> >
> > $ tar xzf gdb-5.3.tar.gz
> > $ mkdir gdb-native
> > $ cd gdb-native
> > $ ../gdb-5.3/configure --host=i686-pc-linux-gnu \
> > --target=arm-linux \
> > --build=i686-pc-linux-gnu
> > $ make
> > $ cd ..
> > $ mkdir gdb-cross
> > $ cd gdb-cross
> > $ HOSTCC=gcc CC='arm-linux-gcc -msoft-float' \
> > ../gdb-5.3/configure --host=arm-linux \
> > --target=arm-linux \
> > --build=i686-pc-linux-gnu
> > $ make
> > $ cd ..
> >
> > I copy gdb-cross/gdb/gdbserver/gdbserver to the target arm.
> > On the target, I execute:
> > # ./gdbserver :5555 test-thread
> > Process test-thread created; pid = 380
> >
> >
> > On the host I run:
> > $ gdb-native/gdb/gdb test-thread
>
> GNU gdb 5.3
> Copyright 2002 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) set solib-absolute-prefix /dev/null
> (gdb) set solib-search-path /usr/arm-linux/lib
> (gdb) target extended-remote 10.10.10.101:5555
> Remote debugging using 10.10.10.101:5555
> 0x400025c0 in ?? ()
> (gdb) b pthread_create
> Breakpoint 1 at 0x20019e0
> (gdb) c
> Continuing.
> [New Thread 1024]
> [Switching to Thread 1024]
>
> Breakpoint 1, 0x020019e0 in pthread_create ()
> (gdb) set debug remote 1
> (gdb) finish
> Sending packet: $m20019e0,4#5e...Ack
> Packet received: 04c09fe5
> Sending packet: $m204b424,4#5f...Ack
> Packet received: 0030a0e1
> Sending packet: $m204b230,4#5a...Ack
> Packet received: 0dc0a0e1
> Sending packet: $m204b234,4#5e...Ack
> Packet received: 00d82de9
> Sending packet: $m204b238,4#62...Ack
> Packet received: 04b04ce2
> Sending packet: $m204b23c,4#8d...Ack
> Packet received: 30d04de2
> Sending packet: $m204b240,4#5b...Ack
> Packet received: 10000be5
> Sending packet: $m204b244,4#5f...Ack
> Packet received: 14100be5
> Sending packet: $m204b248,4#63...Ack
> Packet received: 18200be5
> Sending packet: $m204b24c,4#8e...Ack
> Packet received: 0030a0e3
> Sending packet: $m204b250,4#5c...Ack
> Packet received: 20300be5
> Sending packet: $m204b254,4#60...Ack
> Packet received: ab0300eb
> Sending packet: $m204b258,4#64...Ack
> Packet received: 0030a0e1
> Sending packet: $m204b25c,4#8f...Ack
> Packet received: 030053e3
> Sending packet: $m204b260,4#5d...Ack
> Packet received: 020000da
> Sending packet: $m204b424,4#5f...Ack
> Packet received: 0030a0e1
> Run till exit from #0 0x020019e0 in pthread_create ()
> Sending packet: $m20019e0,4#5e...Ack
> Packet received: 04c09fe5
> Sending packet: $m20019e4,4#62...Ack
> Packet received: 0cc08fe0
> Sending packet: $M20019e4,4:01009fef#a7...Ack
> Packet received: OK
> Sending packet: $Hc400#3f...Ack
> Packet received: OK
> Sending packet: $c#63...Ack
> Packet received: T050b:54fdffbf;0d:18fdffbf;0f:e4190002;
> Sending packet: $M20019e4,4:0cc08fe0#d5...Ack
> Packet received: OK
> Sending packet: $m20019e4,4#62...Ack
> Packet received: 0cc08fe0
> Sending packet: $m4000cbd0,4#ea...Ack
> Packet received: 0dc0a0e1
> Sending packet: $M4000cbd0,4:01009fef#2f...Ack
> Packet received: OK
> Sending packet: $m20019e0,4#5e...Ack
> Packet received: 04c09fe5
> Sending packet: $M20019e0,4:01009fef#a3...Ack
> Packet received: OK
> Sending packet: $m204b424,4#5f...Ack
> Packet received: 0030a0e1
> Sending packet: $M204b424,4:01009fef#a4...Ack
> Packet received: OK
> Sending packet: $Hc0#db...Ack
> Packet received: OK
> Sending packet: $c#63...Ack
<<<<< Hang occurs here! Pressing ctrl-c to abort. >>>>>>>>>
> remote_interrupt called
> remote_stop called
> Packet received: T020b:b0fbffbf;0d:90fbffbf;0f:c4eb1440;
> Program received signal SIGINT, Interrupt.
> Sending packet: $g#67...Ack
> Packet received:
> fcffffff08000000641a11406c010000841a1140b4fbffbf16000000301a214088fdffbfdcf
>80602c0c32040b0fbffbf90fbffbf90fbffbfb4eb1440c4eb144000000000000000000000000
>0000000000000000000000000000000000000000000000000000000000000000000000000000
>0000000000000000000000000000000000000000000000000000000000000000000000000000
>000000000000000000000000010000020 Sending packet: $m4014ebc4,4#f4...Ack
> Packet received: 0040a0e1
> Sending packet: $m4014ebc4,4#f4...Ack
> Packet received: 0040a0e1
> Sending packet: $m4014eb84,4#c9...Ack
> Packet received: 0dc0a0e1
> Sending packet: $m4014eb88,4#cd...Ack
> Packet received: f0dc2de9
> Sending packet: $m4014eb8c,4#f8...Ack
> Packet received: b0a09fe5
> Sending packet: $m4014eb90,4#c6...Ack
> Packet received: b0209fe5
> Sending packet: $m4014eb94,4#ca...Ack
> Packet received: 0aa08fe0
> Sending packet: $m4014eb98,4#ce...Ack
> Packet received: 02709ae7
> Sending packet: $m4014eb9c,4#f9...Ack
> Packet received: 04b04ce2
> Sending packet: $m4014eba0,4#ee...Ack
> Packet received: 003097e5
> Sending packet: $m4014eba4,4#f2...Ack
> Packet received: 0050a0e1
> Sending packet: $m4014eba8,4#f6...Ack
> Packet received: 000053e3
> Sending packet: $m4014ebac,4#21...Ack
> Packet received: 1700001a
> Sending packet: $M4000cbd0,4:0dc0a0e1#52...Ack
> Packet received: OK
> Sending packet: $M20019e0,4:04c09fe5#a8...Ack
> Packet received: OK
> Sending packet: $M204b424,4:0030a0e1#63...Ack
> Packet received: OK
> 0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
> ../sysdeps/unix/sysv/linux/sigsuspend.c:48
> 48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
> in ../sysdeps/unix/sysv/linux/sigsuspend.c
> (gdb) set debug remote 0
> (gdb) bt
> #0 0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
> ../sysdeps/unix/sysv/linux/sigsuspend.c:48
> #1 0x40101b34 in __pthread_wait_for_restart_signal (self=0x401116e0) at
> pthread.c:786
> #2 0x40101138 in __pthread_create_2_1 (thread=0x206f8dc, attr=0xbffffc58,
> start_routine=0x20043ac <console>, arg=0xbffffd88) at restart.h:26
> #3 0x0204b424 in createThread (func=0x20043ac <console>, arg=0xbffffd88,
> threadname=0x204f4f0 "console") at thread.c:84
> #4 0x020022b8 in main (argc=1, argv=0xbffffdd4) at main.c:168
> #5 0x401484a0 in __libc_start_main (main=0x2002054 <main>, argc=1,
> argv=0xbffffdd4, init=0x2001848 <_init>, fini=0x204f334 <_fini>,
> rtld_fini=0x4000ca60 <_dl_fini>,
> stack_end=0xbffffeba) at ../sysdeps/generic/libc-start.c:92
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 15:30 ` Daniel Jacobowitz
@ 2003-06-28 20:02 ` Jon Ringle
2003-06-28 20:29 ` Daniel Jacobowitz
0 siblings, 1 reply; 12+ messages in thread
From: Jon Ringle @ 2003-06-28 20:02 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
> > Could the problem be on the gdbserver side not sending back anything in
> > response to gdb Sending packet: &c#63...Ack?
>
> No. That's a continue request. The target isn't stopping again, but
> that's not gdbserver's fault... it won't respond to the client until
> the program stops.
>
> Find out why it's not stopping...
I turned on remote_debug = 1, and debug_threads = 1 on gdbserver, and I get
the following on the target when I continue. The signal 32 looks suspect to
me.
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 179 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
Got an event from 179 (57f)
Hit a (non-reinsert) breakpoint.
Thread creation event.
Writing 00 to 40111a2c
Attaching to thread 2049 (LWP 194)
Writing 01 to 40111a28
Writing 0d to 40104d44
Resuming process 179 (step, signal 0, stop not expected)
pending reinsert at 40104d44Checking for breakpoint.
Removed breakpoint.
Got an event from 194 (137f)
Expected stop.
Resuming process 194 (continue, signal 0, stop not expected)
Ignored signal 32 for 1024 (LWP 179).
Resuming process 179 (step, signal 32, stop not expected)
pending reinsert at 40104d44
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 20:02 ` Jon Ringle
@ 2003-06-28 20:29 ` Daniel Jacobowitz
2003-06-28 22:49 ` Jon Ringle
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Jacobowitz @ 2003-06-28 20:29 UTC (permalink / raw)
To: Jon Ringle; +Cc: gdb
On Sat, Jun 28, 2003 at 01:11:06PM -0400, Jon Ringle wrote:
> > > Could the problem be on the gdbserver side not sending back anything in
> > > response to gdb Sending packet: &c#63...Ack?
> >
> > No. That's a continue request. The target isn't stopping again, but
> > that's not gdbserver's fault... it won't respond to the client until
> > the program stops.
> >
> > Find out why it's not stopping...
>
> I turned on remote_debug = 1, and debug_threads = 1 on gdbserver, and I get
> the following on the target when I continue. The signal 32 looks suspect to
> me.
It is correct. The thread manager uses that. What are you running on
the ARM board? What's the rest of the gdbserver log?
> getpkt ("c"); [sending ack]
> [sent ack]
> Resuming process 179 (continue, signal 0, stop not expected)
> Checking for breakpoint.
> Removed breakpoint.
> Got an event from 179 (57f)
> Hit a (non-reinsert) breakpoint.
> Thread creation event.
> Writing 00 to 40111a2c
> Attaching to thread 2049 (LWP 194)
> Writing 01 to 40111a28
> Writing 0d to 40104d44
> Resuming process 179 (step, signal 0, stop not expected)
> pending reinsert at 40104d44Checking for breakpoint.
> Removed breakpoint.
> Got an event from 194 (137f)
> Expected stop.
> Resuming process 194 (continue, signal 0, stop not expected)
> Ignored signal 32 for 1024 (LWP 179).
> Resuming process 179 (step, signal 32, stop not expected)
> pending reinsert at 40104d44
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 20:29 ` Daniel Jacobowitz
@ 2003-06-28 22:49 ` Jon Ringle
2003-06-29 2:02 ` Daniel Jacobowitz
0 siblings, 1 reply; 12+ messages in thread
From: Jon Ringle @ 2003-06-28 22:49 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 1915 bytes --]
On Saturday 28 June 2003 04:01 pm, Daniel Jacobowitz wrote:
> On Sat, Jun 28, 2003 at 01:11:06PM -0400, Jon Ringle wrote:
> > > > Could the problem be on the gdbserver side not sending back anything
> > > > in response to gdb Sending packet: &c#63...Ack?
> > >
> > > No. That's a continue request. The target isn't stopping again, but
> > > that's not gdbserver's fault... it won't respond to the client until
> > > the program stops.
> > >
> > > Find out why it's not stopping...
> >
> > I turned on remote_debug = 1, and debug_threads = 1 on gdbserver, and I
> > get the following on the target when I continue. The signal 32 looks
> > suspect to me.
>
> It is correct. The thread manager uses that. What are you running on
> the ARM board? What's the rest of the gdbserver log?
The ARM board is running linux-2.2.16 w/ glibc-2.1.3. The arm-linux-gcc
version is 2.95.2.
I am using the following small test program:
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void* thread (void* parm)
{
int iteration = (int) parm;
while (iteration)
{
fprintf (stderr, "GDBTEST: thread loop: %d\n", iteration--);
sleep (1);
}
return (void*) 1234;
}
int main(int argc, char **argv)
{
pthread_t tid;
int thread_rc;
fprintf (stderr, "GDBTEST: calling pthread_create\n");
pthread_create (&tid, NULL, thread, ((void*) 10));
fprintf (stderr, "GDBTEST: returned from pthread_create\n");
fflush (stderr);
fprintf (stderr, "GDBTEST: calling pthread_join\n");
pthread_join (tid,(void**) &thread_rc);
fprintf (stderr, "GDBTEST: returned from pthread_join = %d\n",
thread_rc);
return 0;
}
Attached are two log files: gdb.log and gdbserver.log. In gdbserver.log I have
inserted the commands entered on the host gdb (marked by #host#).
Thanks for your help.
[-- Attachment #2: gdb.log --]
[-- Type: text/x-log, Size: 5749 bytes --]
[eringlej@realman91 gdbtest]$ ~/gdb-native/gdb/gdb ./gdbtest
GNU gdb 5.3
Copyright 2002 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) set solib-absolute-prefix /dev/null
(gdb) set solib-search-path /usr/arm-linux/lib
(gdb) target extended-remote 10.10.10.101:5555
Remote debugging using 10.10.10.101:5555
0x400025c0 in ?? ()
(gdb) b pthread_create
Breakpoint 1 at 0x20006bc
(gdb) c
Continuing.
[New Thread 1024]
[Switching to Thread 1024]
Breakpoint 1, 0x020006bc in pthread_create ()
(gdb) set debug remote 1
(gdb) finish
Sending packet: $m20006bc,4#8a...Ack
Packet received: 04c09fe5
Sending packet: $m20008b4,4#5d...Ack
Packet received: 50309fe5
Sending packet: $m2000874,4#32...Ack
Packet received: 0dc0a0e1
Sending packet: $m2000878,4#36...Ack
Packet received: 00d82de9
Sending packet: $m200087c,4#61...Ack
Packet received: 04b04ce2
Sending packet: $m2000880,4#2f...Ack
Packet received: 10d04de2
Sending packet: $m2000884,4#33...Ack
Packet received: 10000be5
Sending packet: $m2000888,4#37...Ack
Packet received: 14100be5
Sending packet: $m200088c,4#62...Ack
Packet received: 78309fe5
Sending packet: $m2000890,4#30...Ack
Packet received: 000093e5
Sending packet: $m2000894,4#34...Ack
Packet received: 74109fe5
Sending packet: $m2000898,4#38...Ack
Packet received: 7fffffeb
Sending packet: $m200089c,4#63...Ack
Packet received: 18304be2
Sending packet: $m20008a0,4#58...Ack
Packet received: 0300a0e1
Sending packet: $m20008a4,4#5c...Ack
Packet received: 0010a0e3
Sending packet: $m20008a8,4#60...Ack
Packet received: 64209fe5
Sending packet: $m20008ac,4#8b...Ack
Packet received: 0a30a0e3
Sending packet: $m20008b0,4#59...Ack
Packet received: 81ffffeb
Sending packet: $m20008b4,4#5d...Ack
Packet received: 50309fe5
Run till exit from #0 0x020006bc in pthread_create ()
Sending packet: $m20006bc,4#8a...Ack
Packet received: 04c09fe5
Sending packet: $m20006c0,4#58...Ack
Packet received: 0cc08fe0
Sending packet: $M20006c0,4:01009fef#9d...Ack
Packet received: OK
Sending packet: $Hc400#3f...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T050b:94fdffbf;0d:78fdffbf;0f:c0060002;
Sending packet: $M20006c0,4:0cc08fe0#cb...Ack
Packet received: OK
Sending packet: $m20006c0,4#58...Ack
Packet received: 0cc08fe0
Sending packet: $m4000cbd0,4#ea...Ack
Packet received: 0dc0a0e1
Sending packet: $M4000cbd0,4:01009fef#2f...Ack
Packet received: OK
Sending packet: $m20006bc,4#8a...Ack
Packet received: 04c09fe5
Sending packet: $M20006bc,4:01009fef#cf...Ack
Packet received: OK
Sending packet: $m20008b4,4#5d...Ack
Packet received: 50309fe5
Sending packet: $M20008b4,4:01009fef#a2...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
<<<<<< ctrl-c pressed here >>>>>>>
remote_interrupt called
remote_stop called
Packet received: T020b:10fcffbf;0d:f0fbffbf;0f:c4bb0540;
Program received signal SIGINT, Interrupt.
Sending packet: $g#67...Ack
Packet received: fcffffff08000000646a03406c010000846a034014fcffbf0000000030ea11400a0000007cfdffbfc093114010fcffbff0fbffbff0fbffbfb4bb0540c4bb05400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000020
Sending packet: $m4005bbc4,4#f1...Ack
Packet received: 0040a0e1
Sending packet: $m4005bbc4,4#f1...Ack
Packet received: 0040a0e1
Sending packet: $m4005bb84,4#c6...Ack
Packet received: 0dc0a0e1
Sending packet: $m4005bb88,4#ca...Ack
Packet received: f0dc2de9
Sending packet: $m4005bb8c,4#f5...Ack
Packet received: b0a09fe5
Sending packet: $m4005bb90,4#c3...Ack
Packet received: b0209fe5
Sending packet: $m4005bb94,4#c7...Ack
Packet received: 0aa08fe0
Sending packet: $m4005bb98,4#cb...Ack
Packet received: 02709ae7
Sending packet: $m4005bb9c,4#f6...Ack
Packet received: 04b04ce2
Sending packet: $m4005bba0,4#eb...Ack
Packet received: 003097e5
Sending packet: $m4005bba4,4#ef...Ack
Packet received: 0050a0e1
Sending packet: $m4005bba8,4#f3...Ack
Packet received: 000053e3
Sending packet: $m4005bbac,4#1e...Ack
Packet received: 1700001a
Sending packet: $M4000cbd0,4:0dc0a0e1#52...Ack
Packet received: OK
Sending packet: $M20006bc,4:04c09fe5#d4...Ack
Packet received: OK
Sending packet: $M20008b4,4:50309fe5#78...Ack
Packet received: OK
0x4005bbc4 in __sigsuspend (set=0xbffffc14) at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
in ../sysdeps/unix/sysv/linux/sigsuspend.c
(gdb) set debug remote 0
(gdb) info threads
2 Thread 2049 0x400caf44 in __poll (fds=0x200b1e4, nfds=1, timeout=2000) at ../sysdeps/unix/sysv/linux/poll.c:45
* 1 Thread 1024 0x4005bbc4 in __sigsuspend (set=0xbffffc14) at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
(gdb) bt
#0 0x4005bbc4 in __sigsuspend (set=0xbffffc14) at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
#1 0x40026b34 in __pthread_wait_for_restart_signal (self=0x400366e0) at pthread.c:786
#2 0x40026138 in __pthread_create_2_1 (thread=0xbffffd7c, attr=0xbffffcb8, start_routine=0x2000800 <thread>, arg=0xa) at restart.h:26
#3 0x020008b4 in main ()
#4 0x400554a0 in __libc_start_main (main=0x2000874 <main>, argc=1, argv=0xbffffdd4, init=0x2000674 <_init>, fini=0x2001078 <_fini>, rtld_fini=0x4000ca60 <_dl_fini>,
stack_end=0xbffffeb6) at ../sysdeps/generic/libc-start.c:92
(gdb) quit
The program is running. Exit anyway? (y or n) y
[-- Attachment #3: gdbserver.log --]
[-- Type: text/x-log, Size: 49306 bytes --]
# ./gdbserver :5555 gdbtest
Process gdbtest created; pid = 254
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
#host# (gdb) set solib-absolute-prefix /dev/null
#host# (gdb) set solib-search-path /usr/arm-linux/lib
#host# (gdb) target extended-remote 10.10.10.101:5555
Remote debugging from host 10.10.10.100
[getpkt: discarding char '+']
getpkt ("Hc-1"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qC"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qOffsets"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("?"); [sending ack]
[sent ack]
putpkt ("$T050b:00000000;0d:d0fdffbf;0f:c0250040;#04"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hg0"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$00000000b6feffbf0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d0fdffbf00000000c02500400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000#28"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400025c0,4"); [sending ack]
[sent ack]
putpkt ("$0d00a0e1#1b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400025c0,4"); [sending ack]
[sent ack]
putpkt ("$0d00a0e1#1b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m0,4"); [sending ack]
[sent ack]
putpkt ("$ffffffff#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("!"); [sending ack]
[sent ack]
putpkt ("$T050b:00000000;0d:d0fdffbf;0f:c0250040;#04"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200929c,a8"); [sending ack]
[sent ack]
putpkt ("$0100000001000000010000005b0000000c000000740600020d00000078100002040000003001000205000000fc03000206000000fc0100020a000000740100000b000000100000001500000000000000030000006092000202000000580000001400000011000000170000001c060002110000001406000212000000080000001300000008000000feffff6fc4050002ffffff6f02000000f0ffff6f840500020000000000000000#5d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f707468726561645f746872656164735f6576656e7473#0d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::5f5f707468726561645f746872656164735f6576656e7473"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
#host# (gdb) b pthread_create
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
#host# (gdb) c
getpkt ("Z0,4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("X4000cbd0,0:"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc0"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
putpkt ("$T050b:b0faffbf;0d:5cf9ffbf;0f:d0cb0040;#a9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:0dc0a0e1"); [sending ack]
[sent ack]
Writing 0d to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:04c09fe5"); [sending ack]
[sent ack]
Writing 04 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200929c,a8"); [sending ack]
[sent ack]
putpkt ("$0100000001000000010000005b0000000c000000740600020d00000078100002040000003001000205000000fc03000206000000fc0100020a000000740100000b000000100000001500000090da0140030000006092000202000000580000001400000011000000170000001c060002110000001406000212000000080000001300000008000000feffff6fc4050002ffffff6f02000000f0ffff6f840500020000000000000000#d0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4001da94,4"); [sending ack]
[sent ack]
putpkt ("$b0da0140#1c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4001dab0,14"); [sending ack]
[sent ack]
putpkt ("$00000000e83301409c920002785a014000000000#5b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a78,14"); [sending ack]
[sent ack]
putpkt ("$00e00140605a0140288d0340e85c0140b0da0140#5e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a60,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a64,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a68,4"); [sending ack]
[sent ack]
putpkt ("$70746872#a9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a6c,4"); [sending ack]
[sent ack]
putpkt ("$6561642e#d3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a70,4"); [sending ack]
[sent ack]
putpkt ("$736f2e30#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a74,4"); [sending ack]
[sent ack]
putpkt ("$00000000#80"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015ce8,14"); [sending ack]
[sent ack]
putpkt ("$00900340d85c014068ba1140d0d70140785a0140#3e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015cd8,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015cdc,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015ce0,4"); [sending ack]
[sent ack]
putpkt ("$632e736f#06"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015ce4,4"); [sending ack]
[sent ack]
putpkt ("$2e360000#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4001d7d0,14"); [sending ack]
[sent ack]
putpkt ("$00000040f4000002a0d50140705f0140e85c0140#f0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20000f4,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20000f8,4"); [sending ack]
[sent ack]
putpkt ("$2f6c642d#31"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20000fc,4"); [sending ack]
[sent ack]
putpkt ("$6c696e75#0f"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000100,4"); [sending ack]
[sent ack]
putpkt ("$782e736f#0c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000104,4"); [sending ack]
[sent ack]
putpkt ("$2e320000#bc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f70,14"); [sending ack]
[sent ack]
putpkt ("$00001240585f01404863134000000000d0d70140#65"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f58,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f5c,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f60,4"); [sending ack]
[sent ack]
putpkt ("$666c6f61#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f64,4"); [sending ack]
[sent ack]
putpkt ("$742e736f#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f68,4"); [sending ack]
[sent ack]
putpkt ("$00000000#80"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f707468726561645f746872656164735f6576656e7473#0d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:40038ef0:5f5f707468726561645f746872656164735f6576656e7473"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f707468726561645f6c6173745f6576656e74#90"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:40038ef8:5f5f707468726561645f6c6173745f6576656e74"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f707468726561645f68616e646c65735f6e756d#5b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:4003666c:5f5f707468726561645f68616e646c65735f6e756d"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f707468726561645f68616e646c6573#1f"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:4003266c:5f5f707468726561645f68616e646c6573"); [sending ack]
[sent ack]
putpkt ("$qSymbol:707468726561645f6b657973#7e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:40036a90:707468726561645f6b657973"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f6c696e7578746872656164735f707468726561645f746872656164735f6d6178#cb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:4002a4ec:5f5f6c696e7578746872656164735f707468726561645f746872656164735f6d6178"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f6c696e7578746872656164735f707468726561645f73697a656f665f6465736372#68"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::5f5f6c696e7578746872656164735f707468726561645f73697a656f665f6465736372"); [sending ack]
[sent ack]
putpkt ("$qSymbol:5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178"); [sending ack]
[sent ack]
Writing 80 to 40038ef0
putpkt ("$qSymbol:5f5f6c696e7578746872656164735f6372656174655f6576656e74#b6"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol:40029d44:5f5f6c696e7578746872656164735f6372656174655f6576656e74"); [sending ack]
[sent ack]
Writing 01 to 40029d44
Writing 01 to 40036868
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qSymbol::"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$90da0140b0da0140e49200020100000078da0140d0d70140d0d7014000000000340000020000000084ce0140b0faffbfa4ce01405cf9ffbfec480040d0cb00400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000060#af"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd4,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd8,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbdc,4"); [sending ack]
[sent ack]
putpkt ("$00a81be9#2a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd4,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd4,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 4000cbd4
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc0"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
Writing resume reply for 1024
putpkt ("$T050b:b0faffbf;0d:5cf9ffbf;0f:d4cb0040;thread:400;#2e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$90da0140b0da0140e49200020100000078da0140d0d70140d0d7014000000000340000020000000084ce0140b0faffbf5cf9ffbf5cf9ffbfec480040d4cb00400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000060#5c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd4,4:00d82de9"); [sending ack]
[sent ack]
Writing 00 to 4000cbd4
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd4,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc0"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
Writing resume reply for 1024
putpkt ("$T050b:ccfdffbf;0d:b0fdffbf;0f:d0cb0040;#05"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:0dc0a0e1"); [sending ack]
[sent ack]
Writing 0d to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:04c09fe5"); [sending ack]
[sent ack]
Writing 04 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4001da94,4"); [sending ack]
[sent ack]
putpkt ("$b0da0140#1c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4001dab0,14"); [sending ack]
[sent ack]
putpkt ("$00000000e83301409c920002785a014000000000#5b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a78,14"); [sending ack]
[sent ack]
putpkt ("$00e00140605a0140288d0340e85c0140b0da0140#5e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a60,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a64,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a68,4"); [sending ack]
[sent ack]
putpkt ("$70746872#a9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a6c,4"); [sending ack]
[sent ack]
putpkt ("$6561642e#d3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a70,4"); [sending ack]
[sent ack]
putpkt ("$736f2e30#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015a74,4"); [sending ack]
[sent ack]
putpkt ("$00000000#80"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015ce8,14"); [sending ack]
[sent ack]
putpkt ("$00900340d85c014068ba1140d0d70140785a0140#3e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015cd8,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015cdc,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015ce0,4"); [sending ack]
[sent ack]
putpkt ("$632e736f#06"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015ce4,4"); [sending ack]
[sent ack]
putpkt ("$2e360000#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4001d7d0,14"); [sending ack]
[sent ack]
putpkt ("$00000040f4000002a0d50140705f0140e85c0140#f0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20000f4,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20000f8,4"); [sending ack]
[sent ack]
putpkt ("$2f6c642d#31"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20000fc,4"); [sending ack]
[sent ack]
putpkt ("$6c696e75#0f"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000100,4"); [sending ack]
[sent ack]
putpkt ("$782e736f#0c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000104,4"); [sending ack]
[sent ack]
putpkt ("$2e320000#bc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f70,14"); [sending ack]
[sent ack]
putpkt ("$00001240585f01404863134000000000d0d70140#65"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f58,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f5c,4"); [sending ack]
[sent ack]
putpkt ("$2f6c6962#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f60,4"); [sending ack]
[sent ack]
putpkt ("$666c6f61#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f64,4"); [sending ack]
[sent ack]
putpkt ("$742e736f#08"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40015f68,4"); [sending ack]
[sent ack]
putpkt ("$00000000#80"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$5cdc0140ffffffff90da01400c05000000000000040500004c07000200000000000000000000000084ce0140ccfdffbfa4ce0140b0fdffbf50ca0040d0cb00400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000060#88"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd4,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd4,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 4000cbd4
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc400"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
Writing resume reply for 1024
putpkt ("$T050b:ccfdffbf;0d:b0fdffbf;0f:d4cb0040;#09"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd4,4:00d82de9"); [sending ack]
[sent ack]
Writing 00 to 4000cbd4
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd4,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc0"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
GDBTEST: calling pthread_create
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
Writing resume reply for 1024
putpkt ("$T050b:94fdffbf;0d:78fdffbf;0f:bc060002;#59"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$7cfdffbf00000000000800020a000000ac070000d4fdffbf0100000000da014074060002b8881140c093114094fdffbf0000a0bf78fdffbfb4080002bc0600020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000060#8c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$01009fef#2b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$01009fef#2b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$01009fef#2b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006c0,4"); [sending ack]
[sent ack]
putpkt ("$0cc08fe0#59"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006c4,4"); [sending ack]
[sent ack]
putpkt ("$00f09ce5#2c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006c8,4"); [sending ack]
[sent ack]
putpkt ("$ac8b0000#1e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:0dc0a0e1"); [sending ack]
[sent ack]
Writing 0d to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:04c09fe5"); [sending ack]
[sent ack]
Writing 04 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
#host# (gdb) set debug remote 1
#host# (gdb) finish
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b4,4"); [sending ack]
[sent ack]
putpkt ("$50309fe5#01"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000874,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000878,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200087c,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000880,4"); [sending ack]
[sent ack]
putpkt ("$10d04de2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000884,4"); [sending ack]
[sent ack]
putpkt ("$10000be5#ed"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000888,4"); [sending ack]
[sent ack]
putpkt ("$14100be5#f2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200088c,4"); [sending ack]
[sent ack]
putpkt ("$78309fe5#0b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000890,4"); [sending ack]
[sent ack]
putpkt ("$000093e5#c6"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000894,4"); [sending ack]
[sent ack]
putpkt ("$74109fe5#05"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000898,4"); [sending ack]
[sent ack]
putpkt ("$7fffffeb#fc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200089c,4"); [sending ack]
[sent ack]
putpkt ("$18304be2#f9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008a0,4"); [sending ack]
[sent ack]
putpkt ("$0300a0e1#ea"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008a4,4"); [sending ack]
[sent ack]
putpkt ("$0010a0e3#ea"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008a8,4"); [sending ack]
[sent ack]
putpkt ("$64209fe5#05"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008ac,4"); [sending ack]
[sent ack]
putpkt ("$0a30a0e3#1d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b0,4"); [sending ack]
[sent ack]
putpkt ("$81ffffeb#c8"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b4,4"); [sending ack]
[sent ack]
putpkt ("$50309fe5#01"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006c0,4"); [sending ack]
[sent ack]
putpkt ("$0cc08fe0#59"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006c0,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 020006c0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc400"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
Writing resume reply for 1024
putpkt ("$T050b:94fdffbf;0d:78fdffbf;0f:c0060002;#27"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006c0,4:0cc08fe0"); [sending ack]
[sent ack]
Writing 0c to 020006c0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006c0,4"); [sending ack]
[sent ack]
putpkt ("$0cc08fe0#59"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4000cbd0,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20006bc,4"); [sending ack]
[sent ack]
putpkt ("$04c09fe5#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b4,4"); [sending ack]
[sent ack]
putpkt ("$50309fe5#01"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20008b4,4:01009fef"); [sending ack]
[sent ack]
Writing 01 to 020008b4
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hc0"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("c"); [sending ack]
[sent ack]
Resuming process 254 (continue, signal 0, stop not expected)
Checking for breakpoint.
Removed breakpoint.
Got an event from 254 (57f)
Hit a (non-reinsert) breakpoint.
Thread creation event.
Writing 00 to 40036a2c
Attaching to thread 2049 (LWP 255)
Writing 01 to 40036a28
Writing 0d to 40029d44
Resuming process 254 (step, signal 0, stop not expected)
pending reinsert at 40029d44
Checking for breakpoint.
Removed breakpoint.
Got an event from 255 (137f)
Expected stop.
Resuming process 255 (continue, signal 0, stop not expected)
Ignored signal 32 for 1024 (LWP 254).
Resuming process 254 (step, signal 32, stop not expected)
pending reinsert at 40029d44
GDBTEST: thread loop: 10
GDBTEST: thread loop: 9
GDBTEST: thread loop: 8
GDBTEST: thread loop: 7
GDBTEST: thread loop: 6
GDBTEST: thread loop: 5
GDBTEST: thread loop: 4
GDBTEST: thread loop: 3
GDBTEST: thread loop: 2
GDBTEST: thread loop: 1
Ignored signal 33 for 2049 (LWP 255).
Resuming process 255 (continue, signal 33, stop not expected)
#host# <<< ctrl-c pressed >>>
Got an event from 254 (27f)
Sending sigstop to process 255
Got an event from 255 (137f)
Writing resume reply for 1024
putpkt ("$T020b:10fcffbf;0d:f0fbffbf;0f:c4bb0540;#a5"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$fcffffff08000000646a03406c010000846a034014fcffbf0000000030ea11400a0000007cfdffbfc093114010fcffbff0fbffbff0fbffbfb4bb0540c4bb05400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000020#8c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bbc4,4"); [sending ack]
[sent ack]
putpkt ("$0040a0e1#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bbc4,4"); [sending ack]
[sent ack]
putpkt ("$0040a0e1#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb84,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb88,4"); [sending ack]
[sent ack]
putpkt ("$f0dc2de9#91"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb8c,4"); [sending ack]
[sent ack]
putpkt ("$b0a09fe5#5c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb90,4"); [sending ack]
[sent ack]
putpkt ("$b0209fe5#2d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb94,4"); [sending ack]
[sent ack]
putpkt ("$0aa08fe0#55"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb98,4"); [sending ack]
[sent ack]
putpkt ("$02709ae7#ff"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb9c,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bba0,4"); [sending ack]
[sent ack]
putpkt ("$003097e5#cd"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bba4,4"); [sending ack]
[sent ack]
putpkt ("$0050a0e1#ec"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bba8,4"); [sending ack]
[sent ack]
putpkt ("$000053e3#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bbac,4"); [sending ack]
[sent ack]
putpkt ("$1700001a#ba"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M4000cbd0,4:0dc0a0e1"); [sending ack]
[sent ack]
Writing 0d to 4000cbd0
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20006bc,4:04c09fe5"); [sending ack]
[sent ack]
Writing 04 to 020006bc
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("M20008b4,4:50309fe5"); [sending ack]
[sent ack]
Writing 50 to 020008b4
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
#host# (gdb) set debug remote 0
#host# (gdb) info threads
getpkt ("T00000400"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qfThreadInfo"); [sending ack]
[sent ack]
putpkt ("$m400#01"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qsThreadInfo"); [sending ack]
[sent ack]
putpkt ("$m801#06"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qsThreadInfo"); [sending ack]
[sent ack]
putpkt ("$l#6c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qThreadExtraInfo,801"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qP0000001f0000000000000801"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hg801"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$fcffffff01000000d007000078010000000000000a000000e4b1000201000000d00700000cd21140c0931140d0b10002a8b10002a8b1000230af0c4044af0c403030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303010000080#49"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf44,4"); [sending ack]
[sent ack]
putpkt ("$0040a0e1#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf44,4"); [sending ack]
[sent ack]
putpkt ("$0040a0e1#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caef8,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caefc,4"); [sending ack]
[sent ack]
putpkt ("$f0df2de9#94"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf00,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf04,4"); [sending ack]
[sent ack]
putpkt ("$98a09fe5#3b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf08,4"); [sending ack]
[sent ack]
putpkt ("$0060a0e1#ed"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf0c,4"); [sending ack]
[sent ack]
putpkt ("$94c09fe5#39"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf10,4"); [sending ack]
[sent ack]
putpkt ("$0aa08fe0#55"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf14,4"); [sending ack]
[sent ack]
putpkt ("$0c909ae7#32"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf18,4"); [sending ack]
[sent ack]
putpkt ("$0170a0e1#ef"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf1c,4"); [sending ack]
[sent ack]
putpkt ("$003099e5#cf"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf20,4"); [sending ack]
[sent ack]
putpkt ("$0280a0e1#f1"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf24,4"); [sending ack]
[sent ack]
putpkt ("$000053e3#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400caf28,4"); [sending ack]
[sent ack]
putpkt ("$1800001a#bb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("qP0000001f0000000000000400"); [sending ack]
[sent ack]
putpkt ("$#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("Hg400"); [sending ack]
[sent ack]
putpkt ("$OK#9a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("g"); [sending ack]
[sent ack]
putpkt ("$fcffffff08000000646a03406c010000846a034014fcffbf0000000030ea11400a0000007cfdffbfc093114010fcffbff0fbffbff0fbffbfb4bb0540c4bb05400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000020#8c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bbc4,4"); [sending ack]
[sent ack]
putpkt ("$0040a0e1#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bbc4,4"); [sending ack]
[sent ack]
putpkt ("$0040a0e1#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb84,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb88,4"); [sending ack]
[sent ack]
putpkt ("$f0dc2de9#91"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb8c,4"); [sending ack]
[sent ack]
putpkt ("$b0a09fe5#5c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb90,4"); [sending ack]
[sent ack]
putpkt ("$b0209fe5#2d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb94,4"); [sending ack]
[sent ack]
putpkt ("$0aa08fe0#55"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb98,4"); [sending ack]
[sent ack]
putpkt ("$02709ae7#ff"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bb9c,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bba0,4"); [sending ack]
[sent ack]
putpkt ("$003097e5#cd"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bba4,4"); [sending ack]
[sent ack]
putpkt ("$0050a0e1#ec"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bba8,4"); [sending ack]
[sent ack]
putpkt ("$000053e3#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005bbac,4"); [sending ack]
[sent ack]
putpkt ("$1700001a#ba"); [looking for ack]
[received '+' (0x2b)]
#host# (gdb) bt
getpkt ("mbffffc0c,4"); [sending ack]
[sent ack]
putpkt ("$346b0240#c5"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffc04,4"); [sending ack]
[sent ack]
putpkt ("$b4fcffbf#f3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffc0c,4"); [sending ack]
[sent ack]
putpkt ("$346b0240#c5"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffc0c,4"); [sending ack]
[sent ack]
putpkt ("$346b0240#c5"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b34,4"); [sending ack]
[sent ack]
putpkt ("$202095e5#cc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026ad8,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026adc,4"); [sending ack]
[sent ack]
putpkt ("$f0dc2de9#91"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026ae0,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026ae4,4"); [sending ack]
[sent ack]
putpkt ("$0050a0e1#ec"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026ae8,4"); [sending ack]
[sent ack]
putpkt ("$0200a0e3#eb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026aec,4"); [sending ack]
[sent ack]
putpkt ("$0010a0e3#ea"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026af0,4"); [sending ack]
[sent ack]
putpkt ("$a0404be2#22"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026af4,4"); [sending ack]
[sent ack]
putpkt ("$0470a0e1#f2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026af8,4"); [sending ack]
[sent ack]
putpkt ("$48a09fe5#36"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026afc,4"); [sending ack]
[sent ack]
putpkt ("$0420a0e1#ed"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b00,4"); [sending ack]
[sent ack]
putpkt ("$0aa08fe0#55"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b04,4"); [sending ack]
[sent ack]
putpkt ("$80d04de2#2b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b08,4"); [sending ack]
[sent ack]
putpkt ("$c5ecffeb#f3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b0c,4"); [sending ack]
[sent ack]
putpkt ("$38309fe5#07"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b10,4"); [sending ack]
[sent ack]
putpkt ("$0060a0e3#ef"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b14,4"); [sending ack]
[sent ack]
putpkt ("$03209ae7#fb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffc04,4"); [sending ack]
[sent ack]
putpkt ("$b4fcffbf#f3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffc0c,4"); [sending ack]
[sent ack]
putpkt ("$346b0240#c5"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026b34,4"); [sending ack]
[sent ack]
putpkt ("$202095e5#cc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffbf4,4"); [sending ack]
[sent ack]
putpkt ("$e0660340#c8"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffcb0,4"); [sending ack]
[sent ack]
putpkt ("$38610240#98"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffca8,4"); [sending ack]
[sent ack]
putpkt ("$74fdffbf#c9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffcb0,4"); [sending ack]
[sent ack]
putpkt ("$38610240#98"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffcb0,4"); [sending ack]
[sent ack]
putpkt ("$38610240#98"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026138,4"); [sending ack]
[sent ack]
putpkt ("$343095e5#d2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40025ff4,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40025ff8,4"); [sending ack]
[sent ack]
putpkt ("$f0df2de9#94"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40025ffc,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026000,4"); [sending ack]
[sent ack]
putpkt ("$0090a0e1#f0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026004,4"); [sending ack]
[sent ack]
putpkt ("$bca09fe5#8f"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026008,4"); [sending ack]
[sent ack]
putpkt ("$0270a0e1#f0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4002600c,4"); [sending ack]
[sent ack]
putpkt ("$b8c09fe5#66"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026010,4"); [sending ack]
[sent ack]
putpkt ("$0aa08fe0#55"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026014,4"); [sending ack]
[sent ack]
putpkt ("$94d04de2#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026018,4"); [sending ack]
[sent ack]
putpkt ("$0ce09ae7#5e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4002601c,4"); [sending ack]
[sent ack]
putpkt ("$0380a0e1#f2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026020,4"); [sending ack]
[sent ack]
putpkt ("$00409ee5#fc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026024,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026028,4"); [sending ack]
[sent ack]
putpkt ("$04005ce1#f2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4002602c,4"); [sending ack]
[sent ack]
putpkt ("$0140a0e1#ec"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026030,4"); [sending ack]
[sent ack]
putpkt ("$98309f25#da"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffca8,4"); [sending ack]
[sent ack]
putpkt ("$74fdffbf#c9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffcb0,4"); [sending ack]
[sent ack]
putpkt ("$38610240#98"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40026138,4"); [sending ack]
[sent ack]
putpkt ("$343095e5#d2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffc94,4"); [sending ack]
[sent ack]
putpkt ("$b8fcffbf#f7"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffca0,4"); [sending ack]
[sent ack]
putpkt ("$00080002#8a"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd70,4"); [sending ack]
[sent ack]
putpkt ("$b4080002#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd68,4"); [sending ack]
[sent ack]
putpkt ("$94fdffbf#cb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd70,4"); [sending ack]
[sent ack]
putpkt ("$b4080002#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd70,4"); [sending ack]
[sent ack]
putpkt ("$b4080002#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b4,4"); [sending ack]
[sent ack]
putpkt ("$50309fe5#01"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000874,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000878,4"); [sending ack]
[sent ack]
putpkt ("$00d82de9#30"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200087c,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000880,4"); [sending ack]
[sent ack]
putpkt ("$10d04de2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000884,4"); [sending ack]
[sent ack]
putpkt ("$10000be5#ed"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000888,4"); [sending ack]
[sent ack]
putpkt ("$14100be5#f2"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200088c,4"); [sending ack]
[sent ack]
putpkt ("$78309fe5#0b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000890,4"); [sending ack]
[sent ack]
putpkt ("$000093e5#c6"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000894,4"); [sending ack]
[sent ack]
putpkt ("$74109fe5#05"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m2000898,4"); [sending ack]
[sent ack]
putpkt ("$7fffffeb#fc"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m200089c,4"); [sending ack]
[sent ack]
putpkt ("$18304be2#f9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008a0,4"); [sending ack]
[sent ack]
putpkt ("$0300a0e1#ea"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008a4,4"); [sending ack]
[sent ack]
putpkt ("$0010a0e3#ea"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008a8,4"); [sending ack]
[sent ack]
putpkt ("$64209fe5#05"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008ac,4"); [sending ack]
[sent ack]
putpkt ("$0a30a0e3#1d"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b0,4"); [sending ack]
[sent ack]
putpkt ("$81ffffeb#c8"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd68,4"); [sending ack]
[sent ack]
putpkt ("$94fdffbf#cb"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd70,4"); [sending ack]
[sent ack]
putpkt ("$b4080002#c0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m20008b4,4"); [sending ack]
[sent ack]
putpkt ("$50309fe5#01"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd90,4"); [sending ack]
[sent ack]
putpkt ("$a0540540#c3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd88,4"); [sending ack]
[sent ack]
putpkt ("$c8fdffbf#f9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd90,4"); [sending ack]
[sent ack]
putpkt ("$a0540540#c3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd90,4"); [sending ack]
[sent ack]
putpkt ("$a0540540#c3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400554a0,4"); [sending ack]
[sent ack]
putpkt ("$0ffeffeb#f4"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055354,4"); [sending ack]
[sent ack]
putpkt ("$0dc0a0e1#4e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055358,4"); [sending ack]
[sent ack]
putpkt ("$f0df2de9#94"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005535c,4"); [sending ack]
[sent ack]
putpkt ("$40a19fe5#2f"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055360,4"); [sending ack]
[sent ack]
putpkt ("$04b04ce2#24"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055364,4"); [sending ack]
[sent ack]
putpkt ("$3ce19fe5#65"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055368,4"); [sending ack]
[sent ack]
putpkt ("$0aa08fe0#55"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005536c,4"); [sending ack]
[sent ack]
putpkt ("$0ec09ae7#5e"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055370,4"); [sending ack]
[sent ack]
putpkt ("$08d04de2#2b"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055374,4"); [sending ack]
[sent ack]
putpkt ("$0c409be5#2c"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055378,4"); [sending ack]
[sent ack]
putpkt ("$00408ce5#f9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005537c,4"); [sending ack]
[sent ack]
putpkt ("$0160a0e1#ee"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055380,4"); [sending ack]
[sent ack]
putpkt ("$0250a0e1#ee"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055384,4"); [sending ack]
[sent ack]
putpkt ("$0621a0e1#f0"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055388,4"); [sending ack]
[sent ack]
putpkt ("$1c119fe5#2f"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m4005538c,4"); [sending ack]
[sent ack]
putpkt ("$042082e2#c7"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m40055390,4"); [sending ack]
[sent ack]
putpkt ("$01909ae7#00"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd88,4"); [sending ack]
[sent ack]
putpkt ("$c8fdffbf#f9"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd90,4"); [sending ack]
[sent ack]
putpkt ("$a0540540#c3"); [looking for ack]
[received '+' (0x2b)]
getpkt ("m400554a0,4"); [sending ack]
[sent ack]
putpkt ("$0ffeffeb#f4"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd9c,4"); [sending ack]
[sent ack]
putpkt ("$74080002#95"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd54,4"); [sending ack]
[sent ack]
putpkt ("$01000000#81"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd50,4"); [sending ack]
[sent ack]
putpkt ("$d4fdffbf#f6"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffd5c,4"); [sending ack]
[sent ack]
putpkt ("$74060002#93"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffdcc,4"); [sending ack]
[sent ack]
putpkt ("$78100002#92"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffdd0,4"); [sending ack]
[sent ack]
putpkt ("$60ca0040#ee"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffdd4,4"); [sending ack]
[sent ack]
putpkt ("$b6feffbf#f7"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffdc4,4"); [sending ack]
[sent ack]
putpkt ("$70070002#90"); [looking for ack]
[received '+' (0x2b)]
getpkt ("mbffffdbc,4"); [sending ack]
[sent ack]
putpkt ("$00000000#80"); [looking for ack]
[received '+' (0x2b)]
#host# (gdb) quit
#host# The program is running. Exit anyway? (y or n) y
getpkt ("k"); [sending ack]
[sent ack]
Killing inferior
Got an event from 254 (9)
Thread 1024 (LWP 254) exiting
Got an event from 255 (9)
Thread 2049 (LWP 255) exiting
GDBserver restarting
Process gdbtest created; pid = 257
Got an event from 257 (57f)
Hit a (non-reinsert) breakpoint.
readchar: Got EOF
[getpkt: discarding char 'ÿ']
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 22:49 ` Jon Ringle
@ 2003-06-29 2:02 ` Daniel Jacobowitz
2003-06-29 6:40 ` Jon Ringle
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Jacobowitz @ 2003-06-29 2:02 UTC (permalink / raw)
To: Jon Ringle; +Cc: gdb
On Sat, Jun 28, 2003 at 06:33:53PM -0400, Jon Ringle wrote:
> On Saturday 28 June 2003 04:01 pm, Daniel Jacobowitz wrote:
> > On Sat, Jun 28, 2003 at 01:11:06PM -0400, Jon Ringle wrote:
> > > > > Could the problem be on the gdbserver side not sending back anything
> > > > > in response to gdb Sending packet: &c#63...Ack?
> > > >
> > > > No. That's a continue request. The target isn't stopping again, but
> > > > that's not gdbserver's fault... it won't respond to the client until
> > > > the program stops.
> > > >
> > > > Find out why it's not stopping...
> > >
> > > I turned on remote_debug = 1, and debug_threads = 1 on gdbserver, and I
> > > get the following on the target when I continue. The signal 32 looks
> > > suspect to me.
> >
> > It is correct. The thread manager uses that. What are you running on
> > the ARM board? What's the rest of the gdbserver log?
>
> The ARM board is running linux-2.2.16 w/ glibc-2.1.3. The arm-linux-gcc
> version is 2.95.2.
Gdbserver is issuing a single-step request. ARM doesn't have
single-step support in hardware, generally, so the kernel emulates it.
This behaviour almost certainly represents a problem with your kernel's
single-step implementation. One possible problem would be if your
compiler is using the "bx" instruction to return from functions; most
versions of the kernel can't single-step a bx instruction.
Here's a tweak to gdbserver which will prevent it from trying to
single-step in your case. Let me know if this works, please.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-06-28 Daniel Jacobowitz <drow@mvista.com>
* linux-arm-low.c (arm_reinsert_addr): New function.
(the_low_target): Add arm_reinsert_addr.
Index: linux-arm-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-arm-low.c,v
retrieving revision 1.5
diff -u -p -r1.5 linux-arm-low.c
--- linux-arm-low.c 18 Nov 2002 00:37:50 -0000 1.5
+++ linux-arm-low.c 28 Jun 2003 23:53:49 -0000
@@ -80,6 +80,17 @@ arm_breakpoint_at (CORE_ADDR where)
return 0;
}
+/* We only place breakpoints in empty marker functions, and thread locking
+ is outside of the function. So rather than importing software single-step,
+ we can just run until exit. */
+static CORE_ADDR
+arm_reinsert_addr ()
+{
+ unsigned long pc;
+ collect_register_by_name ("lr", &pc);
+ return pc;
+}
+
struct linux_target_ops the_low_target = {
arm_num_regs,
arm_regmap,
@@ -89,7 +100,7 @@ struct linux_target_ops the_low_target =
arm_set_pc,
(const char *) &arm_breakpoint,
arm_breakpoint_len,
- NULL,
+ arm_reinsert_addr,
0,
arm_breakpoint_at,
};
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-28 15:52 ` Jon Ringle
@ 2003-06-29 2:16 ` Jon Ringle
0 siblings, 0 replies; 12+ messages in thread
From: Jon Ringle @ 2003-06-29 2:16 UTC (permalink / raw)
To: gdb
Arghhh... I placed my <ctrl-c> comment in the wrong spot in the last
message... Corrected below.
My apologies :)
Jon
On Saturday 28 June 2003 03:16 am, Jon Ringle wrote:
> Updated output below to have 'set debug remote 1' just before the hang...
> Seems like it would be useful information.
>
> Jon
>
> On Saturday 28 June 2003 01:28 am, Jon Ringle wrote:
> > Hi,
> >
> > I am having an issue when remote debugging a multi-threaded app, a call
> > to pthread_create hangs inside __pthread_wait_for_restart_signal on the
> > host gdb.
> >
> > Thanks in advance.
> >
> > Jon
> >
> > I've built a gdb-5.3 cross debugging environment i686 host/arm target
> > with the following:
> >
> > $ tar xzf gdb-5.3.tar.gz
> > $ mkdir gdb-native
> > $ cd gdb-native
> > $ ../gdb-5.3/configure --host=i686-pc-linux-gnu \
> > --target=arm-linux \
> > --build=i686-pc-linux-gnu
> > $ make
> > $ cd ..
> > $ mkdir gdb-cross
> > $ cd gdb-cross
> > $ HOSTCC=gcc CC='arm-linux-gcc -msoft-float' \
> > ../gdb-5.3/configure --host=arm-linux \
> > --target=arm-linux \
> > --build=i686-pc-linux-gnu
> > $ make
> > $ cd ..
> >
> > I copy gdb-cross/gdb/gdbserver/gdbserver to the target arm.
> > On the target, I execute:
> > # ./gdbserver :5555 test-thread
> > Process test-thread created; pid = 380
> >
> >
> > On the host I run:
> > $ gdb-native/gdb/gdb test-thread
>
> GNU gdb 5.3
> Copyright 2002 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) set solib-absolute-prefix /dev/null
> (gdb) set solib-search-path /usr/arm-linux/lib
> (gdb) target extended-remote 10.10.10.101:5555
> Remote debugging using 10.10.10.101:5555
> 0x400025c0 in ?? ()
> (gdb) b pthread_create
> Breakpoint 1 at 0x20019e0
> (gdb) c
> Continuing.
> [New Thread 1024]
> [Switching to Thread 1024]
>
> Breakpoint 1, 0x020019e0 in pthread_create ()
> (gdb) set debug remote 1
> (gdb) finish
> Sending packet: $m20019e0,4#5e...Ack
> Packet received: 04c09fe5
> Sending packet: $m204b424,4#5f...Ack
> Packet received: 0030a0e1
> Sending packet: $m204b230,4#5a...Ack
> Packet received: 0dc0a0e1
> Sending packet: $m204b234,4#5e...Ack
> Packet received: 00d82de9
> Sending packet: $m204b238,4#62...Ack
> Packet received: 04b04ce2
> Sending packet: $m204b23c,4#8d...Ack
> Packet received: 30d04de2
> Sending packet: $m204b240,4#5b...Ack
> Packet received: 10000be5
> Sending packet: $m204b244,4#5f...Ack
> Packet received: 14100be5
> Sending packet: $m204b248,4#63...Ack
> Packet received: 18200be5
> Sending packet: $m204b24c,4#8e...Ack
> Packet received: 0030a0e3
> Sending packet: $m204b250,4#5c...Ack
> Packet received: 20300be5
> Sending packet: $m204b254,4#60...Ack
> Packet received: ab0300eb
> Sending packet: $m204b258,4#64...Ack
> Packet received: 0030a0e1
> Sending packet: $m204b25c,4#8f...Ack
> Packet received: 030053e3
> Sending packet: $m204b260,4#5d...Ack
> Packet received: 020000da
> Sending packet: $m204b424,4#5f...Ack
> Packet received: 0030a0e1
> Run till exit from #0 0x020019e0 in pthread_create ()
> Sending packet: $m20019e0,4#5e...Ack
> Packet received: 04c09fe5
> Sending packet: $m20019e4,4#62...Ack
> Packet received: 0cc08fe0
> Sending packet: $M20019e4,4:01009fef#a7...Ack
> Packet received: OK
> Sending packet: $Hc400#3f...Ack
> Packet received: OK
> Sending packet: $c#63...Ack
> Packet received: T050b:54fdffbf;0d:18fdffbf;0f:e4190002;
> Sending packet: $M20019e4,4:0cc08fe0#d5...Ack
> Packet received: OK
> Sending packet: $m20019e4,4#62...Ack
> Packet received: 0cc08fe0
> Sending packet: $m4000cbd0,4#ea...Ack
> Packet received: 0dc0a0e1
> Sending packet: $M4000cbd0,4:01009fef#2f...Ack
> Packet received: OK
> Sending packet: $m20019e0,4#5e...Ack
> Packet received: 04c09fe5
> Sending packet: $M20019e0,4:01009fef#a3...Ack
> Packet received: OK
> Sending packet: $m204b424,4#5f...Ack
> Packet received: 0030a0e1
> Sending packet: $M204b424,4:01009fef#a4...Ack
> Packet received: OK
> Sending packet: $Hc0#db...Ack
> Packet received: OK
> Sending packet: $c#63...Ack
<<<<< Hang occurs here! Pressing ctrl-c to abort. >>>>>>>>>
> remote_interrupt called
> remote_stop called
> Packet received: T020b:b0fbffbf;0d:90fbffbf;0f:c4eb1440;
> Program received signal SIGINT, Interrupt.
> Sending packet: $g#67...Ack
> Packet received:
> fcffffff08000000641a11406c010000841a1140b4fbffbf16000000301a214088fdffbfdcf
>80602c0c32040b0fbffbf90fbffbf90fbffbfb4eb1440c4eb144000000000000000000000000
>0000000000000000000000000000000000000000000000000000000000000000000000000000
>0000000000000000000000000000000000000000000000000000000000000000000000000000
>000000000000000000000000010000020 Sending packet: $m4014ebc4,4#f4...Ack
> Packet received: 0040a0e1
> Sending packet: $m4014ebc4,4#f4...Ack
> Packet received: 0040a0e1
> Sending packet: $m4014eb84,4#c9...Ack
> Packet received: 0dc0a0e1
> Sending packet: $m4014eb88,4#cd...Ack
> Packet received: f0dc2de9
> Sending packet: $m4014eb8c,4#f8...Ack
> Packet received: b0a09fe5
> Sending packet: $m4014eb90,4#c6...Ack
> Packet received: b0209fe5
> Sending packet: $m4014eb94,4#ca...Ack
> Packet received: 0aa08fe0
> Sending packet: $m4014eb98,4#ce...Ack
> Packet received: 02709ae7
> Sending packet: $m4014eb9c,4#f9...Ack
> Packet received: 04b04ce2
> Sending packet: $m4014eba0,4#ee...Ack
> Packet received: 003097e5
> Sending packet: $m4014eba4,4#f2...Ack
> Packet received: 0050a0e1
> Sending packet: $m4014eba8,4#f6...Ack
> Packet received: 000053e3
> Sending packet: $m4014ebac,4#21...Ack
> Packet received: 1700001a
> Sending packet: $M4000cbd0,4:0dc0a0e1#52...Ack
> Packet received: OK
> Sending packet: $M20019e0,4:04c09fe5#a8...Ack
> Packet received: OK
> Sending packet: $M204b424,4:0030a0e1#63...Ack
> Packet received: OK
> 0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
> ../sysdeps/unix/sysv/linux/sigsuspend.c:48
> 48 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
> in ../sysdeps/unix/sysv/linux/sigsuspend.c
> (gdb) set debug remote 0
> (gdb) bt
> #0 0x4014ebc4 in __sigsuspend (set=0xbffffbb4) at
> ../sysdeps/unix/sysv/linux/sigsuspend.c:48
> #1 0x40101b34 in __pthread_wait_for_restart_signal (self=0x401116e0) at
> pthread.c:786
> #2 0x40101138 in __pthread_create_2_1 (thread=0x206f8dc, attr=0xbffffc58,
> start_routine=0x20043ac <console>, arg=0xbffffd88) at restart.h:26
> #3 0x0204b424 in createThread (func=0x20043ac <console>, arg=0xbffffd88,
> threadname=0x204f4f0 "console") at thread.c:84
> #4 0x020022b8 in main (argc=1, argv=0xbffffdd4) at main.c:168
> #5 0x401484a0 in __libc_start_main (main=0x2002054 <main>, argc=1,
> argv=0xbffffdd4, init=0x2001848 <_init>, fini=0x204f334 <_fini>,
> rtld_fini=0x4000ca60 <_dl_fini>,
> stack_end=0xbffffeba) at ../sysdeps/generic/libc-start.c:92
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: pthread_create does not return when remote debugging
2003-06-29 2:02 ` Daniel Jacobowitz
@ 2003-06-29 6:40 ` Jon Ringle
0 siblings, 0 replies; 12+ messages in thread
From: Jon Ringle @ 2003-06-29 6:40 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
On Saturday 28 June 2003 07:54 pm, Daniel Jacobowitz wrote:
> On Sat, Jun 28, 2003 at 06:33:53PM -0400, Jon Ringle wrote:
> > On Saturday 28 June 2003 04:01 pm, Daniel Jacobowitz wrote:
> > > On Sat, Jun 28, 2003 at 01:11:06PM -0400, Jon Ringle wrote:
> > > > > > Could the problem be on the gdbserver side not sending back
> > > > > > anything in response to gdb Sending packet: &c#63...Ack?
> > > > >
> > > > > No. That's a continue request. The target isn't stopping again,
> > > > > but that's not gdbserver's fault... it won't respond to the client
> > > > > until the program stops.
> > > > >
> > > > > Find out why it's not stopping...
> > > >
> > > > I turned on remote_debug = 1, and debug_threads = 1 on gdbserver, and
> > > > I get the following on the target when I continue. The signal 32
> > > > looks suspect to me.
> > >
> > > It is correct. The thread manager uses that. What are you running on
> > > the ARM board? What's the rest of the gdbserver log?
> >
> > The ARM board is running linux-2.2.16 w/ glibc-2.1.3. The arm-linux-gcc
> > version is 2.95.2.
>
> Gdbserver is issuing a single-step request. ARM doesn't have
> single-step support in hardware, generally, so the kernel emulates it.
> This behaviour almost certainly represents a problem with your kernel's
> single-step implementation. One possible problem would be if your
> compiler is using the "bx" instruction to return from functions; most
> versions of the kernel can't single-step a bx instruction.
>
> Here's a tweak to gdbserver which will prevent it from trying to
> single-step in your case. Let me know if this works, please.
You da man! It worked.
What's interesting though, is that if I used the arm gdb-cross/gdb/gdb on the
arm board, this worked just fine. It appears that gdb handles this situation
ok as is. Does gdb handle this the way that your patch for gdbserver does?
Jon
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2003-06-29 2:02 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-28 7:16 pthread_create does not return when remote debugging Jon Ringle
2003-06-28 13:43 ` Jon Ringle
2003-06-28 15:52 ` Jon Ringle
2003-06-29 2:16 ` Jon Ringle
2003-06-28 15:01 ` Daniel Jacobowitz
2003-06-28 15:02 ` Jon Ringle
2003-06-28 15:30 ` Daniel Jacobowitz
2003-06-28 20:02 ` Jon Ringle
2003-06-28 20:29 ` Daniel Jacobowitz
2003-06-28 22:49 ` Jon Ringle
2003-06-29 2:02 ` Daniel Jacobowitz
2003-06-29 6:40 ` Jon Ringle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).