From: Jason R Thorpe <thorpej@wasabisystems.com>
To: Joel Brobecker <brobecker@gnat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: HPPA multiarching plan
Date: Mon, 25 Nov 2002 17:47:00 -0000 [thread overview]
Message-ID: <20021126014713.GC21494@yeah-baby.shagadelic.org> (raw)
In-Reply-To: <20021126012454.GI1259@gnat.com>
On Mon, Nov 25, 2002 at 05:24:54PM -0800, Joel Brobecker wrote:
> My many thanks to Daniel and Jason for their very prompt and helpful
> answers!
We're glad to help :-)
> One little thing that still bothers (because I don't know yet how to
> properly handle this) is: some of the gdbarch methods will be different
> depending whether it is a pa64 or a pa32... Having 2 osabis was
> convenient that way. I see we have NETBSD_AOUT and NETBSD_ELF, perhaps
> it would still make sense to define 2 new osabis vis:
> - _HPUX_ELF
> - _HPUX_SOM
Actually, yah, having an HPUX_ELF and and HPUX_SOM probably makes
sense, because e.g. shared library handling will be different. (i.e.
you would want different osabi_init routines for each format, each
of which possibly calling a common one to do some common HPUX setup.)
> Otherwise, what I could do is maintain a local variable in the
> gdbarch_init routine, and set it depending on the object format...
Well.. for things which are purely "pa32 vs pa64" and having nothing
to do with the osabi per se, then you can determine this from info
in the BFD structure.
For things which are osabi-specific, the osabi_init routine for
that osabi will fill in the bits of the gdbarch/gdbarch_tdep structures.
Take a look at e.g. alphanbsd-tdep.c:alphanbsd_init_abi() (the osabi
init routine for Alpha with GDB_OSABI_NETBSD_ELF) and
alphanbsd-tdep.c:_initialize_alphanbsd_tdep() (which registers that osabi
init routine).
BTW, one thing that you're going to run into while doing this is
that the shared library support in GDB isn't really multarch'd. That
will have to be addressed in order for you to build a GDB which supports
both hppa+SOM and hppa64+Elf64.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
next prev parent reply other threads:[~2002-11-26 1:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-25 16:48 Joel Brobecker
2002-11-25 16:58 ` Daniel Jacobowitz
2002-11-25 17:04 ` Jason R Thorpe
2002-11-25 17:24 ` Joel Brobecker
2002-11-25 17:47 ` Jason R Thorpe [this message]
2002-11-26 7:26 ` Andrew Cagney
2002-11-26 7:56 ` Jason R Thorpe
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=20021126014713.GC21494@yeah-baby.shagadelic.org \
--to=thorpej@wasabisystems.com \
--cc=brobecker@gnat.com \
--cc=gdb-patches@sources.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