From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: andreast-list@fgznet.ch
Cc: gdb@sourceware.org
Subject: Re: powerpc port question
Date: Wed, 09 Sep 2009 18:50:00 -0000 [thread overview]
Message-ID: <200909091849.n89Inmkr014770@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <4AA7F35A.8080705@fgznet.ch> (message from Andreas Tobler on Wed, 09 Sep 2009 20:26:34 +0200)
> Date: Wed, 09 Sep 2009 20:26:34 +0200
> From: Andreas Tobler <andreast-list@fgznet.ch>
>
> My attempt bases on gdb-6.6 source, GPL-2 based. The structure of the
> source is more or less equal as the NetBSD port for powerpc.
In general you want to look at the OpenBSD support instead of NetBSD. It's in a much better shape ;).
> I digged through the source and I do not get the point.
>
> In my _initialize_ppcfbsd_tdep I call
>
> gdbarch_register_osabi(bfd_arch_powerpc, bfd_mach_ppc,
> GDB_OSABI_FREEBSD_ELF,
> ppcfbsd_init_abi);
You'll need to add something like:
gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_FREEBSD_ELF,
ppcfbsd_init_abi);
gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_FREEBSD_ELF,
ppcfbsd_init_abi);
(both lines seem to be necessary given the way BFD makes a distinction
between rs6000 and powerpc, but ELF doesn't).
next prev parent reply other threads:[~2009-09-09 18:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 18:26 Andreas Tobler
2009-09-09 18:50 ` Mark Kettenis [this message]
2009-09-09 19:14 ` Andreas Tobler
2009-09-09 19:30 ` Mark Kettenis
2009-09-09 19:55 ` Andreas Tobler
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=200909091849.n89Inmkr014770@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=andreast-list@fgznet.ch \
--cc=gdb@sourceware.org \
/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