From 4cdfadb1f8e1e5465112c72e7ee5d7552f3145fc Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 6 Aug 2007 20:07:44 +0000 Subject: [PATCH] 2007-08-06 Michael Snyder * ada-lang.c (desc_bounds): Comparison of function address to NULL. --- gdb/ChangeLog | 4 ++++ gdb/ada-lang.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7f00b9364..46ba539578 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-08-06 Michael Snyder + + * ada-lang.c (desc_bounds): Comparison of function address to NULL. + 2007-08-05 Jim Blandy * macroexp.c (init_buffer): Remove testing code that overrides the diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 068a6ed7fc..58d820d323 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -1322,7 +1322,7 @@ desc_bounds (struct value *arr) desc_bounds_type (thin_descriptor_type (type)); LONGEST addr; - if (desc_bounds_type == NULL) + if (bounds_type == NULL) error (_("Bad GNAT array descriptor")); /* NOTE: The following calculation is not really kosher, but -- 2.34.1