From 06d16ec97736b5fc0f41cb5a43f756b7ba3d974b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 24 Apr 2019 16:22:57 -0600 Subject: [PATCH] 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 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint): Use gdb_assert_not_reached. --- gdb/ChangeLog | 5 +++++ gdb/arm-linux-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4763a839103..18d0ce83b8c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-05-04 Tom Tromey + + * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint): + Use gdb_assert_not_reached. + 2019-05-04 Tom Tromey * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index 52668da9fcf..c86c97d895a 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -690,7 +690,7 @@ arm_linux_nat_target::can_use_hw_breakpoint (enum bptype type, return -1; } else - gdb_assert (FALSE); + gdb_assert_not_reached ("unknown breakpoint type"); return 1; } -- 2.30.2