From: Thomas Schwinge Date: Mon, 6 Jan 2014 14:56:33 +0000 (+0100) Subject: Hurd: Adapt to changed MIG output. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bae8023e39868ab2065ff05be61e151b3c082492;p=binutils-gdb.git Hurd: Adapt to changed MIG output. gdb/ * reply_mig_hack.awk: Don't expect to see the auto keyword. Based on a patch by David Michael . --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f2e27ad143..322e4aa85f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-02-16 Thomas Schwinge + + * reply_mig_hack.awk: Don't expect to see the auto keyword. + 2014-02-14 Doug Evans * target.c (target_write_partial): Fix result type. diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk index 075ab029cc4..6d276857ec3 100644 --- a/gdb/reply_mig_hack.awk +++ b/gdb/reply_mig_hack.awk @@ -78,9 +78,9 @@ parse_phase == 4 { print; next; } -parse_phase == 5 && /^[ \t]*(auto|static) const mach_msg_type_t/ { +parse_phase == 5 && /^[ \t]*(auto |static |)const mach_msg_type_t/ { # The type check structure for an argument. - arg_check_name[num_checks] = $4; + arg_check_name[num_checks] = $(NF - 2); num_checks++; print; next; }