summaryrefslogtreecommitdiff
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
commit563e51497d6937a6632342d30f2f87d08e96f8f3 (patch)
treec00942696bc6c6684fb9239d94002e831c0be145 /gdb/breakpoint.h
parentdf04e4e269692417f8f4ff9c16768478a2e0cb42 (diff)
downloadgdb-563e51497d6937a6632342d30f2f87d08e96f8f3.tar.gz
* 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 2cd5260dbc8..13e0a570d4b 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;