aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parent4ab98b5c97a88c913aa1dcdc7452bd044fca4ab5 (diff)
downloadgdb-bae8023e39868ab2065ff05be61e151b3c082492.zip
gdb-bae8023e39868ab2065ff05be61e151b3c082492.tar.gz
gdb-bae8023e39868ab2065ff05be61e151b3c082492.tar.bz2
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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/reply_mig_hack.awk4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4f2e27a..322e4aa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk
index 075ab02..6d27685 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;
}