From: Pedro Alves <palves@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Pedro Alves <palves@redhat.com>,
Tristan Gingold <gingold@adacore.com>,
"gdb-patches@sourceware.org ml"
<gdb-patches@sourceware.org>
Subject: Re: RFA: Try to include libunwind-ia64.h in libunwind-frame.h
Date: Mon, 20 Feb 2012 22:30:00 -0000 [thread overview]
Message-ID: <4F42C295.6010905@redhat.com> (raw)
In-Reply-To: <20120220204351.GA15256@host2.jankratochvil.net>
On 02/20/2012 08:43 PM, Jan Kratochvil wrote:
> On Tue, 14 Feb 2012 15:52:33 +0100, Pedro Alves wrote:
>> I don't understand what are we discussing. The possibility is there, but it
>> needs work to get there. When the future comes, we'll have to adjust. Right
>> now, nobody but IA-64 cares. Making the limitation explicit by including
>> the ia64 header directly doesn't make the needed work more difficult one
>> single bit. On the contrary.
>
> I do not understand what is the goal here now.
Fix GDB's broken inclusion of "libunwind.h".
As I've explained before, including "libunwind.h" in GDB is _always_ wrong
for GDB. Including the libunwind-$arch.h file directly is the right
thing to do. That's what needs fixing. I haven't seen any counter
argument to that.
> Therefore either
>
> (a) Let's finish multi-arch support for libunwind.
I don't imagine how any multi-arch work we do to libunwind would make it
possible to include "libunwind.h". But if there's a clean way to make
that work, I'd like to know about it.
But in any case, this is much more than the real need we have now. And I
don't see why we can't fix the include problem, and do multi-arching as
follow up work as necessary.
>
> or
>
> (b) Let's make libunwind support ia64-exclusive.
It already is implicitly. No other arch uses it. If any other arch wants to
use the file, then you would have two archs in the same GDB build wanting to
use the code, so then it'd be _really_ obvious that including "libunwind.h"
doesn't work. How would an --enable-targets=all build work? I've added
comments to the files to make that explicitly clear. Why invent
more work?
(c) Fix the real problem with the code, which is that it includes
"libunwind.h", when that is the wrong thing to do for GDB.
> The state is in between I have no clue what is a valid patch anymore.
> I am for (b).
I don't see how different the result will be from today's state,
so I don't see the big benefit... That'd take us further from being
able to use the code on other archs, but if you want to do it, fine with
me.
Any other opinions before I (or anyone else) write a patch?
--
Pedro Alves
next prev parent reply other threads:[~2012-02-20 22:01 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 16:32 Tristan Gingold
2012-02-10 12:31 ` Jan Kratochvil
2012-02-10 13:15 ` Tristan Gingold
2012-02-10 13:21 ` Jan Kratochvil
2012-02-10 13:27 ` Joel Brobecker
2012-02-10 13:45 ` Tristan Gingold
2012-02-10 14:04 ` Tristan Gingold
2012-02-10 14:09 ` Jan Kratochvil
2012-02-10 14:14 ` Tristan Gingold
2012-02-10 18:27 ` Jan Kratochvil
2012-02-10 18:34 ` Pedro Alves
2012-02-10 18:44 ` Jan Kratochvil
2012-02-10 18:59 ` Pedro Alves
2012-02-10 19:38 ` Jan Kratochvil
2012-02-11 14:10 ` Jan Kratochvil
2012-02-13 8:41 ` Tristan Gingold
2012-02-13 18:58 ` Pedro Alves
2012-02-13 19:03 ` Jan Kratochvil
2012-02-13 19:20 ` Pedro Alves
2012-02-13 19:27 ` Jan Kratochvil
2012-02-13 20:05 ` Pedro Alves
2012-02-14 7:28 ` Jan Kratochvil
2012-02-14 12:14 ` Pedro Alves
2012-02-14 14:36 ` Jan Kratochvil
2012-02-14 14:53 ` Pedro Alves
2012-02-20 20:54 ` Jan Kratochvil
2012-02-20 22:30 ` Pedro Alves [this message]
2012-02-20 22:37 ` Joel Brobecker
2012-02-20 22:39 ` Joel Brobecker
2012-02-20 22:57 ` Pedro Alves
2012-02-20 23:20 ` Joel Brobecker
2012-02-21 6:48 ` Jan Kratochvil
2012-02-21 13:36 ` Pedro Alves
2012-02-21 19:10 ` Tom Tromey
2012-02-22 7:56 ` Tristan Gingold
2012-02-22 14:52 ` Jan Kratochvil
2012-02-21 20:18 ` Jan Kratochvil
2012-02-21 20:43 ` Pedro Alves
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=4F42C295.6010905@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=gingold@adacore.com \
--cc=jan.kratochvil@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