All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] gdb / threads on beaglebone black
@ 2014-05-26  1:49 Drew
  2014-05-26  7:09 ` Philippe Gerum
  0 siblings, 1 reply; 18+ messages in thread
From: Drew @ 2014-05-26  1:49 UTC (permalink / raw)
  To: xenomai

I'm seeing unexpected behavior running under gdb on a beaglebone black
using a machinekit debian SD image:

http://www.machinekit.net/deb/rootfs/wheezy/debian-7.4-machinekit-armhf-2014-05-09-4gb.img.xz

I'm curious if the behavior repeats on other platforms, and what I might be
doing wrong. My understanding is that xenomai should work OK under GDB as
long as you don't mind the mode switching.

The code is at

http://pastebin.com/MUgLAbGX

It is a modified version of
xenomai-2.6/examples/native/trivial-periodic.c

I build and run in gdb:

cd xenomai-2.6/examples/native
export MY_CFLAGS="-g"
make trivial-periodic
gdb ./trivial-periodic
run

At this point, I get two "New Thread" messages, two "Thread Exited"
messages, a 3 second pause, then "hello world" and nothing else.

Outside of gdb, the program works as expected.

I'm confused why the threads have exited before I have even called
rt_task_start on either of them. This has been reproduced by another
machinekit user; he suggested I try the Xenomai list.

Thanks in advance

Drew

PS I posted this to the list on May 22, but I hadn't joined the list at the
time. I don't see it in the archives so I'm re-posting. Hope it isn't a
duplicate.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-05-28 22:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26  1:49 [Xenomai] gdb / threads on beaglebone black Drew
2014-05-26  7:09 ` Philippe Gerum
     [not found]   ` <CAO0fa7YQ0TxiAhbmFmt+41o+rugoLXKjXxtHygpthNOiu8gd9w@mail.gmail.com>
2014-05-26 13:23     ` Philippe Gerum
2014-05-27 12:05       ` Drew
2014-05-27 22:21         ` Drew
2014-05-28 14:08           ` Drew
2014-05-28 14:24             ` Philippe Gerum
2014-05-28 14:45               ` Michael Haberler
2014-05-28 17:54                 ` Gilles Chanteperdrix
2014-05-28 19:19                   ` Drew
2014-05-28 19:28                     ` Philippe Gerum
2014-05-28 20:06                     ` Gilles Chanteperdrix
2014-05-28 20:24                     ` Gilles Chanteperdrix
2014-05-28 20:31                   ` Michael Haberler
2014-05-28 20:36                     ` Philippe Gerum
2014-05-28 21:01                       ` Drew
2014-05-28 21:08                         ` Gilles Chanteperdrix
2014-05-28 22:27                           ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.