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 4f2e27ad143e2db351dd10be40be9191ebbb5fc3..322e4aa85f80fd0c6270c7480dc6255bc5bbfe19 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 075ab029cc412c83d90fd9b3c8861a68fff33047..6d276857ec3d40ce60de8a1ba9b40cfadc5eb052 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;
 }