This page was produced by an automated import process, and may have formatting errors; feel free to fix.
When GDB is configured and compiled, various macros are defined or left undefined, to control compilation based on the attributes of the host system. While formerly they could be set in host-specific header files, at present they can be changed only by setting CFLAGS when building, or by editing the source code.
These macros and their meanings (or if the meaning is not documented here, then one of the source files where they are used is indicated) are:
The default name of GDB’s initialization file (normally .gdbinit).
Define this if host files use \r\n rather than \n as a line terminator. This will cause source file listings to omit \r characters when printing and it will allow \r\n line endings of files which are “sourced” by gdb. It must be possible to open files in binary mode using O_BINARY or, for fopen, "rb".
The default value of the prompt string (normally "(gdb) ").
The name of the generic TTY device, defaults to "/dev/tty".
Substitute for isatty, if not available.
Define this if binary files are opened the same way as text files.
Define this if the host can handle printing of long long integers via the printf format conversion specifier ll. This is set by the configure script.
Define this if lseek (n) does not necessarily move to byte number n in the file. This is only used when reading source files. It is normally faster to define CRLF_SOURCE_FILES when possible.
Define this to help placate lint in some situations.
Define this to override the defaults of __volatile__ or /**/.