From 5eddd57823971bdb54f957d10c11ff3fc9f97b1e Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 12 Jan 2016 12:53:09 +0100 Subject: [PATCH] Hurd: Make gdb/reply_mig_hack.awk script compatible to "mawk" The "mawk" AWK implementation did't like that regular expression: mawk: [...]/gdb/reply_mig_hack.awk: line 98: regular expression compile failed (missing operand) gdb/ * reply_mig_hack.awk: Rewrite one regular expression. --- gdb/ChangeLog | 4 ++++ gdb/reply_mig_hack.awk | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 099a9a90c5a..73b001c0288 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-01-12 Thomas Schwinge + + * reply_mig_hack.awk: Rewrite one regular expression. + 2016-01-11 Mike Frysinger * acinclude.m4: Include new warning.m4 file. diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk index 1e2387aeb4a..e4c513bc924 100644 --- a/gdb/reply_mig_hack.awk +++ b/gdb/reply_mig_hack.awk @@ -95,7 +95,7 @@ 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] = $(NF - 2); num_checks++; -- 2.30.2