(gdbint.info)Host Conditionals


Next: Target Conditionals Prev: Submitting Patches Up: Top

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.*

`BLOCK_ADDRESS_FUNCTION_RELATIVE'
     dbxread.c

`GDBINIT_FILENAME'
     The default name of GDB's initialization file (normally
     `.gdbinit').

`KERNELDEBUG'
     tm-hppa.h

`MEM_FNS_DECLARED'
     Your host config file defines this if it includes declarations of
     `memcpy' and `memset'.  Define this to avoid conflicts between the
     native include files and the declarations in `defs.h'.

`NO_SYS_FILE'
     dbxread.c

`PYRAMID_CONTROL_FRAME_DEBUGGING'
     pyr-xdep.c

`SIGWINCH_HANDLER_BODY'
     utils.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

`BITS_BIG_ENDIAN'
     defs.h

`BKPT_AT_MAIN'
     solib.c

`BLOCK_ADDRESS_ABSOLUTE'
     dbxread.c

`BPT_VECTOR'
     tm-m68k.h

`BREAKPOINT'
     tm-m68k.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

`CORE_NEEDS_RELOCATION'
     stack.c

`CPLUS_MARKER'
     cplus-dem.c

`CREATE_INFERIOR_HOOK'
     infrun.c

`C_ALLOCA'
     regex.c

`C_GLBLREG'
     coffread.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'
     The default value of the prompt string (normally `"(gdb) "').

`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

`EXTRACT_RETURN_VALUE'
     tm-m68k.h

`EXTRACT_STRUCT_VALUE_ADDRESS'
     values.c

`EXTRA_FRAME_INFO'
     frame.h

`EXTRA_SYMTAB_INFO'
     symtab.h

`FILES_INFO_HOOK'
     target.c

`FLOAT_INFO'
     infcmd.c

`FOPEN_RB'
     defs.h

`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-m68k.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

`HANDLE_RBRAC'
     partial-stab.h

`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

`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

`LOG_FILE'
     remote-adapt.c

`LONGERNAMES'
     cplus-dem.c

`LONGEST'
     defs.h

`CC_HAS_LONG_LONG'
     defs.h

`PRINTF_HAS_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

`MAINTENANCE'
     dwarfread.c

`MAINTENANCE_CMDS'
     If the value of this is 1, then a number of optional maintenance
     commands are compiled in.

`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

`NBPG'
     altos-xdep.c

`NEED_POSIX_SETPGID'
     infrun.c

`NEED_TEXT_START_END'
     exec.c

`NFAILURES'
     regex.c

`NORETURN'
     (in defs.h - is this really useful to define/undefine?)

`NOTDEF'
     regex.c

`NOTDEF'
     remote-adapt.c

`NOTDEF'
     remote-mm.c

`NOTICE_SIGNAL_HANDLING_CHANGE'
     infrun.c

`NO_HIF_SUPPORT'
     remote-mm.c

`NO_JOB_CONTROL'
     signals.h

`NO_MMALLOC'
     GDB will use the `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'
     Define this if you are using `mmalloc', but don't want the overhead
     of checking the heap with `mmcheck'.

`NO_SIGINTERRUPT'
     remote-adapt.c

`NO_SINGLE_STEP'
     infptrace.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

`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

`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-a29k.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

`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-m68k.h

`SKIP_PROLOGUE_FRAMELESS_P'
     blockframe.c

`SKIP_TRAMPOLINE_CODE'
     infrun.c

`SOLIB_ADD'
     core.c

`SOLIB_CREATE_INFERIOR_HOOK'
     infrun.c

`STACK_ALIGN'
     valops.c

`START_INFERIOR_TRAPS_EXPECTED'
     infrun.c

`STOP_SIGNAL'
     main.c

`STORE_RETURN_VALUE'
     tm-m68k.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

`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

`__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

`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

`sun'
     m68k-tdep.c

`sun386'
     tm-sun386.h

`test'
     regex.c

`ultrix'
     xm-mips.h

`volatile'
     defs.h


automatically generated by info2www