From: Tristan Gingold <gingold@adacore.com>
To: gdb-patches@sourceware.org
Subject: [RFA] Darwin/x86 port (v2 - part 0)
Date: Wed, 12 Nov 2008 10:14:00 -0000 [thread overview]
Message-ID: <3A152A70-4355-440D-839F-A4EAC36C530B@adacore.com> (raw)
Hi,
I think I made all the changes requested - and wasn't a large bit of
work (mainly because darwin and
macosx have the same number of letters :-)
Please, review again!
Tristan.
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.
* osabi.c (gdb_osabi_names): Add name for Darwin abi.
* i386-darwin-nat.c: New file.
* i386-darwin-tdep.c: New file.
* i386-darwin-tdep.h: New file.
* machoread.c: New file.
* darwin-nat-info.c: New file.
* darwin-nat.c: New file.
* darwin-nat.h: New file.
* darwin.defs: New file.
* config/i386/darwin.mh: New file.
diff -c -r1.101 configure.host
*** configure.host 19 Jan 2008 15:03:50 -0000 1.101
--- configure.host 12 Nov 2008 10:01:24 -0000
***************
*** 62,67 ****
--- 62,69 ----
case "${host}" in
+ *-*-darwin*) gdb_host=darwin ;;
+
alpha*-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
alpha*-*-linux*) gdb_host=alpha-linux ;;
alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.204
diff -c -r1.204 configure.tgt
*** configure.tgt 2 Oct 2008 15:48:06 -0000 1.204
--- configure.tgt 12 Nov 2008 10:01:24 -0000
***************
*** 145,150 ****
--- 145,155 ----
gdb_target_obs="hppa-tdep.o"
;;
+ i[34567]86-*-darwin*)
+ # Target: Darwin/i386
+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
+ i386-darwin-tdep.o"
+ ;;
i[34567]86-*-dicos*)
# Target: DICOS/i386
gdb_target_obs="i386-tdep.o i387-tdep.o \
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.241
diff -c -r1.241 defs.h
*** defs.h 5 Nov 2008 20:23:07 -0000 1.241
--- defs.h 12 Nov 2008 10:01:24 -0000
***************
*** 957,962 ****
--- 957,963 ----
GDB_OSABI_CYGWIN,
GDB_OSABI_AIX,
GDB_OSABI_DICOS,
+ GDB_OSABI_DARWIN,
GDB_OSABI_INVALID /* keep this last */
};
Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.43
diff -c -r1.43 osabi.c
*** osabi.c 1 May 2008 23:09:14 -0000 1.43
--- osabi.c 12 Nov 2008 10:01:25 -0000
***************
*** 73,78 ****
--- 73,79 ----
"Cygwin",
"AIX",
"DICOS",
+ "Darwin",
"<invalid>"
};
next reply other threads:[~2008-11-12 10:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 10:14 Tristan Gingold [this message]
2008-11-13 15:11 ` Tristan Gingold
2008-11-13 19:41 ` Mark Kettenis
2008-11-13 20:40 ` Tristan Gingold
2008-11-13 21:41 ` Stan Shebs
2008-11-14 16:28 ` Tristan Gingold
2008-11-14 16:41 ` Stan Shebs
2008-11-14 17:04 ` Eli Zaretskii
2008-11-14 17:44 ` Tristan Gingold
2008-11-14 17:40 ` Joel Brobecker
2008-11-14 17:47 ` Mark Kettenis
2008-11-14 15:51 ` Eli Zaretskii
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=3A152A70-4355-440D-839F-A4EAC36C530B@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