Skip to contentSkip to conversation

debug a xenomai application with gdb stops another xenomai application

Xenomai Roberto Bielli 2 participants 7 messages Nov 12, 2012 – Nov 13, 2012 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

i have two different applications with xenomai task.
When i put a gdb breakpoint into a task in the first application, the xenomai tasks in the second applications stops.

Is it a correct behaviour ?

the system is:
- cpu = arm - freescale imx25
- kernel 2.6.31
- xenomai 2.5.6
- adeos-ipipe-2.6.31-arm-1.16-02.patch

Thanks for all

Best regards

Signature · 33 lines
+------------------------------------------------------------------------------------------------+
							
Roberto Bielli
Sviluppo Software					
Axel S.r.l.					
							
Via Del Cannino, 3 				
21020 Crosio Della Valle			
Varese - Italy					
							
Telefono: +39 0332 949600			
Fax:      +39 0332 969315			
							
E-mail:   [email protected]	
Web Site: www.axelsw.it

+------------------------------------------------------------------------------------------------+

Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected]

This e-mail and any attachments is confidential and may contain privileged information
intended for the addressee(s) only. Dissemination, copying, printing or use by anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.  			
							
+------------------------------------------------------------------------------------------------+
#2 lore raw
Quoted 9 lines · Roberto Bielli

Hi,

i have two different applications with xenomai task.
When i put a gdb breakpoint into a task in the first application, the xenomai tasks in the second applications stops.

Is it a correct behaviour ?

Quoted 7 lines

the system is:
- cpu = arm - freescale imx25
- kernel 2.6.31
- xenomai 2.5.6
- adeos-ipipe-2.6.31-arm-1.16-02.patch

Thanks for all

I think so. This is a feature, the timers stops, because otherwise, if you use timeouts, you get cascaded timeouts all over the place when one thread stops in the debugger.

Signature · 1 line
                                                                Gilles.
#3 lore raw

Hi,

is the same behaviour in kernel space ?

I explain it better.

if i develop a rtdm driver with xenomai tasks and put a gdb breakpoint into user space application does the task in kernel space continue ?

Best Regards

Il 12/11/2012 22:39, Gilles Chanteperdrix ha scritto:

Quoted 22 lines · Roberto Bielli
Quoted 9 lines

Hi,

i have two different applications with xenomai task.
When i put a gdb breakpoint into a task in the first application, the xenomai tasks in the second applications stops.

Is it a correct behaviour ?

Quoted 7 lines

the system is:
- cpu = arm - freescale imx25
- kernel 2.6.31
- xenomai 2.5.6
- adeos-ipipe-2.6.31-arm-1.16-02.patch

Thanks for all

I think so. This is a feature, the timers stops, because otherwise, if you use timeouts, you get cascaded timeouts all over the place when one thread stops in the debugger.

Signature · 33 lines
+------------------------------------------------------------------------------------------------+
							
Roberto Bielli
Sviluppo Software					
Axel S.r.l.					
							
Via Del Cannino, 3 				
21020 Crosio Della Valle			
Varese - Italy					
							
Telefono: +39 0332 949600			
Fax:      +39 0332 969315			
							
E-mail:   [email protected]	
Web Site: www.axelsw.it

+------------------------------------------------------------------------------------------------+

Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected]

This e-mail and any attachments is confidential and may contain privileged information
intended for the addressee(s) only. Dissemination, copying, printing or use by anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.  			
							
+------------------------------------------------------------------------------------------------+
#4 lore raw
In reply to Gilles Chanteperdrix

Hi,

is there a way instead to debug a xenomai userspace application without than the other xenomai task in the application stops ?

Best Regards

Il 12/11/2012 22:39, Gilles Chanteperdrix ha scritto:

Quoted 22 lines · Roberto Bielli
Quoted 9 lines

Hi,

i have two different applications with xenomai task.
When i put a gdb breakpoint into a task in the first application, the xenomai tasks in the second applications stops.

Is it a correct behaviour ?

Quoted 7 lines

the system is:
- cpu = arm - freescale imx25
- kernel 2.6.31
- xenomai 2.5.6
- adeos-ipipe-2.6.31-arm-1.16-02.patch

Thanks for all

I think so. This is a feature, the timers stops, because otherwise, if you use timeouts, you get cascaded timeouts all over the place when one thread stops in the debugger.

Signature · 33 lines
+------------------------------------------------------------------------------------------------+
							
Roberto Bielli
Sviluppo Software					
Axel S.r.l.					
							
Via Del Cannino, 3 				
21020 Crosio Della Valle			
Varese - Italy					
							
Telefono: +39 0332 949600			
Fax:      +39 0332 969315			
							
E-mail:   [email protected]	
Web Site: www.axelsw.it

+------------------------------------------------------------------------------------------------+

Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected]

This e-mail and any attachments is confidential and may contain privileged information
intended for the addressee(s) only. Dissemination, copying, printing or use by anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.  			
							
+------------------------------------------------------------------------------------------------+
#5 lore raw
Quoted 4 lines · Roberto Bielli

Hi,

is there a way instead to debug a xenomai userspace application without than the other xenomai task in the application stops ?

The other xenomai task should not stop when you debug an application, they only stop when the debugged application is stopped.

Signature · 1 line
                                                                Gilles.
#6 lore raw

Hi Gilles,

excuse me for my english but the exact question is this:

i have two applications with xenomai tasks.

I want to debug the first application with gdb but i don't want to debug the second. I want that the second goes normally.

Tha actual behaviour is that if i put a breakpoint in a xenomai task in the first application also the tasks in the second applications stops.

You answer me that it's the correct behavior because it's a feature.

So i ask you if there is a way to allow to debug the first application without the second stops.

Best regards.

Il 13/11/2012 11:45, Gilles Chanteperdrix ha scritto:

Quoted 11 lines · Roberto Bielli
Quoted 5 lines

Hi,

is there a way instead to debug a xenomai userspace application without than the other xenomai task in the application stops ?

The other xenomai task should not stop when you debug an application, they only stop when the debugged application is stopped.

Signature · 33 lines
+------------------------------------------------------------------------------------------------+
							
Roberto Bielli
Sviluppo Software					
Axel S.r.l.					
							
Via Del Cannino, 3 				
21020 Crosio Della Valle			
Varese - Italy					
							
Telefono: +39 0332 949600			
Fax:      +39 0332 969315			
							
E-mail:   [email protected]	
Web Site: www.axelsw.it

+------------------------------------------------------------------------------------------------+

Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: [email protected]

This e-mail and any attachments is confidential and may contain privileged information
intended for the addressee(s) only. Dissemination, copying, printing or use by anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.  			
							
+------------------------------------------------------------------------------------------------+
#7 lore raw
Quoted 4 lines · Roberto Bielli

Hi Gilles,

excuse me for my english but the exact question is this:

Quoted 8 lines

i have two applications with xenomai tasks.

I want to debug the first application with gdb but i don't want to debug the second.
I want that the second goes normally.

Tha actual behaviour is that if i put a breakpoint in a xenomai task in the first application also the tasks in the second applications stops.

If that happens then this is a bug. The second application should only stop when you hit the breakpoint or otherwise stop the first application in the debugger, not when you PUT the breakpoint.

Quoted 5 lines

You answer me that it's the correct behavior because it's a feature.

So i ask you if there is a way to allow to debug the first application without the second stops.

No.

Signature · 1 line
                                                                Gilles.