forked from Imagelibrary/binutils-gdb
* ada-lang.c (ada_exception_breakpoint_ops): Make return type
const. (ada_exception_sal): Make 'ops' const. (ada_decode_exception_location): Likewise. (ada_decode_assert_location): Likewise. (catch_assert_command): Update. (catch_ada_exception_command): Update. (create_ada_exception_catchpoint): Make 'ops' const. * breakpoint.c (set_raw_breakpoint_without_location) (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops' const. (create_internal_breakpoint): Update. (init_raw_breakpoint_without_location): Make 'ops' const. (init_raw_breakpoint, init_catchpoint) (create_fork_vfork_event_catchpoint) (create_syscall_event_catchpoint, init_breakpoint_sal) (create_breakpoint_sal, create_breakpoints_sal) (create_breakpoint, init_ada_exception_breakpoint): Likewise. * breakpoint.h (struct breakpoint) <ops>: Now const. (init_ada_exception_breakpoint, create_breakpoint): Make 'ops' const.
This commit is contained in:
@@ -533,7 +533,7 @@ extern int target_exact_watchpoints;
|
||||
struct breakpoint
|
||||
{
|
||||
/* Methods associated with this breakpoint. */
|
||||
struct breakpoint_ops *ops;
|
||||
const struct breakpoint_ops *ops;
|
||||
|
||||
struct breakpoint *next;
|
||||
/* Type of breakpoint. */
|
||||
@@ -1093,7 +1093,7 @@ extern void
|
||||
struct gdbarch *gdbarch,
|
||||
struct symtab_and_line sal,
|
||||
char *addr_string,
|
||||
struct breakpoint_ops *ops,
|
||||
const struct breakpoint_ops *ops,
|
||||
int tempflag,
|
||||
int from_tty);
|
||||
|
||||
@@ -1110,7 +1110,7 @@ extern int create_breakpoint (struct gdbarch *gdbarch, char *arg,
|
||||
int tempflag, enum bptype wanted_type,
|
||||
int ignore_count,
|
||||
enum auto_boolean pending_break_support,
|
||||
struct breakpoint_ops *ops,
|
||||
const struct breakpoint_ops *ops,
|
||||
int from_tty,
|
||||
int enabled,
|
||||
int internal);
|
||||
|
||||
Reference in New Issue
Block a user