This page was produced by an automated import process, and may have formatting errors; feel free to fix.
Several files control GDB’s configuration for native support:
Specifies Makefile fragments needed by a native configuration on machine xyz. In particular, this lists the required native-dependent object files, by defining ‘NATDEPFILES=…’. Also specifies the header file which describes native support on xyz, by defining ‘NAT_FILE= nm-''xyz''.h’. You can also define ‘NAT_CFLAGS’, ‘NAT_ADD_FILES’, ‘NAT_CLIBS’, ‘NAT_CDEPS’, ‘NAT_GENERATED_FILES’, etc.; see Makefile.in.
Maintainer’s note: The .mh suffix is because this file originally contained Makefile fragments for hosting GDB on machine xyz. While the file is no longer used for this purpose, the .mh suffix remains. Perhaps someone will eventually rename these fragments so that they have a .mn suffix.
(nm.h is a link to this file, created by configure). Contains C macro definitions describing the native system environment, such as child process control and core file support.
Contains any miscellaneous C code required for this native support of this machine. On some machines it doesn’t exist at all.
There are some “generic” versions of routines that can be used by various systems. These can be customized in various ways by macros defined in your nm-''xyz''.h file. If these routines work for the xyz host, you can just include the generic file’s name (with ‘.o’, not ‘.c’) in NATDEPFILES.
Otherwise, if your machine needs custom support routines, you will need to write routines that perform the same functions as the generic file. Put them into ''xyz''-nat.c, and put ''xyz''-nat.o into NATDEPFILES.
This contains the target_ops vector that supports Unix child processes on systems which use ptrace and wait to control the child.
This contains the target_ops vector that supports Unix child processes on systems which use /proc to control the child.
This does the low-level grunge that uses Unix system calls to do a “fork and exec” to start up a child process.
This is the low level interface to inferior processes for systems using the Unix ptrace call in a vanilla way.