From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@efficios.com>
Cc: Tom Tromey <tom@tromey.com>,
gdb-patches@sourceware.org, Tom de Vries <tdevries@suse.de>
Subject: Re: [PATCH] Fix GDB build when using --disable-gdbmi
Date: Fri, 10 May 2019 19:11:00 -0000 [thread overview]
Message-ID: <871s169lbh.fsf@tromey.com> (raw)
In-Reply-To: <08bf3e6b-11c5-2a90-fb66-d1eced683116@efficios.com> (Simon Marchi's message of "Fri, 10 May 2019 14:57:36 -0400")
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
Simon> That would require the mi_ui_out object to be created with that flag. However,
Simon> this option can be toggled on after the mi_ui_out object has been created (through
Simon> the MI command -fix-multi-location-breakpoint-output).
Ah, I didn't realize that.
Simon> One way to make it work would be, when the -fix-multi-location-breakpoint-output
Simon> command is issued, we go through all existing ui_out objects and set that flag.
Simon> But I don't think there's an easy way of going through all existing ui_out objects.
Simon> If you have any ideas for a more elegant way to make it work, I would be up for it,
Simon> because it's true that sprinkling #ifdefs is not the best idea.
It's maybe strange that -fix-multi-location-breakpoint-output affects
all MI channels and not just the ones associated with the request. It
seems like if there are multiple MI channels, then this could confuse
some client. But then, making it per-channel would make it not work
nicely if a new MI-out is created for a specific command (which I guess
is done by mi_load_progress, not sure about things like interpreter-exec).
I guess maybe if there's going to be a global, it could just be stuck in
breakpoint.c and then flags used for the ui-out version check currently
done in mi_multi_location_breakpoint_output_fixed. I'm not really sure
this is any better -- globals are bad, but it does avoid the #if.
Tom
next prev parent reply other threads:[~2019-05-10 19:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-10 18:35 Simon Marchi
2019-05-10 18:48 ` Tom Tromey
2019-05-10 18:57 ` Simon Marchi
2019-05-10 19:11 ` Tom Tromey [this message]
2019-05-10 20:19 ` Simon Marchi
2019-05-10 21:16 ` Tom Tromey
2019-05-10 22:07 ` 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=871s169lbh.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
--cc=tdevries@suse.de \
/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