1
Description: Fix FTBFS on Hurd.
2
Make MIG output parsing more robust.
3
Based on a patch by David Michael <fedora.dm0@gmail.com>.
4
Author: Thomas Schwinge <thomas@codesourcery.com>
5
Origin: upstream, https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=d47642c93dda6344af12458e4e26587f3353fb44
7
diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk
8
index 6d27685..15bfdfb 100644
9
--- a/gdb/reply_mig_hack.awk
10
+++ b/gdb/reply_mig_hack.awk
11
@@ -92,6 +92,12 @@ parse_phase == 5 && /^[ \t]*mig_external kern_return_t/ {
14
parse_phase == 5 && /^#if[ \t]TypeCheck/ {
15
+ # Keep going if we have not yet collected the type check structures.
16
+ if (num_checks == 0)
21
# The first args type checking statement; we need to insert our chunk of
22
# code that bypasses all the type checks if this is an error return, after
23
# which we're done until we get to the next function. Handily, the size