From: Tristan Gingold <gingold@adacore.com>
To: gdb-patches@sourceware.org
Subject: [RFC] Darwin port (Part 0)
Date: Mon, 10 Nov 2008 10:19:00 -0000 [thread overview]
Message-ID: <B2D49E25-4529-4AA4-9903-7355F09103F1@adacore.com> (raw)
Hello,
here are a patch to add a new host/target: Darwin (or MacOS X).
Only a minimal set of features has been implemented: x86 and x86_64
only (not ppc),
no support for core files, no support for fat files, no support for
dynamic libraries,
no support for stabs (dwarf only).
The mach-o reader can handle dsym files and in object files dwarf -
but both need to be improved.
Even all these restrictions I think the port is in good shape enough
to be merged. I have made
the minimal changes to common files in order to ease the merge. Some
planned changes (particularly
in the mach-o reader) will require modification to some common files
and I'd prefer a first merge
before.
Two majors components (machoread.c and macosx-nat.c) have been
rewritten from scratch but other
files (mainly i386-macosx-*.?) comes from Apple own branch of gdb. As
the Apple branch have never
been formally submitted the copyright status is not clear: I don't
know if we can assume they have
been assigned to the FSF. We have tried to contact Apple - but
without success. I am ready to rewrite
them in case of issue.
Also, this is my first contribution to gdb. Comments will be very
useful to me but please don't be
too harsh :-)
Tristan.
gdb:/
2008-11-10 Tristan Gingold <gingold@adacore.com>
* configure.host: Add Darwin host.
* configure.tgt: Add Darwin target.
* defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN and
GDB_OSABI_DARWIN64.
* osabi.c (gdb_osabi_names): Add names for darwin abis.
* i386-macosx-nat.c: New file.
* i386-macosx-tdep.c: New file.
* i386-macosx-tdep.h: New file.
* machoread.c: New file.
* macosx-nat-info.c: New file.
* macosx-nat.c: New file.
* macosx-nat.h: New file.
* macosx.defs: New file.
* config/nm-macosx.h: New file.
* config/i386/macosx.mh: New file.
* config/i386/nm-i386-macosx.h: New file.
next reply other threads:[~2008-11-10 10:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 10:19 Tristan Gingold [this message]
2008-11-10 17:53 ` Stan Shebs
2008-11-10 18:12 ` Joel Brobecker
2008-11-10 18:50 ` Stan Shebs
2008-11-10 18:59 ` Joel Brobecker
2008-11-12 8:34 ` Tristan Gingold
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=B2D49E25-4529-4AA4-9903-7355F09103F1@adacore.com \
--to=gingold@adacore.com \
--cc=gdb-patches@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