diff options
author | Tom Tromey <tom@tromey.com> | 2019-04-24 16:22:57 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-05-04 14:13:28 -0600 |
commit | 06d16ec97736b5fc0f41cb5a43f756b7ba3d974b (patch) | |
tree | 5ebf058258e8ef8c0db1a362a94292953542b0c1 | |
parent | 9c056022194f9d1f068885cb45c9d23a2e44db54 (diff) | |
download | gdb-06d16ec97736b5fc0f41cb5a43f756b7ba3d974b.zip gdb-06d16ec97736b5fc0f41cb5a43f756b7ba3d974b.tar.gz gdb-06d16ec97736b5fc0f41cb5a43f756b7ba3d974b.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-linux-nat.c | 2 |
2 files changed, 6 insertions, 1 deletions
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; } |