From: Tom Tromey Date: Wed, 24 Apr 2019 22:22:57 +0000 (-0600) Subject: Use gdb_assert_not_reached in arm-linux-nat.c X-Git-Tag: binutils-2_33~1375 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06d16ec97736b5fc0f41cb5a43f756b7ba3d974b;p=thirdparty%2Fbinutils-gdb.git 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. --- 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; }