hide random home http://www.fmi.uni-passau.de/archive/doc/unix/gdbint/gdbint_16.html (Einblicke ins Internet, 10/1995)

GDB Internals - Host Conditionals

Go to the previous, next section.

Host Conditionals

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 are:

NOTE: For now, both host and target conditionals are here. Eliminate target conditionals from this list as they are identified.

ALIGN_SIZE
alloca.c
BLOCK_ADDRESS_FUNCTION_RELATIVE
dbxread.c
GDBINIT_FILENAME
main.c
KERNELDEBUG
tm-hppa.h
MEM_FNS_DECLARED
defs.h
NO_SYS_FILE
dbxread.c
PYRAMID_CONTROL_FRAME_DEBUGGING
pyr-xdep.c
SIGWINCH_HANDLER_BODY
utils.c
1
buildsym.c
1
dbxread.c
1
dbxread.c
1
buildsym.c
1
dwarfread.c
1
valops.c
1
valops.c
1
pyr-xdep.c
ADDITIONAL_OPTIONS
main.c
ADDITIONAL_OPTION_CASES
main.c
ADDITIONAL_OPTION_HANDLER
main.c
ADDITIONAL_OPTION_HELP
main.c
ADDR_BITS_REMOVE
defs.h
AIX_BUGGY_PTRACE_CONTINUE
infptrace.c
ALIGN_STACK_ON_STARTUP
main.c
ALTOS
altos-xdep.c
ALTOS_AS
xm-altos.h
ASCII_COFF
remote-adapt.c
BADMAG
coffread.c
BCS
tm-delta88.h
BEFORE_MAIN_LOOP_HOOK
main.c
BELIEVE_PCC_PROMOTION
coffread.c
BELIEVE_PCC_PROMOTION_TYPE
stabsread.c
BIG_ENDIAN
defs.h
BITS_BIG_ENDIAN
defs.h
BKPT_AT_MAIN
solib.c
BLOCK_ADDRESS_ABSOLUTE
dbxread.c
BPT_VECTOR
tm-68k.h
BREAKPOINT
tm-68k.h
BREAKPOINT_DEBUG
breakpoint.c
BROKEN_LARGE_ALLOCA
Avoid large alloca's. For example, on sun's, Large alloca's fail because the attempt to increase the stack limit in main() fails because shared libraries are allocated just below the initial stack limit. The SunOS kernel will not allow the stack to grow into the area occupied by the shared libraries.
BSTRING
regex.c
CALL_DUMMY
valops.c
CALL_DUMMY_LOCATION
inferior.h
CALL_DUMMY_STACK_ADJUST
valops.c
CANNOT_FETCH_REGISTER
hppabsd-xdep.c
CANNOT_STORE_REGISTER
findvar.c
CFRONT_PRODUCER
dwarfread.c
CHILD_PREPARE_TO_STORE
inftarg.c
CLEAR_DEFERRED_STORES
inflow.c
CLEAR_SOLIB
objfiles.c
COFF_ENCAPSULATE
hppabsd-tdep.c
COFF_FORMAT
symm-tdep.c
COFF_NO_LONG_FILE_NAMES
coffread.c
CORE_NEEDS_RELOCATION
stack.c
CPLUS_MARKER
cplus-dem.c
CREATE_INFERIOR_HOOK
infrun.c
C_ALLOCA
regex.c
C_GLBLREG
coffread.c
DAMON
xcoffexec.c
DBXREAD_ONLY
partial-stab.h
DBX_PARM_SYMBOL_CLASS
stabsread.c
DEBUG
remote-adapt.c
DEBUG_INFO
partial-stab.h
DEBUG_PTRACE
hppabsd-xdep.c
DECR_PC_AFTER_BREAK
breakpoint.c
DEFAULT_PROMPT
main.c
DELTA88
m88k-xdep.c
DEV_TTY
symmisc.c
DGUX
m88k-xdep.c
DISABLE_UNSETTABLE_BREAK
breakpoint.c
DONT_USE_REMOTE
remote.c
DO_DEFERRED_STORES
infrun.c
DO_REGISTERS_INFO
infcmd.c
END_OF_TEXT_DEFAULT
dbxread.c
EXTERN
buildsym.h
EXTRACT_RETURN_VALUE
tm-68k.h
EXTRACT_STRUCT_VALUE_ADDRESS
values.c
EXTRA_FRAME_INFO
frame.h
EXTRA_SYMTAB_INFO
symtab.h
FILES_INFO_HOOK
target.c
FIXME
coffread.c
FLOAT_INFO
infcmd.c
FOPEN_RB
defs.h
FP0_REGNUM
a68v-xdep.c
FPC_REGNUM
mach386-xdep.c
FP_REGNUM
parse.c
FRAMELESS_FUNCTION_INVOCATION
blockframe.c
FRAME_ARGS_ADDRESS_CORRECT
stack.c
FRAME_CHAIN_COMBINE
blockframe.c
FRAME_CHAIN_VALID
frame.h
FRAME_CHAIN_VALID_ALTERNATE
frame.h
FRAME_FIND_SAVED_REGS
stack.c
FRAME_GET_BASEREG_VALUE
frame.h
FRAME_NUM_ARGS
tm-68k.h
FRAME_SPECIFICATION_DYADIC
stack.c
FUNCTION_EPILOGUE_SIZE
coffread.c
F_OK
xm-ultra3.h
GCC2_COMPILED_FLAG_SYMBOL
dbxread.c
GCC_COMPILED_FLAG_SYMBOL
dbxread.c
GCC_MANGLE_BUG
symtab.c
GCC_PRODUCER
dwarfread.c
GET_SAVED_REGISTER
findvar.c
GPLUS_PRODUCER
dwarfread.c
GR64_REGNUM
remote-adapt.c
GR64_REGNUM
remote-mm.c
HANDLE_RBRAC
partial-stab.h
HAVE_68881
m68k-tdep.c
HAVE_MMAP
In some cases, use the system call mmap for reading symbol tables. For some machines this allows for sharing and quick updates.
HAVE_REGISTER_WINDOWS
findvar.c
HAVE_SIGSETMASK
main.c
HAVE_TERMIO
inflow.c
HEADER_SEEK_FD
arm-tdep.c
HOSTING_ONLY
xm-rtbsd.h
HOST_BYTE_ORDER
ieee-float.c
HPUX_ASM
xm-hp300hpux.h
HPUX_VERSION_5
hp300ux-xdep.c
HP_OS_BUG
infrun.c
I80960
remote-vx.c
IBM6000_HOST
breakpoint.c
IBM6000_TARGET
buildsym.c
IEEE_DEBUG
ieee-float.c
IEEE_FLOAT
valprint.c
IGNORE_SYMBOL
dbxread.c
INIT_EXTRA_FRAME_INFO
blockframe.c
INIT_EXTRA_SYMTAB_INFO
symfile.c
INIT_FRAME_PC
blockframe.c
INNER_THAN
valops.c
INT_MAX
defs.h
INT_MIN
defs.h
IN_GDB
i960-pinsn.c
IN_SIGTRAMP
infrun.c
IN_SOLIB_TRAMPOLINE
infrun.c
ISATTY
main.c
IS_TRAPPED_INTERNALVAR
values.c
KERNELDEBUG
dbxread.c
KERNEL_DEBUGGING
tm-ultra3.h
KERNEL_U_ADDR
Define this to the address of the 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
Define this to cause GDB to determine the address of u at runtime, by using Berkeley-style nlist on the kernel's image in the root directory.
KERNEL_U_ADDR_HPUX
Define this to cause GDB to determine the address of u at runtime, by using HP-style nlist on the kernel's image in the root directory.
LCC_PRODUCER
dwarfread.c
LITTLE_ENDIAN
defs.h
LOG_FILE
remote-adapt.c
LONGERNAMES
cplus-dem.c
LONGEST
defs.h
LONG_LONG
defs.h
LONG_MAX
defs.h
LSEEK_NOT_LINEAR
source.c
L_LNNO32
coffread.c
L_SET
This macro is used as the argument to lseek (or, most commonly, bfd_seek). FIXME, it should be replaced by SEEK_SET instead, which is the POSIX equivalent.
MACHKERNELDEBUG
hppabsd-tdep.c
MAIN
cplus-dem.c
MAINTENANCE
dwarfread.c
MAINTENANCE_CMDS
breakpoint.c
MAINTENANCE_CMDS
maint.c
MALLOC_INCOMPATIBLE
Define this if the system's prototype for malloc differs from the ANSI definition.
MIPSEL
mips-tdep.c
MMAP_BASE_ADDRESS
When using HAVE_MMAP, the first mapping should go at this address.
MMAP_INCREMENT
when using HAVE_MMAP, this is the increment between mappings.
MONO
ser-go32.c
MOTOROLA
xm-altos.h
NAMES_HAVE_UNDERSCORE
coffread.c
NBPG
altos-xdep.c
NEED_POSIX_SETPGID
infrun.c
NEED_TEXT_START_END
exec.c
NFAILURES
regex.c
NNPC_REGNUM
infrun.c
NORETURN
defs.h
NOTDEF
regex.c
NOTDEF
remote-adapt.c
NOTDEF
remote-mm.c
NOTICE_SIGNAL_HANDLING_CHANGE
infrun.c
NO_DEFINE_SYMBOL
xcoffread.c
NO_HIF_SUPPORT
remote-mm.c
NO_JOB_CONTROL
signals.h
NO_MALLOC_CHECK
utils.c
NO_MMALLOC
utils.c
NO_MMALLOC
objfiles.c
NO_MMALLOC
utils.c
NO_SIGINTERRUPT
remote-adapt.c
NO_SINGLE_STEP
infptrace.c
NO_TYPEDEFS
xcoffread.c
NO_TYPEDEFS
xcoffread.c
NPC_REGNUM
infcmd.c
NS32K_SVC_IMMED_OPERANDS
ns32k-opcode.h
NUMERIC_REG_NAMES
mips-tdep.c
N_SETV
dbxread.c
N_SET_MAGIC
hppabsd-tdep.c
NaN
tm-umax.h
ONE_PROCESS_WRITETEXT
breakpoint.c
O_BINARY
exec.c
O_RDONLY
xm-ultra3.h
PC
convx-opcode.h
PCC_SOL_BROKEN
dbxread.c
PC_IN_CALL_DUMMY
inferior.h
PC_LOAD_SEGMENT
stack.c
PC_REGNUM
parse.c
PRINT_RANDOM_SIGNAL
infcmd.c
PRINT_REGISTER_HOOK
infcmd.c
PRINT_TYPELESS_INTEGER
valprint.c
PROCESS_LINENUMBER_HOOK
buildsym.c
PROLOGUE_FIRSTLINE_OVERLAP
infrun.c
PSIGNAL_IN_SIGNAL_H
defs.h
PS_REGNUM
parse.c
PTRACE_ARG3_TYPE
inferior.h
PTRACE_FP_BUG
mach386-xdep.c
PT_ATTACH
hppabsd-xdep.c
PT_DETACH
hppabsd-xdep.c
PT_KILL
infptrace.c
PUSH_ARGUMENTS
valops.c
PYRAMID_CONTROL_FRAME_DEBUGGING
pyr-xdep.c
PYRAMID_CORE
pyr-xdep.c
PYRAMID_PTRACE
pyr-xdep.c
REGISTER_BYTES
remote.c
REGISTER_NAMES
tm-29k.h
REG_STACK_SEGMENT
exec.c
REG_STRUCT_HAS_ADDR
findvar.c
RE_NREGS
regex.h
R_FP
dwarfread.c
R_OK
xm-altos.h
SDB_REG_TO_REGNUM
coffread.c
SEEK_END
state.c
SEEK_SET
state.c
SEM
coffread.c
SET_STACK_LIMIT_HUGE
When defined, stack limits will be raised to their maximum. Use this if your host supports setrlimit and you have trouble with stringtab in `dbxread.c'.

Also used in `fork-child.c' to return stack limits before child processes are forked.

