break of time loop

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

break of time loop

Efim Monyak-2
Hi all,

is there a particular time between send a "step" command and ctrl+c.
I see the ctrl+c charakter on different place depend on performanse of
target.
If I set a big delay before send "step" response I see about 1 sec.
between "step" command
and ctrl+c. Signal Interrupt which stops the time loop after ctrl+c
don't stops
the loop if ctrl+c is received after "stop" response but to close to
next "step"
command to send a special responce to ctrl+c. In this case next "step"
is responced
with interrupt signal. But the loop will not be stopped.

--
Mit freundlichen Gruessen
Efim Monjak


Lipowsky Industrie-Elektronik GmbH
64291 Darmstadt, Roemerstr. 57
Telefon:  +49-(0)6151-93591-0  
Telefax:  +49-(0)6151-93591-28  
Email:    [hidden email]
Homepage: http://www.lipowsky.de
DIN EN ISO 9001:2000 certified by DQS

Reply | Threaded
Open this post in threaded view
|

Re: break of time loop

Daniel Jacobowitz-2
On Thu, Nov 03, 2005 at 11:42:24AM +0100, Efim Monjak wrote:
> Hi all,
>
> is there a particular time between send a "step" command and ctrl+c.

No, the ctrl-c is processed whenever GDB receives it from the user, if
the target is running.

> I see the ctrl+c charakter on different place depend on performanse of
> target.
> If I set a big delay before send "step" response I see about 1 sec.
> between "step" command
> and ctrl+c. Signal Interrupt which stops the time loop after ctrl+c
> don't stops
> the loop if ctrl+c is received after "stop" response but to close to
> next "step"
> command to send a special responce to ctrl+c. In this case next "step"
> is responced
> with interrupt signal. But the loop will not be stopped.

Sorry, I can not follow the situation you are describing.  I would need
to see an example session.

--
Daniel Jacobowitz
CodeSourcery, LLC
Reply | Threaded
Open this post in threaded view
|

Re: break of time loop

Efim Monyak-2
In reply to this post by Efim Monyak-2
hier are parts of protocolls thith different positions of ctrl+c to step
responce

|| 2B 24 73 23 37 33                                 +$s#73          
*Answer: 04.11.2005 11:18:13.04264 (+0.0000 seconds)
* 2B 24 54 30 35 30 62 3A 65 63 33 64 30 30 34 30   +$T050b:ec3d0040
 3B 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A   ;0d:dc3d0040;0f:
 66 30 30 37 30 30 34 30 3B 23 64 61               f0070040;#da    
*Request: 04.11.2005 11:18:13.07364 (+0.0000 seconds)
* 03 2B 24 73 23 37 33                              .+$s#73        
*Answer: 04.11.2005 11:18:13.07364 (+0.0000 seconds)
* 2B 24 54 30 35 30 62 3A 65 63 33 64 30 30 34 30   +$T050b:ec3d0040

3B 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A ;0d:dc3d0040;0f: 66 34
30 37 30 30 34 30 3B 23 64 65 f4070040;#de

*Request: 04.11.2005 11:18:13.10564 (+0.0000 seconds)
* 2B 24 73 23 37 33                                 +$s#73          
*Answer: 04.11.2005 11:18:13.10564 (+0.0000 seconds)
* 2B 24 54 30 35 30 62 3A 65 63 33 64 30 30 34 30   +$T050b:ec3d0040
 3B 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A   ;0d:dc3d0040;0f:
 66 38 30 37 30 30 34 30 3B 23 65 32               f8070040;#e2    
*Request: 04.11.2005 11:18:13.13664 (+0.0000 seconds)
* 2B 24 73 23 37 33                                 +$s#73          
*Answer: 04.11.2005 11:18:13.13664 (+0.0000 seconds)
* 2B 24                                             +$              
*Request: 04.11.2005 11:18:13.16764 (+0.0000 seconds)
* 03                                                .              
*
[ctrl+c sent without to wait for responce end]

Answer: 04.11.2005 11:18:13.16764 (+0.0000 seconds)
* 54 30 35 30 62 3A 65 63 33 64 30 30 34 30 3B 30   T050b:ec3d0040;0
 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A 66 63   d:dc3d0040;0f:fc
 30 37 30 30 34 30 3B 23 30 64                     070040;#0d      
*Request: 04.11.2005 11:18:13.16764 (+0.0000 seconds)
* 2B 24 73 23 37 33                                 +$s#73          
*Answer: 04.11.2005 11:18:13.16764 (+0.0000 seconds)
* 2B 24 54 30 35 30 62 3A 65 63 33 64 30 30 34 30   +$T050b:ec3d0040
 3B 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A   ;0d:dc3d0040;0f:
 30 30 30 38 30 30 34 30 3B 23 61 35               00080040;#a5


they are different placies

hier from GDB
Packet received: T050b:ec3d0040;0d:dc3d0040;0f:f4070040;
Sending packet: $s#73...Ack
Packet received: T050b:ec3d0040;0d:dc3d0040;0f:f8070040;
remote_interrupt called
remote_stop called
Sending packet: $s#73...Packet instead of Ack, ignoring it



hier on serial connection

Request: 04.11.2005 11:25:58.93664 (+0.0000 seconds)
 2B 24 73 23 37
33                                                                          
+$s#73        
Answer: 04.11.2005 11:25:58.95264 (+0.0156 seconds)
 2B 24 54 30 35 30 62 3A 65 63 33 64 30 30 34 30                      
+$T050b:ec3d0040
 3B 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A                    
;0d:dc3d0040;0f:
 30 30 30 38 30 30 34 30 3B 23 61
35                                           00080040;#a5  
Request: 04.11.2005 11:25:58.96764 (+0.0000 seconds)
 2B 03 24 73 23 37
33                                                                  
+.$s#73        

[hier ctrl+c sentd after step responce but not wait for its own responce
after step command
signal is ignored]

Answer: 04.11.2005 11:25:58.98364 (+0.0000 seconds)
 24 54 30 32 30 62 3A 65 63 33 64 30 30 34 30 3B                      
$T020b:ec3d0040;
 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A 30                    
0d:dc3d0040;0f:0
 30 30 38 30 30 34 30 3B 23 61
32                                              0080040;#a2    
Request: 04.11.2005 11:25:58.98364 (+0.0000 seconds)
 2B 24 73 23 37 33                                                      
                  +$s#73        
Answer: 04.11.2005 11:26:01.98364 (+0.0000 seconds)
 2B 24 54 30 35 30 62 3A 65 63 33 64 30 30 34 30                    
+$T050b:ec3d0040
 3B 30 64 3A 64 63 33 64 30 30 34 30 3B 30 66 3A                  
;0d:dc3d0040;0f:
 65 63 30 37 30 30 34 30 3B 23 30
63                                        ec070040;#0c  
Request: 04.11.2005 11:26:01.01464 (+0.0000 seconds)






--
Mit freundlichen Gruessen
Efim Monjak


Lipowsky Industrie-Elektronik GmbH
64291 Darmstadt, Roemerstr. 57
Telefon:  +49-(0)6151-93591-0  
Telefax:  +49-(0)6151-93591-28  
Email:    [hidden email]
Homepage: http://www.lipowsky.de
DIN EN ISO 9001:2000 certified by DQS