tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lua kernel library?
On 17 June 2015 at 02:43, matthew green <mrg%eterna.com.au@localhost> wrote:
>
> what sort of support from ddb do you need? ddb supports run-time
> addition of commands, so i imagine that with the right glue you
> could easily add a lua ddb command with a module.
That's useful to know. Since I'm playing, I hacked ddb directly.
So far the only notable tweak I've made is to add a prompt parameter
to db_readline. Otherwise I found myself looking at:
db> lua
db>
and wondering if my code worked :-) However, before worrying about
that, my lua main-loop should be inverted (so it is closer to lua.c) -
my proof-of-concept followed what's found in the book.
"Going forward", the most interesting thing will likely be hacking
(bypassing) ddb so that events such as breakpoints and watchpoints are
directly pushed (injected) into a Lua instance. So far, the reverse,
pulling stuff like memory into Lua has proven relatively painless
(which reminds me, how do I silently detect that db_read_bytes
failed).
Oh, it might be nice if readline behaved more like readline :-) It
doesn't seem to under QEMU.
Andrew
Home |
Main Index |
Thread Index |
Old Index