(sorry if it's a duplicate, I sent the previous one from an account outside the mailing list and I did not know whether it would go through)
Hi,
I need to debug an application that I've ported to Fiasco.OC and I was wondering what is the preferred way to do it. (The application works fine in Linux, but there must be something wrong with the libraries I ported). Jdb seems not very friendly if all you want to do is debugging an application.
My second question is about L4re. So far, all the applications running on my Fiasco.OC are console-based. However, I would like to run more complex apps that might require a graphical environment. I noticed that, with L4env, it was possible to have it. Is it possible to do it with L4re? Any plans to add it in the near future. I would use Genode, but I've been told at the Genode list that Fiasco.OC is not supported by Genode. Is there an alternative to Genode on L4re?
Thanks, Pablo
Hi,
On Sun Aug 29, 2010 at 23:26:00 -0700, Pablo Montesinos wrote:
I need to debug an application that I've ported to Fiasco.OC and I was wondering what is the preferred way to do it. (The application works fine in Linux, but there must be something wrong with the libraries I ported). Jdb seems not very friendly if all you want to do is debugging an application.
Indeed, a full-fledged local application debugger would be great to have. Jdbs main features are state inspection and event tracing. One way that definitely works is the classical printf-debugging. Also very helpful are trace entries you can write with fiasco_log_tbuf("text") and fiasco_log_tbuf_3val("text", 0, 1, 2) (#include <l4/sys/ktrace.h>). You can see those when going to the trace-buffer view in jdb using shift-T.
My second question is about L4re. So far, all the applications running on my Fiasco.OC are console-based. However, I would like to run more complex apps that might require a graphical environment. I noticed that, with L4env, it was possible to have it. Is it possible to do it with L4re? Any plans to add it in the near future. I would use Genode, but I've been told at the Genode list that Fiasco.OC is not supported by Genode. Is there an alternative to Genode on L4re?
Graphics support is there, i.e. there are framebuffer abstractions, windowing, input etc. You might want to look at the screenshot page to get an idea.
Adam
Adam,
Graphics support is there, i.e. there are framebuffer abstractions, windowing, input etc. You might want to look at the screenshot page to get an idea.
I saw the screenshot page before I emailed you. However, I thought it was outdated, and that they were part of L4env. Are the sources to supertux for fiasco available anywhere? What about the ned in interactive mode and the python shell example? Is the source available?
Thanks, Pablo
On Mon Aug 30, 2010 at 17:23:58 -0700, Pablo Montesinos wrote:
Graphics support is there, i.e. there are framebuffer abstractions, windowing, input etc. You might want to look at the screenshot page to get an idea.
I saw the screenshot page before I emailed you. However, I thought it was outdated, and that they were part of L4env. Are the sources to supertux for fiasco available anywhere? What about the ned in interactive mode and the python shell example? Is the source available?
ned needs to be compiled for interactive mode by changing the corresponding line in pkg/ned/server/src/Makefile to add readline support. python is also in the pkg dir. The actual graphics comes from the fbterminal, i.e. one needs to connect input/output of the interactive programs with the fbterminal. Supertux itself isn't in the repo, but all the adaption parts are in libsdl, which is there. Supertux itself is not modified at all. Starting a terminal with a program in it could go like this, extending conf/examples/x86-fb.cfg:
function start_with_terminal(e, res, p) local c = { fb = mag_caps.svc:create(L4.Proto.Goos, res), term = l:new_channel():svr(), }; l:start({ caps = c }, "rom/fbterminal"); e.log = c.term:m("ro"); l:start(e, p); end
start_with_terminal({}, "400x300", "rom/ned -i");
Adam
l4-hackers@os.inf.tu-dresden.de