On Tue, Jan 21, 2014 at 8:21 PM, Mark H Weaver wrote:
> Tom Tromey writes:
>
>>> "Ludovic" == Ludovic Courtès writes:
>>
>> Ludovic> I guess this is another limitation of Guile’s current signal
>> handling
>> Ludovic> strategy, and something we should fix.
>>
>> FWIW I think it would be suf
Tom Tromey writes:
>> "Ludovic" == Ludovic Courtès writes:
>
> Ludovic> I guess this is another limitation of Guile’s current signal handling
> Ludovic> strategy, and something we should fix.
>
> FWIW I think it would be sufficient for gdb if scm_system_async_mark, or
> something like it, co
Tom Tromey skribis:
>> "Ludovic" == Ludovic Courtès writes:
>
> Ludovic> I guess this is another limitation of Guile’s current signal handling
> Ludovic> strategy, and something we should fix.
>
> FWIW I think it would be sufficient for gdb if scm_system_async_mark, or
> something like it, c
> "Ludovic" == Ludovic Courtès writes:
Ludovic> I guess this is another limitation of Guile’s current signal handling
Ludovic> strategy, and something we should fix.
FWIW I think it would be sufficient for gdb if scm_system_async_mark, or
something like it, could be invoked from a signal han
> "Ludovic" == Ludovic Courtès writes:
Ludovic> I guess this is another limitation of Guile’s current signal handling
Ludovic> strategy, and something we should fix.
I think it seems reasonable for Guile itself, but yeah, it makes it
harder to integrate into gdb. I was pleasantly surprised
Tom Tromey skribis:
> Ludovic> Would it work, upon SIGINT, to do something like:
> Ludovic> (system-async-mark (lambda ()
> Ludovic>(throw 'system-error ... EINTR)))
> Ludovic> That would eventually raise an exception in Scheme code.
>
> According to the Guile docs one m
> "Ludovic" == Ludovic Courtès writes:
Ludovic> So do I get it right that it’s GDB that does signal(SIGINT, ...), and
Ludovic> its handler just calls PyOS_InterruptOccurred (or so) if Python code
Ludovic> happens to be running?
Yeah.
>> One approach for multiple extension languages might be
Tom Tromey skribis:
>> "Ludovic" == Ludovic Courtès writes:
>
> Ludovic> I’m not sure I understand the problem.
>
> Ludovic> What are extension languages typically expected to do when the ‘quit’
> Ludovic> flag is set?
>
> The basic idea is that if some extension code is running, then C-c ou
> "Ludovic" == Ludovic Courtès writes:
Ludovic> I’m not sure I understand the problem.
Ludovic> What are extension languages typically expected to do when the ‘quit’
Ludovic> flag is set?
The basic idea is that if some extension code is running, then C-c ought
to interrupt that code in the
[+ guile-user, in case they have any thoughts on Guile SIGINT handling]
On Mon, Dec 23, 2013 at 1:57 PM, Tom Tromey wrote:
>> "Doug" == Doug Evans writes:
>
> Doug> +void
> Doug> +clear_quit_flag (void)
> Doug> +{
> Doug> + int i;
> Doug> + const struct extension_language_defn *extlang;
>
10 matches
Mail list logo