From 9e77999c3a028252da01ff1d6d042fb718a84fe3 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 9 Apr 2013 23:30:50 +0000 Subject: [PATCH] Fix build failure in varobj.c:update_dynamic_varobj_children... ... when !HAVE_PYTHON. gdb/ChangeLog: * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]: Use gdb_assert_not_reached instead of invalid boolean expression. --- gdb/ChangeLog | 5 +++++ gdb/varobj.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21aebc323fa..f9c7068b8a4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-04-09 Joel Brobecker + + * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]: + Use gdb_assert_not_reached instead of invalid boolean expression. + 2013-04-09 Pedro Alves * remote.c (unpush_and_perror): New function. diff --git a/gdb/varobj.c b/gdb/varobj.c index 84588364e21..467e59ae0b3 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1252,7 +1252,7 @@ update_dynamic_varobj_children (struct varobj *var, return 1; #else - gdb_assert (0 && "should never be called if Python is not enabled"); + gdb_assert_not_reached ("should never be called if Python is not enabled"); #endif } -- 2.30.2