forked from Imagelibrary/binutils-gdb
Constify breakpoint::print_it
This constifies breakpoint::print_it. Doing this pointed out some code in ada-lang.c that can be simplified a little as well.
This commit is contained in:
@@ -44,7 +44,7 @@ struct syscall_catchpoint : public breakpoint
|
||||
const address_space *aspace,
|
||||
CORE_ADDR bp_addr,
|
||||
const target_waitstatus &ws) override;
|
||||
enum print_stop_action print_it (struct bpstat *bs) override;
|
||||
enum print_stop_action print_it (const bpstat *bs) const override;
|
||||
bool print_one (struct bp_location **) override;
|
||||
void print_mention () override;
|
||||
void print_recreate (struct ui_file *fp) override;
|
||||
@@ -180,7 +180,7 @@ syscall_catchpoint::breakpoint_hit (const struct bp_location *bl,
|
||||
/* Implement the "print_it" method for syscall catchpoints. */
|
||||
|
||||
enum print_stop_action
|
||||
syscall_catchpoint::print_it (bpstat *bs)
|
||||
syscall_catchpoint::print_it (const bpstat *bs) const
|
||||
{
|
||||
struct ui_out *uiout = current_uiout;
|
||||
struct breakpoint *b = bs->breakpoint_at;
|
||||
|
||||
Reference in New Issue
Block a user