aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-10-13 23:53:20 +0000
committerKevin Buettner <kevinb@redhat.com>2003-10-13 23:53:20 +0000
commit76897487dfbbf47c3bc8e324db4056db319adc7f (patch)
tree9265dfe6024391e0da6fb68df30c548b3c42cacc /gdb/breakpoint.h
parenta113152116cefd055d67b816cd19b98d8f03f0b4 (diff)
downloadgdb-76897487dfbbf47c3bc8e324db4056db319adc7f.zip
gdb-76897487dfbbf47c3bc8e324db4056db319adc7f.tar.gz
gdb-76897487dfbbf47c3bc8e324db4056db319adc7f.tar.bz2
* breakpoint.h (struct breakpoint): Add new member
``requested_address''. * breakpoint.c (breakpoint_adjustment_warning) (adjust_breakpoint_address): New static functions. (print_it_typical): Issue warning if breakpoint's address is different from its requested address. (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1) (breakpoint_re_set_one): Set breakpoint's ``requested_address'' field. Set ``address'' field to the result of calling adjust_breakpoint_address() on the requested address.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 2cd5260..13e0a57 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -227,6 +227,14 @@ struct breakpoint
simulators). NULL is not a special value for this field. */
CORE_ADDR address;
+ /* Address at which breakpoint was requested, either by the user or
+ by GDB for internal breakpoints. This will usually be the same
+ as ``address'' (above) except for cases in which
+ ADJUST_BREAKPOINT_ADDRESS has computed a different address at
+ which to place the breakpoint in order to comply with a
+ processor's architectual constraints. */
+ CORE_ADDR requested_address;
+
/* Line number of this address. */
int line_number;