summaryrefslogtreecommitdiff
path: root/gdb/reply_mig_hack.awk
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-01-06 15:56:33 +0100
committerThomas Schwinge <thomas@codesourcery.com>2014-02-16 08:26:08 +0100
commitbae8023e39868ab2065ff05be61e151b3c082492 (patch)
treea4bdd1b32a7e03fc4a25ef2db35ce9a7599435b2 /gdb/reply_mig_hack.awk
parent4ab98b5c97a88c913aa1dcdc7452bd044fca4ab5 (diff)
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 <fedora.dm0@gmail.com>.
Diffstat (limited to 'gdb/reply_mig_hack.awk')
-rw-r--r--gdb/reply_mig_hack.awk4
1 files changed, 2 insertions, 2 deletions
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;
}