* 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.
This commit is contained in:
Kevin Buettner
2003-10-13 23:53:20 +00:00
parent a113152116
commit 76897487df
3 changed files with 87 additions and 4 deletions

View File

@@ -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;