Re: [RFC PATCH] Support debuginfo and source file fetching via debuginfo server

Frank Ch. Eigler
2019-11-02T14:05:52Z

amerey wrote:

> Ok makes sense. One approach would be for the debuginfod_find_*
> functions to temporarily install their own SIGINT handler that cancels
> any downloading. Though during this time ctrl+c won't have the same
> gdb-wide effect that it currently has. When this happens maybe we
> could print a message to indicate that the interrupt applied
> specifically to the downloading. How does this sound to you?

Actually we can probably do even better: trap the SIGINT ourselves in
libdebuginfod, but upon return to gdb with an -EINTR, the caller can
call set_quit_flag(). Then the rest of gdb can react the normal way.

- FChE