From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5383406C.4070902@xenomai.org> Date: Mon, 26 May 2014 15:23:56 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <5382E8B1.8070402@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] gdb / threads on beaglebone black List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Drew Cc: "Xenomai@xenomai.org" On 05/26/2014 02:50 PM, Drew wrote: > > On Mon, May 26, 2014 at 3:09 AM, Philippe Gerum > wrote: > > > Any change with this? > > - pause(); > + for (;;) > + pause(); > > -- > Philippe. > > > I get the "thread exited" messages before the "hello, world" is > printed.. that's before the pause() call and even before the tasks have > been started.. Do not trust stdio printouts for debugging in a dual kernel system, they may be delayed in different ways, despite your termios are set to canonical mode. In addition, testing return codes of syscalls would be a good idea, e.g. rt_task_start(), assuming rt_task_create() did succeed since GDB told you about two new threads. PS: please keep the list posted. -- Philippe.