diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-07-19 23:30:11 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-07-19 23:30:11 +0000 |
commit | adf40b2e16832f7382ee79e498d43a70ad22e305 (patch) | |
tree | 933de2a465a4003b9016471a466079459693ae3e /gdb/doc | |
parent | dc9e099fc0eced486ae2b49455c9da113c11f4ff (diff) | |
download | gdb-adf40b2e16832f7382ee79e498d43a70ad22e305.zip gdb-adf40b2e16832f7382ee79e498d43a70ad22e305.tar.gz gdb-adf40b2e16832f7382ee79e498d43a70ad22e305.tar.bz2 |
import gdb-1999-07-19 snapshot
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdbint.texinfo | 34 |
2 files changed, 32 insertions, 7 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index bc9e6aa..a6507bd 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +1999-07-14 Jim Blandy <jimb@zwingli.cygnus.com> + + * gdbint.texinfo (PREPARE_TO_PROCEED, ADDR_BITS_REMOVE): Doc + fixes. + Tue Jun 29 11:43:55 1999 Andrew Cagney <cagney@b1.cygnus.com> * gdbint.texinfo (SAVE_DUMMY_FRAME_TOS): Define. diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 40a43a0..a94fcc4 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -1163,13 +1163,17 @@ line options to GDB. They are currently used only for the unsupported i960 Nindy target, and should not be used in any other configuration. @item ADDR_BITS_REMOVE (addr) -If a raw machine address includes any bits that are not really part of -the address, then define this macro to expand into an expression that -zeros those bits in @var{addr}. For example, the two low-order bits of -a Motorola 88K address may be used by some kernels for their own -purposes, since addresses must always be 4-byte aligned, and so are of -no use for addressing. Those bits should be filtered out with an -expression such as @code{((addr) & ~3)}. +If a raw machine instruction address includes any bits that are not +really part of the address, then define this macro to expand into an +expression that zeros those bits in @var{addr}. This is only used for +addresses of instructions, and even then not in all contexts. + +For example, the two low-order bits of the PC on the Hewlett-Packard PA +2.0 architecture contain the privilege level of the corresponding +instruction. Since instructions must always be aligned on four-byte +boundaries, the processor masks out these bits to generate the actual +address of the instruction. ADDR_BITS_REMOVE should filter out these +bits with an expression such as @code{((addr) & ~3)}. @item BEFORE_MAIN_LOOP_HOOK Define this to expand into any code that you want to execute before the @@ -2043,6 +2047,22 @@ root directory. Define this to be able to, when a breakpoint insertion fails, warn the user that another process may be running with the same executable. +@item PREPARE_TO_PROCEED @var{select_it} +This (ugly) macro allows a native configuration to customize the way the +@code{proceed} function in @file{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, @code{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 @var{select_it} is non-zero, it should +reselect the old thread. + @item PROC_NAME_FMT Defines the format for the name of a @file{/proc} device. Should be defined in @file{nm.h} @emph{only} in order to override the default |