tem = value_cast (ptr_type, tem);
offset_to_top = value_as_long (value_ind (tem));
}
- else if (offset_to_top > 0)
+
+ if (offset_to_top > 0)
{
/* OFFSET_TO_TOP used to be a positive value to be subtracted
from the base address. This was however incompatible with
/* An instance of this type is used to represent an Ada catchpoint. */
-struct ada_catchpoint : public base_breakpoint
+struct ada_catchpoint : public code_breakpoint
{
ada_catchpoint (struct gdbarch *gdbarch_,
enum ada_exception_catchpoint_kind kind,
bool tempflag,
bool enabled,
bool from_tty)
- : base_breakpoint (gdbarch_, bp_catchpoint),
+ : code_breakpoint (gdbarch_, bp_catchpoint),
m_kind (kind)
{
add_location (sal);
- /* Unlike most base_breakpoint types, Ada catchpoints are
+ /* Unlike most code_breakpoint types, Ada catchpoints are
pspace-specific. */
gdb_assert (sal.pspace != nullptr);
this->pspace = sal.pspace;
enable_state = enabled ? bp_enabled : bp_disabled;
disposition = tempflag ? disp_del : disp_donttouch;
- location = string_to_event_location (&addr_string_,
- language_def (language_ada));
+ locspec = string_to_location_spec (&addr_string_,
+ language_def (language_ada));
language = language_ada;
}
{
/* Call the base class's method. This updates the catchpoint's
locations. */
- this->base_breakpoint::re_set ();
+ this->code_breakpoint::re_set ();
/* Reparse the exception conditional expressions. One for each
location. */