Re: [patch] Change trace buffer size(v5)

Pedro Alves
2013-05-02T17:31:50Z

Hi!

Unfortunately, I just noticed that this broke "tstart" if a
trace run is already running:

(gdb) tstart
A trace is running already. Start a new run? (y or n) y
Sending packet: $QTinit#59...Packet received: OK
Sending packet: $QTDP:3:0000000000410296:E:0:0#49...Packet received: OK
Sending packet: $QTDPsrc:3:410296:at:0:4:6d61696e#8a...Packet received: OK
Sending packet: $QTDV:1:0000000000000000:1:74726163655f74696d657374616d70#4f...Packet received: OK
Sending packet: $:0000000000400200,000000000040021c:000000000040021c,000000000040023c:000000000040023c,0000000000400260:0000000000400260,00000000004002c0:00000000004002c0,0000000000400ff8:0000000000400ff8,000000000040149e:000000000040149e,00000000004015b8:00000000004015b8,0000000000401628:0000000000401628,0000000000401688:0000000000401688,0000000000402210:0000000000402210,000000000040221e:0000000000402220,00000000004029e0:00000000004029e0,000000000043a230:000000000043a230,000000000043a239:000000000043a240,000000000044cafd:000000000044cb00,000000000044e834:000000000044e838,00000000004560a4#ab...Packet received:
Sending packet: $QTDisconnected:0#e2...Packet received: OK
Sending packet: $QTBuffer:circular:0#f8...Packet received: OK
Sending packet: $QTBuffer:size:-1#8c...Packet received: E01
Target returns error code '01'.
(gdb)

Perhaps gdbserver's QTinit handling should be calling
stop_tracing?

--
Pedro Alves