home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
unix
/
info
/
gdbint.i02
(
.txt
)
< prev
next >
Wrap
GNU Info File
|
1993-06-12
|
28KB
|
1,266 lines
This is Info file gdbint.info, produced by Makeinfo-1.47 from the input
file gdbint.tex.
START-INFO-DIR-ENTRY
* Gdb-Internals: (gdbint). The GNU debugger's internals.
END-INFO-DIR-ENTRY
This file documents the internals of the GNU debugger GDB.
Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by John Gilmore.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy or distribute modified versions of this
manual under the terms of the GPL (for which purpose this text may be
regarded as a program in the language TeX).
File: gdbint.info, Node: Host Conditionals, Next: Target Conditionals, Prev: Coding Style, 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.*
`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
buildsym.c
dbxread.c
dbxread.c
buildsym.c
dwarfread.c
valops.c
valops.c
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
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
File: gdbint.info, Node: Target Conditionals, Next: Native Conditionals, Prev: Host Conditionals, Up: Top
Target Conditionals
*******************
When GDB is configured and compiled, various macros are defined or
left undefined, to control compilation based on the attributes of the
target system. These macros and their meanings are:
*NOTE: For now, both host and target conditionals are here.
Eliminate host conditionals from this list as they are identified.*
`PUSH_DUMMY_FRAME'
Used in `call_function_by_hand' to create an artificial stack
frame.
`POP_FRAME'
Used in `call_function_by_hand' to remove an artificial stack
frame.
`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
`ADDITIONAL_OPTIONS'
main.c
`ADDITIONAL_OPTION_CASES'
main.c
`ADDITIONAL_OPTION_HANDLER'
main.c
`ADDITIONAL_OPTION_HELP'
main.c
`ADDR_BITS_REMOVE'
defs.h
`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
`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
`FPU'
Unused? 6-oct-92 rich@cygnus.com. FIXME.
`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
`GDB_TARGET_IS_HPPA'
This determines whether horrible kludge code in dbxread.c and
partial-stab.h is used to mangle multiple-symbol-table files from
HPPA's. This should all be ripped out, and a scheme like
elfread.c used.
`GDB_TARGET_IS_MACH386'
mach386-xdep.c
`GDB_TARGET_IS_SUN3'
a68v-xdep.c
`GDB_TARGET_IS_SUN386'
sun386-xdep.c
`GET_LONGJMP_TARGET'
For most machines, this is a target-dependent parameter. On the
DECstation and the Iris, this is a native-dependent parameter,
since <setjmp.h> is needed to define it.
This macro determines the target PC address that longjmp() will
jump to, assuming that we have just stopped at a longjmp
breakpoint. It takes a CORE_ADDR * as argument, and stores the
target PC value through this pointer. It examines the current
state of the machine as needed.
`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_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
`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
`L_LNNO32'
coffread.c
`MACHKERNELDEBUG'
hppabsd-tdep.c
`MAIN'
cplus-dem.c
`MAINTENANCE'
dwarfread.c
`MAINTENANCE_CMDS'
breakpoint.c
`MAINTENANCE_CMDS'
maint.c
`MIPSEL'
mips-tdep.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
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
`PUSH_ARGUMENTS'
valops.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'
infrun.c
`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
`TARGET_BYTE_ORDER'
defs.h
`TARGET_CHAR_BIT'
defs.h
`TARGET_COMPLEX_BIT'
defs.h
`TARGET_DOUBLE_BIT'
defs.h
`TARGET_DOUBLE_COMPLEX_BIT'
defs.h
`TARGET_FLOAT_BIT'
defs.h
`TARGET_INT_BIT'
defs.h
`TARGET_LONG_BIT'
defs.h
`TARGET_LONG_DOUBLE_BIT'
defs.h
`TARGET_LONG_LONG_BIT'
defs.h
`TARGET_PTR_BIT'
defs.h
`TARGET_SHORT_BIT'
defs.h
`TDESC'
infrun.c
`TM_FILE_OVERRIDE'
defs.h
`T_ARG'
coffread.c
`T_VOID'
coffread.c
`UINT_MAX'
defs.h
`USER'
m88k-tdep.c
`USE_GAS'
xm-news.h
`USE_STRUCT_CONVENTION'
values.c
`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
`__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
`GOULD_PN'
gould-pinsn.c
`emacs'
alloca.c
`hp800'
xm-hppabsd.h
`hpux'
hppabsd-core.c
`longest_to_int'
defs.h
`mc68020'
m68k-stub.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
`x_name'
coffread.c
`x_zeroes'
coffread.c
File: gdbint.info, Node: Native Conditionals, Next: Obsolete Conditionals, Prev: Target Conditionals, Up: Top
Native Conditionals
*******************
When GDB is configured and compiled, various macros are defined or
left undefined, to control compilation when the host and target systems
are the same. These macros should be defined (or left undefined) in
`nm-SYSTEM.h'.
`ATTACH_DETACH'
If defined, then gdb will include support for the `attach' and
`detach' commands.
`FETCH_INFERIOR_REGISTERS'
Define this if the native-dependent code will provide its own
routines `fetch_inferior_registers' and `store_inferior_registers'
in `HOST-nat.c'. If this symbol is *not* defined, and `infptrace.c'
is included in this configuration, the default routines in
`infptrace.c' are used for these functions.
`GET_LONGJMP_TARGET'
For most machines, this is a target-dependent parameter. On the
DECstation and the Iris, this is a native-dependent parameter,
since <setjmp.h> is needed to define it.
This macro determines the target PC address that longjmp() will
jump to, assuming that we have just stopped at a longjmp
breakpoint. It takes a CORE_ADDR * as argument, and stores the
target PC value through this pointer. It examines the current
state of the machine as needed.
`PROC_NAME_FMT'
Defines the format for the name of a `/proc' device. Should be
defined in `nm.h' *only* in order to override the default
definition in `procfs.c'.
`REGISTER_U_ADDR'
Defines the offset of the registers in the "u area"; *note Host::..
`USE_PROC_FS'
This determines whether small routines in `*-tdep.c', which
translate register values between GDB's internal representation
and the /proc representation, are compiled.
`U_REGS_OFFSET'
This is the offset of the registers in the upage. It need only be
defined if the generic ptrace register access routines in
`infptrace.c' are being used (that is, `infptrace.c' is configured
in, and `FETCH_INFERIOR_REGISTERS' is not defined). If the
default value from `infptrace.c' is good enough, leave it
undefined.
The default value means that u.u_ar0 *points to* the location of
the registers. I'm guessing that `#define U_REGS_OFFSET 0' means
that u.u_ar0 *is* the location of the registers.
File: gdbint.info, Node: Obsolete Conditionals, Prev: Native Conditionals, Up: Top
Obsolete Conditionals
*********************
Fragments of old code in GDB sometimes reference or set the following
configuration macros. They should not be used by new code, and old
uses should be removed as those parts of the debugger are otherwise
touched.
`STACK_END_ADDR'
This macro used to define where the end of the stack appeared, for
use in interpreting core file formats that don't record this
address in the core file itself. This information is now
configured in BFD, and GDB gets the info portably from there. The
values in GDB's configuration files should be moved into BFD
configuration files (if needed there), and deleted from all of
GDB's config files.
Any `FOO-xdep.c' file that references STACK_END_ADDR is so old
that it has never been converted to use BFD. Now that's old!