Hurd: Adapt to changed MIG output.
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 6 Jan 2014 14:56:33 +0000 (15:56 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Sun, 16 Feb 2014 07:26:08 +0000 (08:26 +0100)
gdb/
* reply_mig_hack.awk: Don't expect to see the auto keyword.

Based on a patch by David Michael <fedora.dm0@gmail.com>.

gdb/ChangeLog
gdb/reply_mig_hack.awk

index 4f2e27a..322e4aa 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * reply_mig_hack.awk: Don't expect to see the auto keyword.
+
 2014-02-14  Doug Evans  <dje@google.com>
 
        * target.c (target_write_partial): Fix result type.
index 075ab02..6d27685 100644 (file)
@@ -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;
 }