From: Andrew Cagney <cagney@gnu.org>
To: Jim Blandy <jimb@redhat.com>
Cc: Roland McGrath <roland@redhat.com>,
Randolph Chung <randolph@tausq.org>,
gdb@sources.redhat.com
Subject: Re: add-symbol-file-from-memory patch breaks non-elf targets?
Date: Fri, 07 May 2004 20:38:00 -0000 [thread overview]
Message-ID: <409BE8E5.90007@gnu.org> (raw)
In-Reply-To: <vt27jw78gdz.fsf@zenia.home>
> Roland McGrath <roland@redhat.com> writes:
>
>>> It's unfortunate that this is done in a way that requires a tweak for every
>>> specific target. The functionality will work, and thus ought to be
>>> available, on any ELF target. The use of symbol_file_add_from_memory from
>>> other gdb code to support Linux's vDSO is already needed on more than one
>>> Linux target and it is not unlikely that other Linux targets will follow
>>> suit in the future. It is crufty and makes maintenance error prone if we
>>> have nothing better than copying and updating makefile boilerplate for
>>> every specific Linux/CPU target. For example, your patch covers only x86
>>> and powerpc, but already IA64 and x86-64 need this support (and AFAIK not
>>> yet powerpc).
>
>
> But "any ELF target" is not a well-defined thing in GDB. GDB just
> tries to cope with whatever it gets. GDB lets BFD keep track of what
> object file formats are appropriate for what targets.
>
> The reason I thought this approach would be appropriate is that it
> resembles the way we handle the different dynamic linker debugging
> protocols: each .mt file selects solib-mumble.o manually. As far as I
> know, this hasn't been much of a maintenance hassle.
No, that's also a bug. As part of multi-arch, GDB should be able to
include multiple shlib mechanisms.
Anyway, looks like I'm fixing this.
Andrew
next prev parent reply other threads:[~2004-05-07 20:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-21 7:09 Randolph Chung
2004-04-21 10:37 ` Roland McGrath
2004-04-21 16:06 ` Randolph Chung
2004-04-21 18:42 ` Roland McGrath
2004-04-22 1:09 ` Andrew Cagney
2004-04-22 7:33 ` Joel Brobecker
2004-04-22 13:30 ` Jim Blandy
2004-04-22 14:57 ` Andrew Cagney
2004-04-23 4:19 ` Jim Blandy
2004-04-23 4:35 ` Roland McGrath
2004-04-23 10:05 ` Jim Blandy
2004-05-07 20:38 ` Andrew Cagney [this message]
2004-04-23 22:15 ` Joel Brobecker
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=409BE8E5.90007@gnu.org \
--to=cagney@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=randolph@tausq.org \
--cc=roland@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