public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use gdb_assert_not_reached in arm-linux-nat.c
@ 2019-05-04 20:14 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2019-05-04 20:14 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=06d16ec97736b5fc0f41cb5a43f756b7ba3d974b

commit 06d16ec97736b5fc0f41cb5a43f756b7ba3d974b
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Apr 24 16:22:57 2019 -0600

    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.

Diff:
---
 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 4763a83..18d0ce8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 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>
+
 	* compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
 	"false".
 
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index 52668da..c86c97d 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;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-04 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-04 20:14 [binutils-gdb] Use gdb_assert_not_reached in arm-linux-nat.c Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).