From bae8023e39868ab2065ff05be61e151b3c082492 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 6 Jan 2014 15:56:33 +0100 Subject: [PATCH] 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 . --- gdb/ChangeLog | 4 ++++ gdb/reply_mig_hack.awk | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f2e27ad14..322e4aa85f 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 075ab029cc..6d276857ec 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; } -- 2.34.1