aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-09-20 11:34:21 -0600
committerTom Tromey <tromey@adacore.com>2019-09-20 11:34:21 -0600
commitd42076962798cd2329090cea213e797f4c69c03c (patch)
tree6fb2ab9b364e85845a69109da5018915227c205a /gdb/block.c
parenta48931cc2df9f87596d93b319236c73ef0fe0f4e (diff)
downloadgdb-d42076962798cd2329090cea213e797f4c69c03c.zip
gdb-d42076962798cd2329090cea213e797f4c69c03c.tar.gz
gdb-d42076962798cd2329090cea213e797f4c69c03c.tar.bz2
Fix crash in Ada "catch exception"
PR ada/24919 concerns a crash that Tom de Vries noticed when running the "catch_ex" Ada test case. He sent a test executable and tracked this down to commit f21c2bd7b7 ("Fix Fortran regression with variables in nested functions"). Looking at that patch, you can see the obvious error: - return 0; + return true; Oops! This patch fixes the bug. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-09-20 Tom Tromey <tromey@adacore.com> PR ada/24919: * block.c (contained_in): Fix final return value.
Diffstat (limited to 'gdb/block.c')
-rw-r--r--gdb/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/block.c b/gdb/block.c
index ca4dc22..5ba44d4 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -86,7 +86,7 @@ contained_in (const struct block *a, const struct block *b,
}
while (a != NULL);
- return true;
+ return false;
}