From: "Frank Ch. Eigler" <fche@redhat.com>
To: Simon Marchi <simark@simark.ca>
Cc: Aaron Merey <amerey@redhat.com>, Tom Tromey <tom@tromey.com>,
Christian Biesinger via gdb-patches <gdb-patches@sourceware.org>,
Christian Biesinger <cbiesinger@google.com>
Subject: Re: [RFC PATCH] Support debuginfo and source file fetching via debuginfo server
Date: Tue, 05 Nov 2019 15:50:00 -0000 [thread overview]
Message-ID: <20191105155031.GA23660@redhat.com> (raw)
In-Reply-To: <e05b912e-5a5e-afb7-1182-016e03ef15d1@simark.ca>
Hi, Simon -
> [...]
> I think that providing a void pointer for context is pretty standard thing
> for C libraries that accept callbacks. I would use __thread and the promise
> to call the function back in the same thread to "retro-fit" some thread-safety
> in an existing API that doesn't provide a context pointer,
Remember that this is a batch file downloading tool. We expect it to
be interrupted if a user gets impatient, in which case such a signal
would affect all downloads. In the absence of a plausible user story
for the need for fine control over multiple different debuginfo
transfers in progress, I believe something simple is enough for now.
> Ok, well I think it would be a good reason to adopt an API of the
> style: [...] Again, this is easy to add in the beginning, but hard
> to retro-fit later on.
Retro-fitting it later on is not that bad, when/if actual use cases
appear. The default 'client context' can be the current global one.
A hypothetical future api can pass void* context parameters; we can
have two callback function types. It being simple now does not
preclude necessary complexity later. I appreciate the ideas, really,
but I am about as wary of overengineering as underengineering.
- FChE
next prev parent reply other threads:[~2019-11-05 15:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-20 20:28 Aaron Merey
2019-09-13 21:03 ` Tom Tromey
2019-09-22 3:53 ` Christian Biesinger via gdb-patches
2019-10-09 14:55 ` Tom Tromey
2019-10-28 20:34 ` Aaron Merey
2019-11-01 19:31 ` Tom Tromey
2019-11-01 21:03 ` Aaron Merey
2019-11-02 14:05 ` Frank Ch. Eigler
2019-11-04 15:03 ` Frank Ch. Eigler
2019-11-04 15:46 ` Simon Marchi
2019-11-04 16:26 ` Frank Ch. Eigler
2019-11-05 1:59 ` Aaron Merey
2019-11-05 5:27 ` Simon Marchi
2019-11-05 10:25 ` Frank Ch. Eigler
2019-11-05 15:19 ` Simon Marchi
2019-11-05 15:50 ` Frank Ch. Eigler [this message]
2019-11-05 5:35 ` Simon Marchi
2019-11-07 23:24 ` 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=20191105155031.GA23660@redhat.com \
--to=fche@redhat.com \
--cc=amerey@redhat.com \
--cc=cbiesinger@google.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
--cc=tom@tromey.com \
/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