Use gdb_assert_not_reached in arm-linux-nat.c
This changes arm-linux-nat.c to use gdb_assert_not_reached rather than an assert of false. gdb/ChangeLog 2019-05-04 Tom Tromey <tom@tromey.com> * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint): Use gdb_assert_not_reached.
This commit is contained in:
parent
9c05602219
commit
06d16ec977
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2019-05-04 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
|
||||||
|
Use gdb_assert_not_reached.
|
||||||
|
|
||||||
2019-05-04 Tom Tromey <tom@tromey.com>
|
2019-05-04 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
|
* compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
|
||||||
|
|
|
@ -690,7 +690,7 @@ arm_linux_nat_target::can_use_hw_breakpoint (enum bptype type,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
gdb_assert (FALSE);
|
gdb_assert_not_reached ("unknown breakpoint type");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue