Skip to content

Commit e63d602

Browse files
committed
Mark some singlestep flag functions const.
1 parent 878f756 commit e63d602

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Registers.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ void Registers::set_from_trace(SupportedArch a, const void* data,
659659
memcpy(&u.arm64regs, data, sizeof(u.arm64regs));
660660
}
661661

662-
bool Registers::aarch64_singlestep_flag() {
662+
bool Registers::aarch64_singlestep_flag() const {
663663
switch (arch()) {
664664
case aarch64:
665665
return pstate() & AARCH64_DBG_SPSR_SS;
@@ -679,7 +679,7 @@ void Registers::set_aarch64_singlestep_flag() {
679679
}
680680
}
681681

682-
bool Registers::x86_singlestep_flag() {
682+
bool Registers::x86_singlestep_flag() const {
683683
switch (arch()) {
684684
case x86:
685685
case x86_64:

src/Registers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class Registers {
424424
* Modify the processor's single step flag. On x86 this is the TF flag in the
425425
* eflags register.
426426
*/
427-
bool x86_singlestep_flag();
427+
bool x86_singlestep_flag() const;
428428
void clear_x86_singlestep_flag();
429429

430430
/**
@@ -441,7 +441,7 @@ class Registers {
441441
* likely already be clear, and we'd take a single step exception without
442442
* ever having executed any userspace instructions whatsoever.
443443
*/
444-
bool aarch64_singlestep_flag();
444+
bool aarch64_singlestep_flag() const;
445445
void set_aarch64_singlestep_flag();
446446

447447
void print_register_file(FILE* f) const;

0 commit comments

Comments
 (0)