From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sourceware.org
Subject: Re: MinGW build failure for GDB 8.2.90 with source-highlight
Date: Tue, 12 Mar 2019 13:43:00 -0000 [thread overview]
Message-ID: <a3e447eb6011ba2b45f91374132c60aa@polymtl.ca> (raw)
In-Reply-To: <3f85112b-0b3f-fb74-e61e-88e12164b740@redhat.com>
On 2019-03-12 06:52, Pedro Alves wrote:
>> Pedro, did you have a branch where you put all of gdb in the gdb
>> namespace? I only found this branch, but it's using the gnulib::
>> namespace, which is not the same.
>>
>> https://github.com/palves/gdb/commits/palves/cxx-gnulib-namespace
>>
>
> Right, not that one. That was the first attempt, and then I almost
> posted
> that one upstream at the time. I was about to press 'git send-email'
> but
> got cold feet, thinking there must be a better way. That's when
> I tried the "namespace gdb" approach instead. And that one is in
> the branch I pointed at in my previous message:
>
>> Prototyped here:
>> https://github.com/palves/gdb/commits/palves/cxx-gdb-namespace
>
> Note: cxx-gdb-namespace != cxx-gnulib-namespace
Ah oops, sorry about that, it was late!
>> I just started to try to do it to get a feel of what's needed. I
>> guess we need to put pretty much everything except includes (and maybe
>> some other rare exceptions) between namespace gdb { ... }? And of
>> course define GNULIB_NAMESPACE to gdb.
> Yes, that's the gist of it.
>
> I've actually been working on that since Friday. Spent a chunk of the
> weekend
> on it, and some time yesterday. Meant to reply back yesterday, but
> something
> got in the way.
>
> I have a script in the branch that does a good chunk of the work, but
> unfortunately,
> it still requires a lot of manual touching up. I thought the rebase
> would be
> trivial, but with all the new files and churn in the codebase since
> 2016, it
> still involved a lot of manual re-work.
I can imagine.
> I have it building on x86-64 now.
> I've forced pushed what I have now. The branch has >130 patches
> currently, most of
> the them are small per-file patches. I need to clean this up a bit,
> squash some
> of the fixes-on-fixes patches. I'm not exactly sure how to post this
> to the
> list...
I don't really see how this can be done incrementally, it would be
really complicated to add the namespace to just some files, I think. So
I don't see any other choice than one big patch. Plus maybe some others
for preparation cleanups. Ideally the big patch would be trivial and
not move too much things around.
> And also, of course this needs at least build-testing on a wider set
> of hosts/cross compilers. Maybe people could take a preliminary look
> at the
> branch, see if they agree with direction?
I diffed the files that I modified manually when just trying it out
yesterday with the same files in your branch, and there is no
significant difference. I think the direction you took is fine.
Simon
next prev parent reply other threads:[~2019-03-12 13:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-07 14:36 Eli Zaretskii
2019-03-07 16:59 ` Simon Marchi
2019-03-07 17:11 ` Pedro Alves
2019-03-07 18:09 ` Simon Marchi
2019-03-07 18:20 ` Pedro Alves
2019-03-07 18:24 ` Simon Marchi
2019-03-07 20:29 ` Eli Zaretskii
2019-03-07 20:13 ` Eli Zaretskii
2019-03-11 14:18 ` Eli Zaretskii
2019-03-12 2:31 ` Simon Marchi
2019-03-12 10:52 ` Pedro Alves
2019-03-12 13:43 ` Simon Marchi [this message]
2019-03-12 15:49 ` Eli Zaretskii
2019-03-12 16:29 ` Simon Marchi
2019-03-12 17:53 ` Eli Zaretskii
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=a3e447eb6011ba2b45f91374132c60aa@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.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