[FYI,6/7] Use gdb_assert_not_reached in arm-linux-nat.c

Message ID 20190504201147.3095-7-tom@tromey.com
State New
Headers show
Series
  • minor boolification
Related show

Commit Message

Tom Tromey May 4, 2019, 8:11 p.m.
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.
---
 gdb/ChangeLog       | 5 +++++
 gdb/arm-linux-nat.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.17.2

Patch

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;
 }