Use gdb_assert_not_reached in arm-linux-nat.c
authorTom Tromey <tom@tromey.com>
Wed, 24 Apr 2019 22:22:57 +0000 (16:22 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 4 May 2019 20:13:28 +0000 (14:13 -0600)
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
gdb/arm-linux-nat.c

index 4763a8391032c53c5c5f8dc3d7d4c1d63cb10cfc..18d0ce83b8c6109fce45e6c3b8dcf5781419f45e 100644 (file)
@@ -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>
 
        * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
index 52668da9fcf058efa4ca1c4bb05e9d836a9805fc..c86c97d895ac1ec6555398b8318bddec80102661 100644 (file)
@@ -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;
 }
This page took 0.02885 seconds and 4 git commands to generate.