From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15661 invoked by alias); 10 Nov 2008 10:19:40 -0000 Received: (qmail 15569 invoked by uid 22791); 10 Nov 2008 10:19:39 -0000 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Nov 2008 10:19:05 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id BC186290039; Mon, 10 Nov 2008 11:19:02 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zfetAZthOgmO; Mon, 10 Nov 2008 11:18:59 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.0.139]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 0BF42290006 for ; Mon, 10 Nov 2008 11:18:59 +0100 (CET) Message-Id: From: Tristan Gingold To: gdb-patches@sourceware.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: [RFC] Darwin port (Part 0) Date: Mon, 10 Nov 2008 10:19:00 -0000 X-Mailer: Apple Mail (2.929.2) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00163.txt.bz2 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 * 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.