This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Darwin/x86 port (v5 - part 0/4)


Hi,

most of the parts have been approved (but the i386-darwin-* files IIRC).
For completeness I submit the whole work.

Tristan.

gdb/
2008-11-19  Tristan Gingold  <gingold@adacore.com>

	* NEWS: Add entry for new native configuration: Darwin.
	* 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.
	* 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.

gdb/doc/
2008-11-19  Tristan Gingold  <gingold@adacore.com>

* gdb.texinfo (Darwin): Document Darwin specific features.

diff -c -r1.294 NEWS
*** gdb/NEWS	18 Nov 2008 20:41:42 -0000	1.294
--- gdb/NEWS	19 Nov 2008 13:59:06 -0000
***************
*** 172,177 ****
--- 172,181 ----
    These allow macros to be defined, undefined, and listed
    interactively.

+ * New native configurations
+
+ x86/x86_64 Darwin		i[34567]86-*-darwin*
+
  * New targets

  x86 DICOS			i[34567]86-*-dicos*
diff -c -r1.101 configure.host
*** gdb/configure.host	19 Jan 2008 15:03:50 -0000	1.101
--- gdb/configure.host	19 Nov 2008 13:59:06 -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)
diff -c -r1.205 configure.tgt
*** gdb/configure.tgt	14 Nov 2008 22:06:41 -0000	1.205
--- gdb/configure.tgt	19 Nov 2008 13:59:06 -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 \
diff -c -r1.241 defs.h
*** gdb/defs.h	5 Nov 2008 20:23:07 -0000	1.241
--- gdb/defs.h	19 Nov 2008 13:59:06 -0000
***************
*** 957,962 ****
--- 957,963 ----
    GDB_OSABI_CYGWIN,
    GDB_OSABI_AIX,
    GDB_OSABI_DICOS,
+   GDB_OSABI_DARWIN,

    GDB_OSABI_INVALID		/* keep this last */
  };
diff -c -r1.43 osabi.c
*** gdb/osabi.c	1 May 2008 23:09:14 -0000	1.43
--- gdb/osabi.c	19 Nov 2008 13:59:07 -0000
***************
*** 73,78 ****
--- 73,79 ----
    "Cygwin",
    "AIX",
    "DICOS",
+   "Darwin",

    "<invalid>"
  };
diff -c -r1.535 gdb.texinfo
*** gdb/doc/gdb.texinfo	18 Nov 2008 21:31:27 -0000	1.535
--- gdb/doc/gdb.texinfo	19 Nov 2008 13:59:12 -0000
***************
*** 14675,14680 ****
--- 14675,14681 ----
  * Cygwin Native::		Features specific to the Cygwin port
  * Hurd Native::                 Features specific to @sc{gnu} Hurd
  * Neutrino::                    Features specific to QNX Neutrino
+ * Darwin::			Features specific to Darwin
  @end menu

  @node HP-UX
***************
*** 15456,15461 ****
--- 15457,15503 ----
  Show the current state of QNX Neutrino messages.
  @end table

+ @node Darwin
+ @subsection Darwin
+ @cindex Darwin
+
+ @value{GDBN} provides the following commands specific to the Darwin target:
+
+ @table @code
+ @item set debug darwin @var{num}
+ @kindex set debug darwin
+ When set to a non zero value, enables debugging messages specific to
+ the Darwin support. Higher values produce more verbose output.
+
+ @item show debug darwin
+ @kindex show debug darwin
+ Show the current state of Darwin messages.
+
+ @item set debug mach-o @var{num}
+ @kindex set debug mach-o
+ When set to a non zero value, enables debugging messages while gdb is
+ reading Darwin object files. (@dfn{Mach-O} is the file format used on
+ Darwin for object and executable files.) Higher values produce more
+ verbose output. This is a command to diagnose problems internal to
+ @value{GDBN} and should not be needed in normal usage.
+
+ @item show debug mach-o
+ @kindex show debug mach-o
+ Show the current state of Mach-O file messages.
+
+ @item set mach-exceptions on
+ @itemx set mach-exceptions off
+ @kindex set mach-exceptions
+ On Darwin, faults are first reported as a Mach exception and are then
+ mapped to a Posix signal. Use this command to turn on trapping of
+ Mach exceptions in the inferior. This might be seldom useful to
+ better understand the cause of a fault. The default is off.
+
+ @item show mach-exceptions
+ @kindex show mach-exceptions
+ Show the current state of exceptions trapping.
+ @end table
+


  @node Embedded OS
  @section Embedded Operating Systems


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]