Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simark@simark.ca>
Cc: Aaron Merey <amerey@redhat.com>,
	 gdb-patches@sourceware.org,  Tom Tromey <tom@tromey.com>,
	 Christian Biesinger <cbiesinger@google.com>
Subject: Re: [PATCH v3] Add debuginfod support to GDB
Date: Thu, 20 Feb 2020 19:43:00 -0000	[thread overview]
Message-ID: <871rqphwo8.fsf@tromey.com> (raw)
In-Reply-To: <4d971725-4f83-a1d3-80a2-9e54a78c6e56@simark.ca> (Simon Marchi's	message of "Thu, 20 Feb 2020 13:50:10 -0500")

>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> On 2020-02-20 1:02 p.m., Simon Marchi wrote:
>> I think we still need something just after the debuginfod_find_debuginfo
>> and debuginfod_find_source calls to throw the "quit" exception, if the quit
>> flag is set at this point.  Without that, the debuginfod_source_query and
>> debuginfod_debuginfo_query will return a failure.  The calling code could
>> therefore conclude that debug info is not available (and cache that value
>> somehwere), for a file for which debug info is actually available.  When
>> the execution reaches the event loop and we process the quit flag, it
>> would be too late, the damage will have been done.

Simon> Following a discussion on IRC, I changed my mind, the simplest solution
Simon> for now would be: when the user cancels a download, GDB will continue
Simon> as if debug info was not available for that objfile.  However, I would suggest
Simon> printing a message saying that the download of debug info for XYZ was cancelled,
Simon> so the user is not surprised to not have its debug info.

Wouldn't this imply also clearing (or more precisely - not preserving)
the quit flag in the interrupt case?

It seems to me that as long as the interrupt is processed by the
library, then we wouldn't want to set the quit flag again.  Otherwise
that will look like a double interrupt.

Tom


  reply	other threads:[~2020-02-20 19:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 19:27 Aaron Merey
2020-02-07 20:54 ` Simon Marchi
2020-02-10 23:51   ` Aaron Merey
2020-02-20 17:59     ` Tom Tromey
2020-02-20 18:02     ` Simon Marchi
2020-02-20 18:50       ` Simon Marchi
2020-02-20 19:43         ` Tom Tromey [this message]
2020-02-20 19:55           ` Aaron Merey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rqphwo8.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=amerey@redhat.com \
    --cc=cbiesinger@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox