public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Andrew Burgess <aburgess@redhat.com>
Cc: gdb-patches@sourceware.org, Vasili Burdo <vasili.burdo@gmail.com>,
	Simon Marchi <simon.marchi@efficios.com>
Subject: Re: [PATCH v4] gdb/tui/disassembly view: make symbol name appear on a line of its own
Date: Fri, 28 Jan 2022 20:20:32 -0500	[thread overview]
Message-ID: <b6809697-2ff5-b537-aca7-caa605250bb0@polymtl.ca> (raw)
In-Reply-To: <20220128224140.GF425591@redhat.com>

> This default `false` concerned my initially.  The only times we call
> tui_disassemble is either because we want to redraw the screen
> contents, or we want to know what _would_ be drawn to the screen
> if/when we do the redraw.
> 
> Only, now, we draw the screen differently for these two cases, so, my
> thinking goes, surely there's going to be some edge case where we ask,
> what address would be on the screen if .... and we'll get the wrong
> answer back.
> 
> I played with this for a while, but couldn't get anything obvious to
> break - I suspect that if there are bugs, they are going to be super
> subtle, which addresses appear on the screen doesn't change much,
> usually just one instruction different I think, so maybe it doesn't
> matter.
> 
> And given I couldn't spot anything, maybe I'm over thinking this, and
> there is no problem...
> 
> I guess my question is, did you already consider this already?  Is
> there a reason why having two strategies is known to be OK?

No, I haven't considered this, it is a good question.  I really don't
know the TUI code well (if at all), so my thinking was that if the TUI
experts say it's ok, it's because it's ok :).  But indeed, it would be
good to understand exactly what happens here.

I'll git a little bit.  Vasili, if you happen to know why we have these
two behaviors (for_ui and !for_ui), feel free to answer.

Simon

  reply	other threads:[~2022-01-29  1:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 19:28 Simon Marchi
2022-01-24 19:39 ` Vasili Burdo
2022-01-24 19:40   ` Simon Marchi
2022-01-28 22:41 ` Andrew Burgess
2022-01-29  1:20   ` Simon Marchi [this message]
2022-01-29  8:04     ` Vasili Burdo
2022-01-30  2:17     ` Simon Marchi
2022-02-02 13:40       ` Andrew Burgess
2022-02-02 14:33         ` Simon Marchi

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=b6809697-2ff5-b537-aca7-caa605250bb0@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.com \
    --cc=vasili.burdo@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).