aboutsummaryrefslogtreecommitdiff
path: root/gdb/reply_mig_hack.awk
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-01-12 12:53:09 +0100
committerThomas Schwinge <thomas@codesourcery.com>2016-01-12 12:53:09 +0100
commit5eddd57823971bdb54f957d10c11ff3fc9f97b1e (patch)
tree167654e2e907fa4695267d3e3ab606ce50411e08 /gdb/reply_mig_hack.awk
parent5230aa4dc919e4aa5519146531f55d2d094a0cae (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/reply_mig_hack.awk')
-rw-r--r--gdb/reply_mig_hack.awk2
1 files changed, 1 insertions, 1 deletions
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++;