SHELL_COMMAND_CONCAT
infrun.c
SHELL_FILE
infrun.c
SHIFT_INST_REGS
breakpoint.c
SIGN_EXTEND_CHAR
regex.c
SIGTRAP_STOP_AFTER_LOAD
infrun.c
SKIP_PROLOGUE
tm-68k.h
SKIP_PROLOGUE_FRAMELESS_P
blockframe.c
SKIP_TRAMPOLINE_CODE
infrun.c
SOLIB_ADD
core.c
SOLIB_CREATE_INFERIOR_HOOK
infrun.c
SOME_NAMES_HAVE_DOT
minsyms.c
SP_REGNUM
parse.c
STAB_REG_TO_REGNUM
stabsread.h
STACK_ALIGN
valops.c
STACK_DIRECTION
alloca.c
START_INFERIOR_TRAPS_EXPECTED
infrun.c
STOP_SIGNAL
main.c
STORE_RETURN_VALUE
tm-68k.h
SUN4_COMPILER_FEATURE
infrun.c
SUN_FIXED_LBRAC_BUG
dbxread.c
SVR4_SHARED_LIBS
solib.c
SWITCH_ENUM_BUG
regex.c
SYM1
tm-ultra3.h
SYMBOL_RELOADING_DEFAULT
symfile.c
SYNTAX_TABLE
regex.c
Sword
regex.c
TDESC
infrun.c
TIOCGETC
inflow.c
TIOCGLTC
inflow.c
TIOCGPGRP
inflow.c
TIOCLGET
inflow.c
TIOCLSET
inflow.c
TIOCNOTTY
inflow.c
TM_FILE_OVERRIDE
defs.h
T_ARG
coffread.c
T_VOID
coffread.c
UINT_MAX
defs.h
UPAGES
altos-xdep.c
USER
m88k-tdep.c
USE_GAS
xm-news.h
USE_O_NOCTTY
inflow.c
USE_STRUCT_CONVENTION
values.c
USG
Means that System V (prior to SVR4) include files are in use. (FIXME: This symbol is abused in `infrun.c', `regex.c', `remote-nindy.c', and `utils.c' for other things, at the moment.)
USIZE
xm-m88k.h
U_FPSTATE
i386-xdep.c
VARIABLES_INSIDE_BLOCK
dbxread.c
WRS_ORIG
remote-vx.c
_LANG_c
language.c
_LANG_m2
language.c
__GNUC__
news-xdep.c
__GO32__
inflow.c
__HAVE_68881__
m68k-stub.c
__HPUX_ASM__
xm-hp300hpux.h
__INT_VARARGS_H
printcmd.c
__not_on_pyr_yet
pyr-xdep.c
alloca
defs.h
const
defs.h
GOULD_PN
gould-pinsn.c
emacs
alloca.c
hp800
xm-hppabsd.h
hpux
hppabsd-core.c
lint
valarith.c
longest_to_int
defs.h
mc68020
m68k-stub.c
notdef
gould-pinsn.c
ns32k_opcodeT
ns32k-opcode.h
sgi
mips-tdep.c
sparc
regex.c
static
alloca.c
sun
m68k-tdep.c
sun386
tm-sun386.h
test
regex.c
ultrix
xm-mips.h
volatile
defs.h
x_name
coffread.c
x_zeroes
coffread.c

Go to the previous, next section.