From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72013 invoked by alias); 2 Nov 2019 14:05:52 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 72003 invoked by uid 89); 2 Nov 2019 14:05:52 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=react X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 02 Nov 2019 14:05:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572703549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mH+yYZ0SbtBG2d8h9nle8KHWFbYSysrkUTovt8MPjUA=; b=F5erDb0zXVRFxK2b6SfvMihAuMtK/ek7rA1ERbsyK2kXtSANSPf5oAztHMirSNfNRbOBa5 P5zidsccEAbpbBzR0wxPwQUawZWDZza/yhkYbXaBoVhtccKWRZ4X8pvFdwENH3u2/Gz/2N pA5k06uvzg7Efba/writse7JpqVJqsk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-208-2OEORnYAOKiAAgJSAdrXsA-1; Sat, 02 Nov 2019 10:05:46 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3A17B800C77; Sat, 2 Nov 2019 14:05:45 +0000 (UTC) Received: from redhat.com (ovpn-116-53.phx2.redhat.com [10.3.116.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0A4325D9CD; Sat, 2 Nov 2019 14:05:44 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtp (Exim 4.92) (envelope-from ) id 1iQu2B-0001Iv-7J; Sat, 02 Nov 2019 10:05:43 -0400 From: fche@redhat.com (Frank Ch. Eigler) To: Aaron Merey Cc: Tom Tromey , Christian Biesinger via gdb-patches , Christian Biesinger Subject: Re: [RFC PATCH] Support debuginfo and source file fetching via debuginfo server References: <20190820202809.25367-1-amerey@redhat.com> <87pnj6dl3k.fsf@tromey.com> <87sgn71ji6.fsf@tromey.com> Date: Sat, 02 Nov 2019 14:05:00 -0000 In-Reply-To: (Aaron Merey's message of "Fri, 1 Nov 2019 17:03:26 -0400") Message-ID: <87lfsye5l5.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-11/txt/msg00049.txt.bz2 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