| www.delorie.com/gnu/docs/gdb/gdbint_95.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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
attach and
detach commands.
CHILD_PREPARE_TO_STORE
[Note that this is incorrectly defined in `xm-system.h' files currently.]
FETCH_INFERIOR_REGISTERS
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.
FILES_INFO_HOOK
FP0_REGNUM
GET_LONGJMP_TARGET
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.
I386_USE_GENERIC_WATCHPOINTS
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.
ONE_PROCESS_WRITETEXT
PREPARE_TO_PROCEED (select_it)
proceed function in `infrun.c' deals with switching between
threads.
In a multi-threaded task we may select another thread and then continue or step. But if the old thread was stopped at a breakpoint, it will immediately cause another breakpoint stop without any execution (i.e. it will report a breakpoint hit incorrectly). So GDB must step over it first.
If defined, PREPARE_TO_PROCEED should check the current thread
against the thread that reported the most recent event. If a step-over
is required, it returns TRUE. If select_it is non-zero, it should
reselect the old thread.
PROC_NAME_FMT
PTRACE_FP_BUG
PTRACE_ARG3_TYPE
ptrace system call, if it
exists and is different from int.
REGISTER_U_ADDR
SHELL_COMMAND_CONCAT
SHELL_FILE
"/bin/sh".
SOLIB_ADD (filename, from_tty, targ, readsyms)
SOLIB_CREATE_INFERIOR_HOOK
START_INFERIOR_TRAPS_EXPECTED
SVR4_SHARED_LIBS
USE_PROC_FS
U_REGS_OFFSET
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.
CLEAR_SOLIB
DEBUG_PTRACE
ptrace calls.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |