lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: lua_getlocal crashes after yield from a debug hook
From
: 云风 <cloudwu@
...
>
Date
: Sat, 14 Feb 2015 11:46:42 +0800
2015-02-13 20:44 GMT+08:00 Roberto Ierusalimschy
<
roberto@inf.puc-rio.br
>
:
> I try to fix it, but maybe there is a better solution :)
Maybe this one?
This would be better. :)
ps, Could you add the ability of yielding to the debug hook lua api in future ?
(for example, if a lua hook function returns true, we call lua_yield(L,0) in C hook )
It raise an error "attempt to yield across a C-call boundary", when calling coroutine.yield() in a lua hook function now.
This will be very useful to implement a debugger or a preemptive scheduler.
Follow-Ups
:
Re: lua_getlocal crashes after yield from a debug hook
,
Roberto Ierusalimschy
References
:
lua_getlocal crashes after yield from a debug hook
,
云风
Re: lua_getlocal crashes after yield from a debug hook
,
云风
Re: lua_getlocal crashes after yield from a debug hook
,
Roberto Ierusalimschy
Prev by Date:
Re: lua_getlocal crashes after yield from a debug hook
Next by Date:
Hook for JIT compilation
Previous by thread:
Re: lua_getlocal crashes after yield from a debug hook
Next by thread:
Re: lua_getlocal crashes after yield from a debug hook
Index(es):
Date
Thread