diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2016-01-12 12:53:09 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2016-01-12 12:53:09 +0100 |
commit | 5eddd57823971bdb54f957d10c11ff3fc9f97b1e (patch) | |
tree | 167654e2e907fa4695267d3e3ab606ce50411e08 | |
parent | 5230aa4dc919e4aa5519146531f55d2d094a0cae (diff) | |
download | gdb-5eddd57823971bdb54f957d10c11ff3fc9f97b1e.zip gdb-5eddd57823971bdb54f957d10c11ff3fc9f97b1e.tar.gz gdb-5eddd57823971bdb54f957d10c11ff3fc9f97b1e.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/reply_mig_hack.awk | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 099a9a9..73b001c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-01-12 Thomas Schwinge <thomas@codesourcery.com> + + * reply_mig_hack.awk: Rewrite one regular expression. + 2016-01-11 Mike Frysinger <vapier@gentoo.org> * acinclude.m4: Include new warning.m4 file. diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk index 1e2387a..e4c513b 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++; |