From: Hannes Domani <ssbssa@yahoo.de>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Simon Marchi <simon.marchi@polymtl.ca>,
Tom Tromey <tom@tromey.com>
Subject: Re: [PATCH 2/4] Return true in TuiWindow.is_valid only if TUI is enabled
Date: Sun, 24 Jan 2021 12:33:09 +0000 (UTC) [thread overview]
Message-ID: <1037951634.883244.1611491589308@mail.yahoo.com> (raw)
In-Reply-To: <20210123175551.GD265215@embecosm.com>
Am Samstag, 23. Januar 2021, 18:55:56 MEZ hat Andrew Burgess <andrew.burgess@embecosm.com> Folgendes geschrieben:
> * Andrew Burgess <andrew.burgess@embecosm.com> [2021-01-23 17:54:42 +0000]:
>
> > * Hannes Domani <ssbssa@yahoo.de> [2021-01-17 13:19:41 +0000]:
> >
> > > Am Sonntag, 17. Januar 2021, 12:31:05 MEZ hat Andrew Burgess <andrew.burgess@embecosm.com> Folgendes geschrieben:
> > >
> > > > After further though I think there's an even better solution for this
> > > > issue. See the patch below.
> > >
> > > This version crashes for me when I disable and then re-enable TUI, because
> > > tui_windows and tui_win_list are empty, not filled again in tui_enable, and the
> > > tui_update_gdb_sizes call at the end of tui_enable dereferences TUI_CMD_WIN.
> > >
> > > Also, and I think your previous patch behaves the same, but I can no longer use
> > > the TuiWindows variables width/height/title inside my Window.close function,
> > > because at this point tui_active==false, so the assertion inside is_valid
> > > fails.
> > > This can be worked around by saving the values in some Window class members,
> > > but it is more inconvenient.
> >
> > Hannes,
> >
> > Would you be able to give the version below a try please and let me
> > know if you are still seeing any problems.
> >
> > This is much more like the first patch I posted.
> >
> > I honestly think the second approach is better, but it throws up so
> > many other issues that would need to be resolved around the whole
> > disable/enable transition, that I think going with the first approach
> > is just going to be simpler.
> >
> > Anyway, I think this covers all the situations you've described so
> > far, but let me know if you still see any issues.
> >
> > Thanks,
> > Andrew
>
> Might help if I included the patch :)
Yes, with this I have seen no problems so far.
Hannes
next prev parent reply other threads:[~2021-01-24 12:33 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20201229170227.821-1-ssbssa.ref@yahoo.de>
2020-12-29 17:02 ` [PATCH 1/4] Fix wrong method name Hannes Domani
2020-12-29 17:02 ` [PATCH 2/4] Return true in TuiWindow.is_valid only if TUI is enabled Hannes Domani
2020-12-31 4:24 ` Simon Marchi
2021-01-15 16:48 ` Andrew Burgess
2021-01-15 17:22 ` Hannes Domani
2021-01-17 11:31 ` Andrew Burgess
2021-01-17 13:19 ` Hannes Domani
2021-01-18 10:30 ` Andrew Burgess
2021-01-18 11:29 ` Hannes Domani
2021-01-23 17:54 ` Andrew Burgess
2021-01-23 17:55 ` Andrew Burgess
2021-01-24 12:33 ` Hannes Domani [this message]
2021-02-06 19:38 ` Tom Tromey
2021-02-08 11:58 ` Andrew Burgess
2021-02-08 19:19 ` Tom Tromey
2021-01-18 17:19 ` Eli Zaretskii
2020-12-29 17:02 ` [PATCH 3/4] Add optional styled argument to gdb.execute Hannes Domani
2020-12-29 17:19 ` Eli Zaretskii
2020-12-31 4:28 ` Simon Marchi
2020-12-29 17:02 ` [PATCH 4/4] Fix raw-frame-arguments in combination with frame-filters Hannes Domani
2020-12-31 4:53 ` Simon Marchi
2020-12-31 14:01 ` Hannes Domani
2021-01-31 7:13 ` Joel Brobecker
2020-12-29 17:18 ` [PATCH 1/4] Fix wrong method name Eli Zaretskii
2020-12-29 17:39 ` Hannes Domani
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=1037951634.883244.1611491589308@mail.yahoo.com \
--to=ssbssa@yahoo.de \
--cc=andrew.burgess@embecosm.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).