[Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Jan Kiszka
I expressed my skepticism about this global timer freeze before :-, and now it hit me unpleasantly (Customer: Is it normal that Xenomai stops working after the gdb session? Jan [scratching head]: Hmm, no...). After more scratching I think I found the reason: The target decided to die after some

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Gilles Chanteperdrix
On Fri, May 9, 2008 at 11:29 AM, Jan Kiszka [EMAIL PROTECTED] wrote: + if (xnthread_test_info(thread, XNDEBUG)) + unlock_timers(); + Will this work if several threads are currently being debugged ? -- Gilles ___ Xenomai-core

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Jan Kiszka
Gilles Chanteperdrix wrote: On Fri, May 9, 2008 at 11:29 AM, Jan Kiszka [EMAIL PROTECTED] wrote: + if (xnthread_test_info(thread, XNDEBUG)) + unlock_timers(); + Will this work if several threads are currently being debugged ? Not better or worse than with the current

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Jan Kiszka
Jan Kiszka wrote: Gilles Chanteperdrix wrote: On Fri, May 9, 2008 at 11:29 AM, Jan Kiszka [EMAIL PROTECTED] wrote: + if (xnthread_test_info(thread, XNDEBUG)) + unlock_timers(); + Will this work if several threads are currently being debugged ? Not better or worse than

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Philippe Gerum
Jan Kiszka wrote: I expressed my skepticism about this global timer freeze before :-, and Just try debugging periodic code without it... We should have an opt-out mechanism to hide timers from the auto-freeze feature, that is the real issue yet to be fixed. now it hit me unpleasantly

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Philippe Gerum
Gilles Chanteperdrix wrote: On Fri, May 9, 2008 at 11:29 AM, Jan Kiszka [EMAIL PROTECTED] wrote: + if (xnthread_test_info(thread, XNDEBUG)) + unlock_timers(); + Will this work if several threads are currently being debugged ? Yes, because we freeze timers when a

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Philippe Gerum
Gilles Chanteperdrix wrote: On Fri, May 9, 2008 at 11:44 AM, Philippe Gerum [EMAIL PROTECTED] wrote: Jan Kiszka wrote: I expressed my skepticism about this global timer freeze before :-, and Just try debugging periodic code without it... We should have an opt-out mechanism to hide timers

Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits

2008-05-09 Thread Gilles Chanteperdrix
On Fri, May 9, 2008 at 12:06 PM, Philippe Gerum [EMAIL PROTECTED] wrote: Gilles Chanteperdrix wrote: On Fri, May 9, 2008 at 11:44 AM, Philippe Gerum [EMAIL PROTECTED] wrote: Jan Kiszka wrote: I expressed my skepticism about this global timer freeze before :-, and Just try debugging periodic