Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Dmitry Neverov via Gdb <gdb@sourceware.org>
Cc: Dmitry Neverov <dmitry.neverov@jetbrains.com>
Subject: Re: Debuginfod in an interactive gdb frontend
Date: Tue, 07 May 2024 12:48:21 -0600	[thread overview]
Message-ID: <87seyt8nm2.fsf@tromey.com> (raw)
In-Reply-To: <CAEY59_LNnDE9gZFkUgOMwZMpm-CGSkK0YOogtw+E4pCu+uHyQQ@mail.gmail.com> (Dmitry Neverov via Gdb's message of "Tue, 7 May 2024 10:57:59 +0200")

>>>>> "Dmitry" == Dmitry Neverov via Gdb <gdb@sourceware.org> writes:

Dmitry> Please suggest how to integrate with debuginfod in the interactive gdb frontend.
Dmitry> Since loading debug information can be slow, I'd like to ask the user
Dmitry> before loading, similar to what `set debuginfod enabled ask` does in
Dmitry> the terminal. The 'set debuginfod enabled ask' defaults to 'N' in the
Dmitry> non-interactive terminal. Is there any way to hook into this
Dmitry> interaction and make the answer depend on user choice in UI without
Dmitry> typing in the console?

Dmitry> Also since loading takes time, I'd like to show some progress in UI.
Dmitry> Is it possible to get notified when the debuginfo loading for a given
Dmitry> binary starts/finishes, and with which result?

Dmitry> I thought I could write a MissingDebugHandler in python and wrap
Dmitry> debuginfod with necessary progress, but it looks like debuginfod api
Dmitry> is not available in python.

gdb doesn't really have a way to forward these user questions over MI
(assuming that is what you are using).

Maybe one option would be for your front end to present the choice to
the user somehow and then use this to change the gdb setting.

For progress notification -- MI does have some notion of this.  I didn't
look but I assume the debuginfod support isn't using it.  This could be
changed.

Tom

      reply	other threads:[~2024-05-07 18:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07  8:57 Dmitry Neverov via Gdb
2024-05-07 18:48 ` Tom Tromey [this message]

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=87seyt8nm2.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=dmitry.neverov@jetbrains.com \
    --cc=gdb@sourceware.org \
    /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