[patch] Change trace buffer size(v5)

Abid, Hafiz hafiz_abid@mentor.com
Fri May 3 11:38:00 GMT 2013


On 02/05/13 18:31:36, Pedro Alves wrote:
> 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
> 
> 
Hi Pedro,
Thanks for letting me know. There is a testcase in  
status-stop.exp(test_tstart_tstart) to check this case but it is not  
working as intended. I will work on a patch.

Regards,
Abid


More information about the Gdb-patches mailing list