~ubuntu-branches/debian/sid/gdb/sid

« back to all changes in this revision

Viewing changes to debian/patches/hurd-make-MIG-output-parsing-more-robust.patch

  • Committer: Package Import Robot
  • Author(s): Samuel Bronson, Héctor Orón Martínez, Gabriele Giacone, Samuel Bronson, Hector Oron
  • Date: 2014-08-09 13:11:35 UTC
  • mfrom: (1.4.16)
  • Revision ID: package-import@ubuntu.com-20140809131135-jnyo39dc7u7bf18u
Tags: 7.7.1+dfsg-1
[ Héctor Orón Martínez ]
* d/changelog: replace nickname by real name in previous block

[ Gabriele Giacone ]
* Fix FTBFS on Hurd.
  + Cherry-pick from upstream:
    hurd-new-RPC-reply-stub-functions.patch
    hurd-adapt-to-changed-MIG-output.patch
    hurd-adjust-to-startup-with-shell-changes.patch
    hurd-make-MIG-output-parsing-more-robust.patch
  (Closes: #752574)

[ Samuel Bronson ]
* Ship /usr/lib/libinproctrace.so with gdbserver.
  This enables the "agent" features.
* d/copyright: correct a licensecheck error; add required license texts/blurbs
* d/gdb.install: Include gcore in gdb package (Closes: #752317).
  Thanks to Lorenzo Beretta for the report.
* New patch to fix the build on kFreeBSD.
  Thanks to Steven Chamberlain for a fix (Closes: #752390, #752295).
* d/watch: Update to be more flexible about upstream tarball format.

Last but not least,
* Use correct tarball, with non-free upstream manpages stripped.
  Restores DFSG-compliance.

[ Hector Oron ]
* Rename upstream tarball to not conflict with the one in archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix FTBFS on Hurd.
 
2
 Make MIG output parsing more robust.
 
3
 Based on a patch by David Michael <fedora.dm0@gmail.com>.
 
4
Author: Thomas Schwinge <thomas@codesourcery.com>
 
5
Origin: upstream, https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=d47642c93dda6344af12458e4e26587f3353fb44
 
6
 
 
7
diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk
 
8
index 6d27685..15bfdfb 100644
 
9
--- a/gdb/reply_mig_hack.awk
 
10
+++ b/gdb/reply_mig_hack.awk
 
11
@@ -92,6 +92,12 @@ parse_phase == 5 && /^[ \t]*mig_external kern_return_t/ {
 
12
 }
 
13
 
 
14
 parse_phase == 5 && /^#if[ \t]TypeCheck/ {
 
15
+  # Keep going if we have not yet collected the type check structures.
 
16
+  if (num_checks == 0)
 
17
+    {
 
18
+      print; next;
 
19
+    }
 
20
+
 
21
   # The first args type checking statement; we need to insert our chunk of
 
22
   # code that bypasses all the type checks if this is an error return, after
 
23
   # which we're done until we get to the next function.  Handily, the size