When GDB is configured and compiled, various macros are defined or left undefined, to control compilation based on the attributes of the host system. 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:
NOTE: For now, both host and target conditionals are here. Eliminate target conditionals from this list as they are identified.
BLOCK_ADDRESS_FUNCTION_RELATIVE
GDBINIT_FILENAME
MEM_FNS_DECLARED
memcpy
and memset
. Define this
to avoid conflicts between the native include
files and the declarations in `defs.h'.
NO_SYS_FILE
<sys/file.h>
.
SIGWINCH_HANDLER
SIGWINCH
, you can define this to
be the name of a function to be called if SIGWINCH
is received.
SIGWINCH_HANDLER_BODY
SIGWINCH_HANDLER
.
ADDITIONAL_OPTIONS
ADDITIONAL_OPTION_CASES
ADDITIONAL_OPTION_HANDLER
ADDITIONAL_OPTION_HELP
AIX_BUGGY_PTRACE_CONTINUE
ALIGN_STACK_ON_STARTUP
tgetent
if the stack happens not to be longword-aligned when main
is
called. This is a rare situation, but is known to occur on several
different types of systems.
CFRONT_PRODUCER
DBX_PARM_SYMBOL_CLASS
DEFAULT_PROMPT
"(gdb) "
).
DEV_TTY
DO_REGISTERS_INFO
FILES_INFO_HOOK
FLOAT_INFO
FOPEN_RB
GCC2_COMPILED_FLAG_SYMBOL
GCC_COMPILED_FLAG_SYMBOL
GCC_MANGLE_BUG
GCC_PRODUCER
GPLUS_PRODUCER
HAVE_MMAP
mmap
for reading symbol
tables. For some machines this allows for sharing and quick updates.
HAVE_SIGSETMASK
sigsetmask()
.
Currently, this is only true of the RS/6000.
HAVE_TERMIO
HOST_BYTE_ORDER
BIG_ENDIAN
or LITTLE_ENDIAN
.
INT_MAX
INT_MIN
LONG_MAX
UINT_MAX
ULONG_MAX
ISATTY
KERNEL_DEBUGGING
KERNEL_U_ADDR
u
structure (the "user struct",
also known as the "u-page") in kernel virtual memory. GDB needs to know
this so that it can subtract this address from absolute addresses in
the upage, that are obtained via ptrace or from core files. On systems
that don't need this value, set it to zero.
KERNEL_U_ADDR_BSD
u
at runtime,
by using Berkeley-style nlist
on the kernel's image in the root
directory.
KERNEL_U_ADDR_HPUX
u
at runtime,
by using HP-style nlist
on the kernel's image in the root
directory.
LCC_PRODUCER
LONGEST
long long
or long
,
depending on CC_HAS_LONG_LONG
.
CC_HAS_LONG_LONG
PRINTF_HAS_LONG_LONG
LSEEK_NOT_LINEAR
L_LNNO32
L_SET
MAINTENANCE_CMDS
MALLOC_INCOMPATIBLE
malloc
differs from the
ANSI definition.
MMAP_BASE_ADDRESS
MMAP_INCREMENT
NEED_POSIX_SETPGID
setpgid
to determine
whether job control is available.
NORETURN
volatile
,
that can be used in both the declaration and definition of functions
to indicate that they never return. The default is already set
correctly if compiling with GCC.
This will almost never need to be defined.
ATTR_NORETURN
__attribute__ ((noreturn))
, that can be used in the declarations
of functions to indicate that they never return. The default is already
set correctly if compiling with GCC.
This will almost never need to be defined.
NOTICE_SIGNAL_HANDLING_CHANGE
NO_HIF_SUPPORT
NO_JOB_CONTROL
NO_MMALLOC
mmalloc
library for memory allocation for symbol
reading, unless this symbol is defined. Define it on systems
on which mmalloc
does not
work for some reason. One example is the DECstation, where its RPC
library can't cope with our redefinition of malloc
to call
mmalloc
. When defining NO_MMALLOC
, you will also have
to override the setting of MMALLOC_LIB
to empty, in the Makefile.
Therefore, this define is usually set on the command line by overriding
MMALLOC_DISABLE
in `config/*/*.mh', rather than by defining
it in `xm-*.h'.
NO_MMALLOC_CHECK
mmalloc
, but don't want the overhead
of checking the heap with mmcheck
.
NO_SIGINTERRUPT
NUMERIC_REG_NAMES
N_SETV
N_SET_MAGIC
ONE_PROCESS_WRITETEXT
O_BINARY
O_RDONLY
PCC_SOL_BROKEN
PC_LOAD_SEGMENT
PRINT_RANDOM_SIGNAL
PRINT_REGISTER_HOOK
PROCESS_LINENUMBER_HOOK
PROLOGUE_FIRSTLINE_OVERLAP
PUSH_ARGUMENTS
PYRAMID_CONTROL_FRAME_DEBUGGING
PYRAMID_CORE
PYRAMID_PTRACE
REGISTER_BYTES
REG_STACK_SEGMENT
REG_STRUCT_HAS_ADDR
R_FP
R_OK
SEEK_END
SEEK_SET
SEM
SHELL_COMMAND_CONCAT
SHELL_FILE
SHIFT_INST_REGS
SIGTRAP_STOP_AFTER_LOAD
STACK_ALIGN
STOP_SIGNAL
SUN4_COMPILER_FEATURE
SUN_FIXED_LBRAC_BUG
SVR4_SHARED_LIBS
SYMBOL_RELOADING_DEFAULT
TIOCGETC
TIOCGLTC
TIOCGPGRP
TIOCLGET
TIOCLSET
TIOCNOTTY
UPAGES
USE_O_NOCTTY
USG
WRS_ORIG
alloca
const
lint
volatile
__volatile__
or /**/
.
Platform-specific host conditionals.
ALTOS
ALTOS_AS
MOTOROLA
NBPG
BCS
DELTA88
DGUX
F_OK
Regex conditionals.
C_ALLOCA
NFAILURES
RE_NREGS
SIGN_EXTEND_CHAR
SWITCH_ENUM_BUG
SYNTAX_TABLE
Sword
sparc
test