Hurd: Make MIG output parsing more robust.
gdb/ * reply_mig_hack.awk: In phase 5, keep going if we have not yet collected the type check structures. Based on a patch by David Michael <fedora.dm0@gmail.com>.
This commit is contained in:
parent
bae8023e39
commit
d47642c93d
2 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
|
2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* reply_mig_hack.awk: In phase 5, keep going if we have not yet
|
||||||
|
collected the type check structures.
|
||||||
|
|
||||||
* reply_mig_hack.awk: Don't expect to see the auto keyword.
|
* reply_mig_hack.awk: Don't expect to see the auto keyword.
|
||||||
|
|
||||||
2014-02-14 Doug Evans <dje@google.com>
|
2014-02-14 Doug Evans <dje@google.com>
|
||||||
|
|
|
@ -92,6 +92,12 @@ parse_phase == 5 && /^[ \t]*mig_external kern_return_t/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_phase == 5 && /^#if[ \t]TypeCheck/ {
|
parse_phase == 5 && /^#if[ \t]TypeCheck/ {
|
||||||
|
# Keep going if we have not yet collected the type check structures.
|
||||||
|
if (num_checks == 0)
|
||||||
|
{
|
||||||
|
print; next;
|
||||||
|
}
|
||||||
|
|
||||||
# The first args type checking statement; we need to insert our chunk of
|
# The first args type checking statement; we need to insert our chunk of
|
||||||
# code that bypasses all the type checks if this is an error return, after
|
# code that bypasses all the type checks if this is an error return, after
|
||||||
# which we're done until we get to the next function. Handily, the size
|
# which we're done until we get to the next function. Handily, the size
|
||||||
|
|
Loading…
Add table
Reference in a new issue