projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xcoff slurp_armap bounds checking
[deliverable/binutils-gdb.git]
/
gdb
/
reply_mig_hack.awk
diff --git
a/gdb/reply_mig_hack.awk
b/gdb/reply_mig_hack.awk
index 7eab5042f4c69339fb34de29f11c54a552ff3efe..09ce3ae911b13607f97c807eecec80a0bd7a55d8 100644
(file)
--- a/
gdb/reply_mig_hack.awk
+++ b/
gdb/reply_mig_hack.awk
@@
-1,6
+1,6
@@
# Reply server mig-output massager
#
# Reply server mig-output massager
#
-# Copyright (C) 1995-201
5
Free Software Foundation, Inc.
+# Copyright (C) 1995-201
9
Free Software Foundation, Inc.
#
# Written by Miles Bader <miles@gnu.ai.mit.edu>
#
#
# Written by Miles Bader <miles@gnu.ai.mit.edu>
#
@@
-49,7
+49,7
@@
parse_phase == 2 {
print; next;
}
print; next;
}
-parse_phase == 3 && /}/ {
+parse_phase == 3 && /}
Request
/ {
# The args structure is over.
if (num_args > 1)
parse_phase = 5;
# The args structure is over.
if (num_args > 1)
parse_phase = 5;
@@
-62,6
+62,9
@@
parse_phase == 3 && /}/ {
parse_phase == 3 && num_args == 0 {
# The type field for an argument.
parse_phase == 3 && num_args == 0 {
# The type field for an argument.
+ # This won't be accurate in case of unions being used in the Request struct,
+ # but that doesn't matter, as we'll only be looking at arg_type_code_name[0],
+ # which will not be a union type.
arg_type_code_name[num_args] = $2;
sub (/;$/, "", arg_type_code_name[num_args]) # Get rid of the semi-colon
parse_phase = 4;
arg_type_code_name[num_args] = $2;
sub (/;$/, "", arg_type_code_name[num_args]) # Get rid of the semi-colon
parse_phase = 4;
@@
-82,6
+85,9
@@
parse_phase == 3 {
parse_phase == 4 {
# The value field for an argument.
parse_phase == 4 {
# The value field for an argument.
+ # This won't be accurate in case of unions being used in the Request struct,
+ # but that doesn't matter, as we'll only be looking at arg_name[0], which
+ # will not be a union type.
arg_name[num_args] = $2;
sub (/;$/, "", arg_name[num_args]) # Get rid of the semi-colon
num_args++;
arg_name[num_args] = $2;
sub (/;$/, "", arg_name[num_args]) # Get rid of the semi-colon
num_args++;
@@
-89,7
+95,7
@@
parse_phase == 4 {
print; next;
}
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++;
# The type check structure for an argument.
arg_check_name[num_checks] = $(NF - 2);
num_checks++;
This page took
0.025569 seconds
and
4
git commands to generate.