summaryrefslogtreecommitdiff
path: root/gdb/reply_mig_hack.awk
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-01-06 16:01:08 +0100
committerThomas Schwinge <thomas@codesourcery.com>2014-02-16 08:26:53 +0100
commitd47642c93dda6344af12458e4e26587f3353fb44 (patch)
tree1dc07a6875f890e64f6bd5780511dcea61b528d8 /gdb/reply_mig_hack.awk
parentbae8023e39868ab2065ff05be61e151b3c082492 (diff)
Hurd: Make MIG output parsing more robust.
gdb/ * reply_mig_hack.awk: In phase 5, keep going if we have not yet collected the type check structures. Based on a patch by David Michael <fedora.dm0@gmail.com>.
Diffstat (limited to 'gdb/reply_mig_hack.awk')
-rw-r--r--gdb/reply_mig_hack.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk
index 6d276857ec..15bfdfb090 100644
--- a/gdb/reply_mig_hack.awk
+++ b/gdb/reply_mig_hack.awk
@@ -92,6 +92,12 @@ parse_phase == 5 && /^[ \t]*mig_external kern_return_t/ {
}
parse_phase == 5 && /^#if[ \t]TypeCheck/ {
+ # Keep going if we have not yet collected the type check structures.
+ if (num_checks == 0)
+ {
+ print; next;
+ }
+
# The first args type checking statement; we need to insert our chunk of
# code that bypasses all the type checks if this is an error return, after
# which we're done until we get to the next function. Handily, the size