public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Aaron Merey via Gdb-patches <gdb-patches@sourceware.org>
Cc: Tom Tromey <tom@tromey.com>,  Aaron Merey <amerey@redhat.com>
Subject: Re: [PATCH] gdb/debuginfod: Prevent prompt for continue during downloading.
Date: Tue, 31 Jan 2023 07:22:48 -0700	[thread overview]
Message-ID: <87edran5qf.fsf@tromey.com> (raw)
In-Reply-To: <CAJDtP-SPYVTk6hb8DkhhtRrUtCqCDU-dz9z2C7Svi8Dr25n=5Q@mail.gmail.com> (Aaron Merey via Gdb-patches's message of "Mon, 30 Jan 2023 21:09:57 -0500")

>>>>> "Aaron" == Aaron Merey via Gdb-patches <gdb-patches@sourceware.org> writes:

Aaron> I was able to get a prompt to show up with the command

Aaron>   gdb  -ex 'set height 25' -ex 'start' qemu-kvm

Yeah, but my question is why.  Like, I suppose I would expect that
somewhere in the stack between the debuginfod code and the main loop is
some bit of infrun that suppresses pagination.  But why isn't there, and
should there be?

It's fine if the answer is no, it just surprises me a bit that this is
happening.  After all the other symbol readers print things to stdout,
so presumably this could affect those as well.

Aaron> Setting pagination_enabled to false does stop the prompt in this case,
Aaron> however during testing of the on-demand downloading feature that I'm
Aaron> working on [1] I saw cases where this still didn't prevent the prompt.

If clearing pagination_enabled results in paging, then that sounds like
a serious bug.  Looking at the code I don't see how it can happen.
Could you track it down?

thanks,
Tom

  reply	other threads:[~2023-01-31 14:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-28  4:06 Aaron Merey
2023-01-28 15:01 ` Tom Tromey
2023-01-31  2:09   ` Aaron Merey
2023-01-31 14:22     ` Tom Tromey [this message]
2023-01-31 20:41       ` Aaron Merey
2023-02-08 14:44         ` Tom Tromey
2023-02-11  2:02           ` Aaron Merey
2023-02-13 14:17             ` Tom Tromey
2023-02-13 20:23               ` 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=87edran5qf.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=amerey@redhat.com \
    --cc=gdb-patches@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).