diffstat of debian/ for gdb_7.10-1 gdb_7.11.1-0ubuntu1~16.5 changelog | 1392 ++++++++---- control | 77 control.in | 77 gdb-doc.doc-base.gdb | 15 gdb-doc.doc-base.stabs | 15 gdb-doc.info | 2 gdb-doc.lintian-overrides | 1 gdb-python2.install | 2 gdb-python2.menu | 3 gdb64.lintian-overrides | 2 gdb64.postinst | 13 patches/CVE-2016-2226.patch | 114 patches/CVE-2016-4487_4488.patch | 65 patches/CVE-2016-4489.patch | 51 patches/CVE-2016-4490.patch | 286 ++ patches/CVE-2016-4491-1.patch | 361 +++ patches/CVE-2016-4491-2.patch | 104 patches/CVE-2016-4491-3.patch | 92 patches/CVE-2016-4492_4493.patch | 96 patches/CVE-2016-6131.patch | 237 ++ patches/Segmentation-fault-on-add-symbol-file-command.patch | 19 patches/elf-auxv-diff | 37 patches/fix-backtrace.diff | 11 patches/gdb-strings.patch | 13 patches/ptrace-error-verbosity.patch | 26 patches/series | 16 rules | 119 - source/lintian-overrides | 3 28 files changed, 2655 insertions(+), 594 deletions(-) diff -Nru gdb-7.10/debian/changelog gdb-7.11.1/debian/changelog --- gdb-7.10/debian/changelog 2015-09-02 02:06:27.000000000 +0000 +++ gdb-7.11.1/debian/changelog 2017-06-09 18:29:51.000000000 +0000 @@ -1,3 +1,126 @@ +gdb (7.11.1-0ubuntu1~16.5) xenial-security; urgency=medium + + * SECURITY UPDATE: integer overflow in string_appends + - debian/patches/CVE-2016-2226.patch: check for overflow in + libiberty/cplus-dem.c, added xmalloc_failed to + gdb/common/common-utils.c. + - CVE-2016-2226 + * SECURITY UPDATE: use-after-free vulberabilities + - debian/patches/CVE-2016-4487_4488.patch: set bsize and ksize in + libiberty/cplus-dem.c, added test to + libiberty/testsuite/demangle-expected. + - CVE-2016-4487 + - CVE-2016-4488 + * SECURITY UPDATE: integer overflow in gnu_special + - debian/patches/CVE-2016-4489.patch: handle case where consume_count + returns -1 in libiberty/cplus-dem.c. + - CVE-2016-4489 + * SECURITY UPDATE: integer overflow after sanity checks + - debian/patches/CVE-2016-4490.patch: parse numbers as integer instead + of long in libiberty/cp-demangle.c, added test to + libiberty/testsuite/demangle-expected. + - CVE-2016-4490 + * SECURITY UPDATE: denial of service via infinite recursion + - debian/patches/CVE-2016-4491-1.patch: limit recursion in + include/demangle.h, libiberty/cp-demangle.c, libiberty/cp-demint.c, + added test to libiberty/testsuite/demangle-expected. + - debian/patches/CVE-2016-4491-2.patch: limit more recursion in + libiberty/cp-demangle.c. + - debian/patches/CVE-2016-4491-3.patch: initialize d_printing in + gdb/cp-name-parser.y, libiberty/cp-demangle.c. + - CVE-2016-4491 + * SECURITY UPDATE: buffer overflow in do_type + - debian/patches/CVE-2016-4492_4493.patch: properly handle large values + and overflow in libiberty/cplus-dem.c, added test to + libiberty/testsuite/demangle-expected. + - CVE-2016-4492 + - CVE-2016-4493 + * SECURITY UPDATE: denial of service via infinite recursion + - debian/patches/CVE-2016-6131.patch: prevent infinite recursion in + libiberty/cplus-dem.c, added test to + libiberty/testsuite/demangle-expected. + - CVE-2016-6131 + + -- Marc Deslauriers Fri, 09 Jun 2017 10:41:47 -0400 + +gdb (7.11.1-0ubuntu1~16.04) xenial-updates; urgency=medium + + * SRU: LP: #1588066, backport 7.11.1 to 16.04 LTS. + + -- Matthias Klose Thu, 02 Jun 2016 00:09:52 +0200 + +gdb (7.11.1-0ubuntu1) yakkety; urgency=medium + + * New upstream bug fix release. + - Fix PR gdb/19828, PR gdb/20045, PR gdb/18077, PR gdb/20039, + PR python/20037, PR remote/19840, PR gdb/19858, PR gdb/19829, + PR gdb/19676. + + -- Matthias Klose Wed, 01 Jun 2016 17:05:58 +0200 + +gdb (7.11-0ubuntu1) xenial; urgency=medium + + * New upstream release. + + -- Matthias Klose Wed, 24 Feb 2016 18:27:39 +0100 + +gdb (7.10.90.20160220-0ubuntu1) xenial; urgency=medium + + * Snapshot, taken from the gdb-7.11 branch. + * Build again the pdf docs with fixed texinfo. + * Fix OverflowError in backtrace command on 32bit kernels. LP: #1513922. + + -- Matthias Klose Sat, 20 Feb 2016 17:52:18 +0100 + +gdb (7.10.90.20160215-0ubuntu2) xenial; urgency=medium + + * Don't build the pdf docs, broken with recent texinfo. + + -- Matthias Klose Mon, 15 Feb 2016 20:50:26 +0100 + +gdb (7.10.90.20160215-0ubuntu1) xenial; urgency=medium + + * Snapshot, taken from the gdb-7.11 branch. + + -- Matthias Klose Mon, 15 Feb 2016 17:40:33 +0100 + +gdb (7.10.1-0ubuntu1) xenial; urgency=medium + + * New upstream release. + + -- Matthias Klose Sat, 16 Jan 2016 11:33:19 +0100 + +gdb (7.10-1ubuntu2) wily; urgency=medium + + * Fix build dependencies on i386 and powerpc for gdb64. + + -- Matthias Klose Sun, 13 Sep 2015 14:59:07 +0200 + +gdb (7.10-1ubuntu1) wily; urgency=medium + + * Merge with Debian; remaining changes: + * Remaining changes: + - Keep building the gdb64 package. + - Build from the upstream sources. + - Build the gdb-doc package. + - Include the man pages in the gdb package. + - Build-depend on gcj-jdk. + - Drop build dependency on python-dev. + - Additional patches branch-updates, gdb-strings, ptrace-error-verbosity, + ppc64el-gdbserver, ppc64el-attach-jvm. + - Don't build a gdb-python2 package. + - Configure with babeltrace on ppc64 and ppc64el. + - gdb: Add a replaces to gdb-doc, which used to ship the manual pages. + - Again, stop building the gdb-minimal package, not used anymore on any + image. + - Add build dependencies for the gdb-doc package. + - Make gdb Multi-Arch: allowed again. + - gdb: Recommend libcc1-0. + * Update to the 7.9 branch 20150321. + - Fix undefined behavior in TUI's TAB expansion. + + -- Matthias Klose Sun, 13 Sep 2015 13:47:01 +0200 + gdb (7.10-1) unstable; urgency=medium * Imported Upstream version 7.10: @@ -36,24 +159,52 @@ -- Hector Oron Wed, 02 Sep 2015 04:04:33 +0200 -gdb (7.9.1-1) unstable; urgency=medium +gdb (7.10-0ubuntu1) wily; urgency=medium + + * Gdb 7.10. - * Imported Upstream version 7.9.1: - - This is a minor corrective release over GDB 7.9, fixing the following issues: - + PR build/18033 (C++ style comment used in gdb/iq2000-tdep.c and gdb/compile/compile-*.c) - + PR build/18298 ("compile" command cannot find compiler if tools configured with triplet instead of quadruplet) - + PR tui/18311 (Random SEGV when displaying registers in TUI mode) - + PR python/18299 (exception when registering a global pretty-printer in verbose mode) - + PR python/18066 (argument "word" seems broken in Command.complete (text, word)) - + PR pascal/17815 (Fix pascal behavior for class fields with testcase) - + PR python/18285 (ptype expr-with-xmethod causes SEGV) - * d/p/load-versioned-libcc1.patch: - - load libcc1.so.0 instead unversioned file. - * d/p/Segmentation-fault-on-add-symbol-file-command.patch: - - fix: segfault on add-symbol-file - * d/patches: refresh + -- Matthias Klose Sun, 30 Aug 2015 14:40:47 +0200 - -- Hector Oron Wed, 19 Aug 2015 21:27:17 +0200 +gdb (7.9.90.20150809-0ubuntu1) wily; urgency=medium + + * Snapshot, taken from the 7.10 branch. + + -- Matthias Klose Mon, 10 Aug 2015 00:35:59 +0200 + +gdb (7.9.1-0ubuntu1) wily; urgency=medium + + * New upstream (bug fix) version. + + -- Matthias Klose Wed, 22 Jul 2015 18:33:52 +0200 + +gdb (7.9-1ubuntu1) vivid; urgency=medium + + * Merge in the Debian packaging changes for 7.9. + * Remaining changes: + - Keep building the gdb64 package. + - Build from the upstream sources. + - Build the gdb-doc package. + - Include the man pages in the gdb package. + - Build-depend on gcj-jdk. + - Drop build dependency on python-dev. + - Additional patches branch-updates, gdb-strings, ptrace-error-verbosity, + ppc64el-gdbserver, ppc64el-attach-jvm. + - Don't build a gdb-python2 package. + - Configure with babeltrace on ppc64 and ppc64el. + - gdb: Add a replaces to gdb-doc, which used to ship the manual pages. + - Again, stop building the gdb-minimal package, not used anymore on any + image. + - Add build dependencies for the gdb-doc package. + - Make gdb Multi-Arch: allowed again. + * gdb: Suggest libcc1-0 (should really be a recommends, but it is + still in universe, same as the needed gcc-5/gccgo-5). + * Don't look for the libcc1.so symlink, but for the real library name. + * Fix the regexp for searching the compiler, so that it recognizes + triplets as well. + * Update to the 7.9 branch 20150321. + - Fix undefined behavior in TUI's TAB expansion. + + -- Matthias Klose Sat, 21 Mar 2015 17:07:37 +0100 gdb (7.9-1) experimental; urgency=medium @@ -99,18 +250,45 @@ -- Hector Oron Thu, 19 Mar 2015 13:18:58 +0100 -gdb (7.8.2-1) experimental; urgency=medium +gdb (7.9-0ubuntu1) vivid; urgency=medium + + * GDB 7.9 release. + + -- Matthias Klose Wed, 25 Feb 2015 22:27:54 +0100 + +gdb (7.8.2-0ubuntu1) vivid; urgency=medium - * Imported Upstream version 7.8.2 - - This is a minor corrective release over GDB 7.8.1, fixing the following issues: - + PR symtab/17642 ([7.8 regression] internal-error: resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type) > 0' failed.) - + PR binutils/17677 (_bfd_elf_get_synthetic_symtab runs in O(n^2) complexity) - + PR gdb/16215 (SPARC: can't compute CFA for this frame) - + PR gdb/17525 (target-async: breakpoint commands not executed when program run from -x script) - + PR cli/17828 ([7.8 regression] -batch -ex r breaks terminal) - * d/{control*,gdb64*,rules}: drop gdb64 support. + * GDB 7.8.2 release. - -- Hector Oron Thu, 22 Jan 2015 02:24:52 +0100 + -- Matthias Klose Tue, 20 Jan 2015 20:34:21 +0100 + +gdb (7.8.1-1ubuntu2) vivid; urgency=medium + + * Fix PR ld/17677, performance regression compared to 7.7. + LP: #1388999. + + -- Matthias Klose Tue, 09 Dec 2014 10:25:17 +0100 + +gdb (7.8.1-1ubuntu1) vivid; urgency=medium + + * Merge with Debian; remaining changes: + - Build from the upstream sources. + - Build the gdb-doc package. + - Include the man pages in the gdb package. + - Build-depend on gcj-jdk. + - Drop build dependency on python-dev. + - Additional patches branch-updates, gdb-strings, ptrace-error-verbosity, + ppc64el-gdbserver, ppc64el-attach-jvm. + - Don't build a gdb-python2 package. + - Configure with babeltrace on ppc64 and ppc64el. + - gdb: Add a replaces to gdb-doc, which used to ship the manual pages. + - Again, stop building the gdb-minimal package, not used anymore on any + image. + - Add build dependencies for the gdb-doc package. + - Make gdb Multi-Arch: allowed again. + * Upstream fixes LP: #1348275. + + -- Matthias Klose Thu, 20 Nov 2014 09:28:37 +0100 gdb (7.8.1-1) experimental; urgency=medium @@ -152,6 +330,44 @@ -- Hector Oron Sun, 09 Nov 2014 16:29:31 +0100 +gdb (7.8-1ubuntu4) utopic; urgency=medium + + * Make gdb Multi-Arch: allowed again. + + -- Matthias Klose Thu, 09 Oct 2014 08:23:49 +0200 + +gdb (7.8-1ubuntu3) utopic; urgency=medium + + * Add build dependencies for the gdb-doc package. + + -- Matthias Klose Tue, 07 Oct 2014 18:20:50 +0200 + +gdb (7.8-1ubuntu2) utopic; urgency=medium + + * Drop build dependency on gccgo (universe). + + -- Matthias Klose Tue, 07 Oct 2014 17:48:27 +0200 + +gdb (7.8-1ubuntu1) utopic; urgency=medium + + * Merge with Debian; remaining changes: + - Build from the upstream sources. + - Build the gdb-doc package. + - Include the man pages in the gdb package. + - Build-depend on gcj-jdk. + - Drop build dependency on python-dev. + - Additional patches branch-updates, gdb-strings, ptrace-error-verbosity, + ppc64el-gdbserver, ppc64el-attach-jvm. + * Don't build a gdb-python2 package. + * Configure with babeltrace on ppc64 and ppc64el. + * gdb: Add a replaces to gdb-doc, which used to ship the manual pages. + LP: #1370690. + * Build-depend on gccgo to run the Go tests during the build. + * Again, stop building the gdb-minimal package, not used anymore on any + image. + + -- Matthias Klose Tue, 07 Oct 2014 13:04:14 +0200 + gdb (7.8-1) experimental; urgency=medium [ Samuel Bronson ] @@ -220,272 +436,135 @@ -- Samuel Bronson Tue, 26 Aug 2014 15:34:03 -0400 -gdb (7.7.1+dfsg-3) unstable; urgency=medium +gdb (7.8-0ubuntu2) utopic; urgency=medium - * d/p/restore-run.1.patch: Temporary patch to fix sim FTBFS. - Turns out that without sim/common/run.1, sim fails to build. - This doesn't have any cover texts or invariant sections, - so in this patch we simply add it back. - (It turns out that sim doesn't support x86.) - * d/sanitize-gdb.sh: In future, only strip manpages from gdb/ subtree. - * d/NEWS: Add warning about impending switch to Python 3 + * Update gdb from the 7.8 release branch. + - Fix regression for Linux vDSO in GDB (PR gdb/17407). + - Fix regression, GDB stopped on run with attached process (PR gdb/17347). + - Fix PR guile/17367, PR guile/17247. + - Fix crash on Python frame filters with unreadable arg. + - Fix xmethod Python so that it works with Python3. + - Fix 'gcore' with exited threads. + - Fix Fix build/17104, build configured with --with-babeltrace. + - Aarch64: Make CPSR a 32-bit register again in the target description. + * Build-depend on binutils 2.24.51.20141001 for running the tests. + LP: #1365664. + * Fix gdbserver conditionals on ppc64le. LP: #1367832. + * Fix attaching to a java process on ppc64el. - -- Samuel Bronson Thu, 14 Aug 2014 18:16:50 -0400 + -- Matthias Klose Wed, 01 Oct 2014 22:41:51 +0200 -gdb (7.7.1+dfsg-2) unstable; urgency=medium +gdb (7.8-0ubuntu1) utopic; urgency=medium - * Fix FTBFS on non-x86 trying to install unbuilt libinproctrace.so + * gdb-7.8 release. - -- Samuel Bronson Tue, 12 Aug 2014 16:21:03 -0400 + -- Matthias Klose Thu, 31 Jul 2014 21:54:05 +0200 -gdb (7.7.1+dfsg-1) unstable; urgency=medium +gdb (7.7.91.20140723-0ubuntu1) utopic; urgency=medium - [ Héctor Orón Martínez ] - * d/changelog: replace nickname by real name in previous block + * Snapshot, taken from the 7.8 branch. - [ 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) + -- Matthias Klose Wed, 23 Jul 2014 16:01:10 +0200 - [ 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. +gdb (7.7.1-0ubuntu5) utopic; urgency=medium - [ Hector Oron ] - * Rename upstream tarball to not conflict with the one in archive. + * Fix regression introduced in previous upload, again supporting + powerpc64le in the multilib build. LP: #1233185. - -- Samuel Bronson Sat, 09 Aug 2014 13:11:35 -0400 + -- Matthias Klose Wed, 23 Jul 2014 15:19:13 +0200 -gdb (7.7.1-2) unstable; urgency=medium +gdb (7.7.1-0ubuntu4) utopic; urgency=medium - [ Samuel Bronson ] - * Don't require Java stuff just to gather test results we don't look at. - * Disable babeltrace; it doesn't build everywhere. - Thanks to Julien Cristau for the heads up. - * Go back to python2; it's causing people trouble and Matthias Klose never - actually explained the need. - Thanks to Ben Longbons for the report and Jakub Wilk for corroborating it. - (Closes: #748711, Reopens: #727003) + [ Martin Pitt ] + * debian/rules: Revert configuring with "MULTIARCH_TARGET=all" and go back + to static list of targets. "all" is broken and does not work at least on + ARM. (LP: #1233185) - -- Hector Oron Wed, 18 Jun 2014 01:42:25 +0200 + -- Brian Murray Mon, 30 Jun 2014 15:28:20 -0700 -gdb (7.7.1-1) unstable; urgency=medium +gdb (7.7.1-0ubuntu3) utopic; urgency=medium - [ Samuel Bronson ] - * Switch to .xz for our ".orig" tarballs - * Imported Upstream version 7.7 - - GDB 7.7 brings new targets, features and improvements, including: - * C++: - ** GDB now implements the 'typeid' operator. - ** Exception Catchpoints can now filter by type. - * Python scripting: - ** Frame filters and frame decorators have been added. - ** Temporary breakpoints are now supported. - ** Line tables representation has been added. - ** New attribute 'parent_type' for gdb.Field objects. - ** gdb.Field objects can be used as subscripts on gdb.Value objects. - ** New attribute 'name' for gdb.Type objects. - * New commands: - ** show configuration - ** catch rethrow - ** info exceptions [REGEXP] - ** remove-symbol-file [FILENAME | -a ADDRESS] - ** maint check-psymtabs - ** maint check-symtabs - ** maint expand-symtabs - ** maint set|show per-command [space | time | symtab] - * New options: - ** set|show debug symfile off|on - ** set|show print raw frame-arguments - ** set|show remote trace-status-packet - ** set|show debug nios2 - ** set|show range-stepping - ** set|show startup-with-shell - ** set|show code-cache - For all options that interpret 0 or -1 as meaning "unlimited", - the literal 'unlimited' can ot be used. - * New convenience variables/functions: - ** $_exception - ** $_exitsignal - ** $_isvoid - * GDB/MI: - ** All MI commands now accept an optional "--language" option. - ** "undefined-command" error code provided in "^error" result - records when trying to run a non-existing command. - ** New commands -catch-assert and -catch-exceptions - ** New command -info-ada-exceptions - ** New command -info-gdb-mi-command - ** New command -dprintf-insert - ** New command -trace-frame-collected - ** -trace-save CTF (Common Trace Format) support. - ** -data-list-register-values, -stack-list-locals, -stack-list-arguments - and -stack-list-variables optional "--skip-unavailable" option. - ** -exec-run optional "--start" option. - * Remote Protocol: - ** Target-assigned range stepping support. - GDBserver implements this feature on x86/x86_64 GNU/Linux targets. - ** vCont new 'r' action. - ** qXfer:libraries-svr4:read's annex used to pass argument list. - * New target configurations: - ** Nios II ELF nios2*-*-elf - ** Nios II GNU/Linux nios2*-*-linux - ** Texas Instruments MSP430 msp430*-*-elf - * GDB Windows x64 unwinding data support. - * SystemTap SDT probes support on AArch64 GNU/Linux. - * The 'tsave' command now supports CTF (Common Trace Format). - * New script gcore, installed in $prefix/bin - * New script contrib/gdb-add-index.sh for adding .gdb_index sections - to binaries. - * Improve arm*-linux record/replay support. - * Removed support for a.out NetBSD and OpenBSD obsolete configurations. - ELF variants of these configurations are kept supported. - * The "set|show remotebaud" commands are deprecated. Use "show|show serial - baud" instead. - - For a complete list and more details on each item, please see the - NEWS file. - * Update patches for new upstream version: - - Drop man-page-args.patch and man-page-order.patch: - Manpages are dead to us now (not DFSG free), and the source is in - texinfo now anyway. - - Drop upstream-arm-catch-syscall.patch and - upstream-print_insn_rl78-workaround.patch: - Already applied upstream. - - Update linuxthreads_signal_handling.patch and - gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch - * d/gdb-minimal.manpages: Remove because manpages are dead to us - * d/rules: - - Update for the new release. - * Don't expect all tests to pass, they never do. - ("make check" finally stopped lying?) - * Adjust for "gcore" getting its source renamed and getting installed - - Other improvements - * Install contrib/ in /usr/share/doc/gdb/ - * Carry over more configure flags to secondary packages, so - e.g. gdb-multiarch can find it's message catalogs - - Nitpicks: - * Replace a $(findstring ...) call with $(filter ...) - (It's probably not all that likely that DEB_BUILD_OPTIONS would contain - an item with nocheck as a substring, but still ...) - * Use --disable-readline; we have our own ... - * d/control: - - Update Vcs-Git/Vcs-Browser URLs + * Fix PR 14963, infinite recursion in the demangler. LP: #1315590. - [ Héctor Orón Martínez ] - * d/control.in, d/rules: add gdb-dbg package. - (closes: #696197) - * d/control.in: update Vcs-* references - * d/control.in: bump standards version, no changes required - * d/compat, d/control.in: bump dh compat to 9 to get build-id based - debug info paths - * d/p/ppc64le.diff: apply upstream patch for ppc64le support - * d/control.in: add ppc64el architecture - - Thanks Frédéric Bonnard for report - (closes: #744204) - * d/control.in: gdb-minimal provides gdb - (closes: #588775) - * d/control.in: gdb recommends gdbserver - (closes: #675623) - * Fix gdb: confusing error message "$HOME/pid: No such file or directory" - (closes: #712671) - * d/p/gdb-glibc-vdso-workaround.patch: - - Work around PR libc/13097 "linux-vdso.so.1" - (closes: #738702) - * d/rules: do not misuse the version field to encode the distro name - (closes: #738331) - * d/copyright: update file to conform DEP5. + -- Matthias Klose Thu, 12 Jun 2014 21:14:58 +0200 - [ Samuel Bronson ] - * d/control.in: Misc fixes, like not building an - "Architecture: all".-dbg package - * d/control: Regenerate after above changes ... - * d/rules: Enable CTF support through babeltrace - * d/rules: Be more specific about which features to build with - * d/control.in, d/control: Drop B-D on libbz2-dev; gdb doesn't want it - * debian/gdbserver.install: Don't install an empty gdbserver manpage either. - * d/watch, d/upstream-signing-key.pgp: Verify sigs; remove dh_make stuff - * d/control.in, d/control: Make gdb and gdb-minimal conflict as policy says - * d/include-binary-files: Appease dpkg-source about the upstream key ... - * d/patches/python-config.patch: Add header, fix typo pointed out upstream - * d/sanitize-gdb.sh: stop filtering gdb-doc, drop all manpages from gdb - * Imported Upstream version 7.7.1 - - GDB 7.7.1 provides the following fixes and improvements to GDB 7.7: - * PR win32/14018 (pc register not available error on Windows) - * PR python/16547 (GDB crashing on gdb.python/py-linetable.exp) - * PR build/16550 (64-bit GDB doesn't build on Solaris) - * PR gdb/16626 (auto-load regression: gdb uses wrong file to test safety) - * PR breakpoints/16292 (GDB oversteps a range in some cases.) - * PR gdb/16575 (stale breakpoint instructions in the code cache) - * PR gdb/16696 (AIX 32-bit cores, high section addresses) - * PR gdb/16721 (Erroneous backtrace on AVR) - * PR gdb/16832 (Erroneous backtrace on avrxmega architectures) - * PR build/16873 (GDB 7.7 does not build with GCC 4.9) - (Closes: #746855) +gdb (7.7.1-0ubuntu2) utopic; urgency=medium - -- Hector Oron Sat, 31 May 2014 11:12:46 +0200 + * Add the ARM change from the gdb-linaro 7.7-2014.05 release. + * Build-depend on systemtap-sdt-test (test dependency). -gdb (7.6.2-1.1) unstable; urgency=medium + -- Matthias Klose Tue, 27 May 2014 16:53:09 +0200 - * Non-maintainer upload. - * Build using python3. Closes: #727003. +gdb (7.7.1-0ubuntu1) utopic; urgency=medium - -- Matthias Klose Sat, 03 May 2014 15:56:03 +0200 + * GDB 7.7.1 release. -gdb (7.6.2-1) unstable; urgency=low + -- Matthias Klose Tue, 13 May 2014 02:23:53 +0200 - * Imported upstream version 7.6.2 - - GDB 7.6.2 provides the following fixes and improvements to GDB 7.6.1: - * PR breakpoint/16251 (AArch64 hardware breakpoint error after fork) - * PR gdb/16303 (GDB 7.6.1 does not work with binutils 2.24 on MIPS16 - and microMIPS) - * d/rules: Revert configuring with "MULTIARCH_TARGET=all" and go back - to static list of targets. "all" is broken and does not work at least on - ARM. (LP: #1233185). Thanks Martin Pitt for report. - (Closes: #725078) - * d/rules: Add aarch64-linux-gnu to multiarch target list. +gdb (7.7-0ubuntu4) utopic; urgency=medium - -- Hector Oron Sat, 18 Jan 2014 14:28:01 +0100 + * re-enable patch that got disabled at some point (LP: #1317136) + - ptrace-error-verbosity.patch: Try to make the PTRACE scope sysctl + more discoverable via a verbose error message when failures happen. -gdb (7.6.1-1) unstable; urgency=low + -- Marc Deslauriers Wed, 07 May 2014 15:46:53 -0400 - [ Samuel Bronson ] - * Imported Upstream version 7.6.1 - - GDB 7.6.1 provides the following fixes and improvements to GDB 7.6: - * PR tdep/15420 (Cannot debug threaded programs on newer versions - of x86-solaris - Solaris 10, Update 10 or later) - * PR remote/15455 (QTro remote packet broken) - * PR build/15476 (Build failure due to incomplete enum type in utils.h) - * PR server/15594 (tls support in 64x32 x86 gdbserver doesn't extend - address to 64 bit) - * PR server/15075 (dprintf inteferes with "next") - * PR server/15434 (dprintf uses a synchronous 'continue' even in - non-stop mode) - * PR tui/14880 (in split register layouts, up results in assertion - failure in value.c) - * PR c++/15519 (GDB 7.6 is 94x slower than GDB 7.5.1 using a certain - core file) - * PR gdb/15837 (GDB prints entry values for local variables) - * PR gdb/15415 (gdb resolves symbolic links when passing argv[0]) - * PR cli/15603 (CTRL-C can no longer interrupt inferior) - * PR gdb/15604 (gdbserver socket leak 7.5 regression) - * Backport ARM Linux `catch syscall' support from my upstream - patch. (Closes: #709937) - - -- Héctor Orón Martínez Tue, 08 Oct 2013 17:23:45 +0000 +gdb (7.7-0ubuntu3) trusty; urgency=medium + + * Rebuild with Python 3.4. + + -- Matthias Klose Wed, 19 Feb 2014 11:41:03 +0100 + +gdb (7.7-0ubuntu2) trusty; urgency=medium + + * Don't encode the distribution name into the version string. + + -- Matthias Klose Sat, 08 Feb 2014 20:23:43 +0100 + +gdb (7.7-0ubuntu1) trusty; urgency=medium + + * GDB 7.7 release. + + -- Matthias Klose Fri, 07 Feb 2014 18:59:59 +0100 + +gdb (7.6.50.20140106-0ubuntu1) trusty; urgency=medium + + * New upstream snapshot. + + -- Matthias Klose Mon, 06 Jan 2014 11:01:33 +0100 + +gdb (7.6.50.20131218-0ubuntu1) trusty; urgency=medium + + * New upstream snapshot. + * Configure with --disable-werror. + * Handle Debian's local elf.h / sys/auxv.h header reorganization. + + -- Matthias Klose Wed, 18 Dec 2013 13:50:41 +0100 + +gdb (7.6.50.20131214-0ubuntu1) trusty; urgency=medium + + * New upstream snapshot. + + -- Matthias Klose Sat, 14 Dec 2013 12:31:29 +0100 + +gdb (7.6-5ubuntu2) saucy; urgency=low + + * Re-apply changes dropped in last merge: + - gdb suggest gdbserver, instead of depending on it. + - gdb depends on libpython3-stdlib. + + -- Matthias Klose Tue, 30 Jul 2013 09:24:29 +0200 + +gdb (7.6-5ubuntu1) saucy; urgency=low + + * Merge with Debian; remaining changes: + - Add Multi-arch: allowed field to gdb. + - gdb-strings.patch: Fix typo in gdb/remote.c. + - ptrace-error-verbosity.patch: Try to make the PTRACE scope sysctl + more discoverable via a verbose error message when failures happen. + * Build using python3, recommend python3. + + -- Matthias Klose Sun, 28 Jul 2013 10:55:50 +0200 gdb (7.6-5) unstable; urgency=low @@ -622,100 +701,60 @@ -- Héctor Orón Martínez Sun, 19 May 2013 00:14:02 +0200 -gdb (7.5.1-1) experimental; urgency=low +gdb (7.6~20130417-0ubuntu1) raring; urgency=low - * New upstream release (Closes: #685388). - * New upstream features: - [7.5] - - Go language support. - - New targets (x32 ABI, microMIPS, Renesas RL78, HP OpenVMS ia64). - - More Python scripting improvements. - - SDT (Static Defined Tracing) probes support with SystemTap probes. - - GDBserver improvements (stdio connections, target-side evaluation - of breakpoint conditions, remote protocol improvements). - - Other miscellaneous improvements (ability to stop when a shared - library is loaded/unloaded, dynamic printf, etc). - - Reverse debugging on ARM. - - The binary "gdbtui" has been abandoned and can no longer be built. - Use "gdb -tui" instead. - - Better handling of symlinked libraries, like ld.so (Closes: #680173). - [7.5.1] - - Offer some helpful tips when detecting a file/script for which - auto-loading has been declined. - - Special handling of program's '.exe' suffix when searching for - auto-load-able scripts. - * Upstream bugfixes: - [7.5.1] - - strict-aliasing warnings in libiberty/md5.c generated by GCC 4.7. - - An "Attempt to dereference a generic pointer" error (-var-create). - This error only occurs when the "print object" setting is "on". - - Backtrace problems on x32 (PR backtrace/14646). - - next/step/finish problems on x32 (PR gdb/14647). - - A "malformed linespec error: unexpected keyword, [...]" error - (PR breakpoints/14643) - - GDB crash while stepping through powerpc (32bits) code. - - A failed assertion in linux_ptrace_test_ret_to_nx. - - A "!frame_id_inlined_p (frame_id)" failed assertion. - - A "No more reverse-execution history." error during reverse "next" - execution (PR 14548). - - Incomplete command descriptions in "apropos" output. - - PR gdb/14494 (a GDB crash difficult to characterize). - - A build warning in allocate_symtab when building on x86_64-windows. - * Updated patches: - - Tweaked man-page-order.patch and linuxthreads_signal_handling.patch - so they apply to new upstream source. - - Dropped m68k-thread-debugging.patch; upstream already had it. - - Dropped debian-changes-7.3.50~cvs20110627-1 and gdbinit-ownership.patch: - upstream closed [CVE-2005-1705] with a new option "set auto-load - safe-path" (Closes: #694256). - * Drop libgdb-dev, since libgdb.a was dropped upstream. - * Update architecture list for gdbserver. - * Fix documentation symlinking stuff: - - Fix manpage symlinks (Closes: #595179). - - Add "Depends: gdb (= ${binary:Version})" where needed for symlinked - doc directories. - - Migrate gdb-source to a real doc-directory, not a symlink, to avoid - having an :all package depend on a fixed version of an :any package, - which wouldn't survive binNMUs. - * Adjust lintian overrides: - - Use wildcards for dates of unused readline/support/config.{guess,sub}. - - gdb64 is *supposed* to be built for another architecture. - * debian/control: Drop redundant "Section:" fields. - * Configure gdb-multiarch with --enable-64-bit-bfd so it supports 64-bit - targets (Closes: #699582). - * Recommend libc-dbg (Closes: #246315, #309460). - * Bump Standards-Version in debian/control.in too, so it *stays* bumped. - * Add support for debug info compressed with bzip2 and lzma/xz: - Build-Depend on libbz2-dev and liblzma-dev. - * Add myself to Uploaders. - - -- Samuel Bronson Wed, 20 Feb 2013 17:22:51 -0500 + * gdb 7.6 snapshot, taken from the 7.6 release branch. LP: #1166304. + * Build again with Python2, not all pretty printers are ready for 3.x. -gdb (7.4.1+dfsg-0.1) unstable; urgency=low + -- Matthias Klose Thu, 18 Apr 2013 00:00:23 +0200 - * Non-maintainer upload. - * Fix debian/sanitize-gdb.sh to use bash. - * Run that script to get the expected dfsg-compliant tarball. - (Closes: #698074) +gdb (7.6~20130408-0ubuntu1) raring; urgency=low + + * gdb 7.6 snapshot, taken from the 7.6 release branch. LP: #1166304. + - Adds support for Aarch64. + * Build using Python3. + + -- Matthias Klose Mon, 08 Apr 2013 16:06:17 +0200 + +gdb (7.5-0ubuntu4) raring; urgency=low + + * Use python-config to pick up the python version. + * Build-depend on libpython-dev, python:any. + + -- Matthias Klose Thu, 20 Dec 2012 16:21:32 +0100 + +gdb (7.5-0ubuntu3) raring; urgency=low + + * Remove excessive fclose in gdbinit patch (LP: #1069897). + + -- Dr. David Alan Gilbert Sat, 24 Nov 2012 16:54:53 +0000 + +gdb (7.5-0ubuntu2) quantal; urgency=low - -- David Prévot Sun, 27 Jan 2013 12:18:15 -0400 + [ Mark Russell ] + * Add Multi-arch: allowed field to gdb. (LP: #1036834) -gdb (7.4.1-3) unstable; urgency=low + -- Adam Stokes Thu, 16 Aug 2012 14:29:05 -0400 - * Fix typo: replace mutliarch by multiarch. +gdb (7.5-0ubuntu1) quantal; urgency=low - -- Hector Oron Fri, 05 Oct 2012 08:58:19 +0000 + * New upstream release 7.5. + * Backport fix for PR gdb/14365. LP: #1006860. + * Stop building libgdb-dev (libgdb.a not built anymore). -gdb (7.4.1-2) unstable; urgency=low + -- Matthias Klose Wed, 22 Aug 2012 17:39:32 +0200 - * Fix empty doc directory when upgrading from squeeze to wheezy. - (Closes: #684375) - * d/p/m68k-thread-debugging.patch: - - Add thread debugging function for m68k. Taken from upstream. - Thanks Thorsten Glaser. - * d/control: bump standars version to 3.9.3 +gdb (7.4-2012.06-0ubuntu1) quantal; urgency=low - -- Hector Oron Wed, 19 Sep 2012 21:16:17 +0000 + * Update to the Linaro 7.4-2012.06 release. + + -- Matthias Klose Thu, 14 Jun 2012 09:38:38 +0200 + +gdb (7.4-2012.04-0ubuntu3) quantal; urgency=low + + * Merge packaging bits from Debian unstable. + + -- Matthias Klose Tue, 12 Jun 2012 12:56:30 +0200 gdb (7.4.1-1.1) unstable; urgency=low @@ -741,114 +780,156 @@ -- Hector Oron Thu, 26 Apr 2012 18:26:18 +0200 -gdb (7.4really-1) unstable; urgency=low +gdb (7.4-2012.04-0ubuntu2) precise-proposed; urgency=low - * New upstream release: - - Many Python scripting improvements - - Better support for ambiguous linespecs - - Masked watchpoints - - Tracepoint support improvements - - Support for Texas Instruments TMS320C6x (tic6x-*-*) - - A Renesas RL78 simulator (rl78-*-elf) - - Some minor Remote protocol extensions and GDB/MI changes - * Temporarily disable gdb-multiarch and gdb-dbg. - - -- Hector Oron Sat, 28 Jan 2012 00:41:20 +0100 - -gdb (7.4-1~cvs20111117.2) experimental; urgency=low - - * Add build dependency on lib64ncurses5-dev for multilib targets. - - -- Hector Oron Fri, 18 Nov 2011 19:35:17 +0000 - -gdb (7.4-1~cvs20111117.1) experimental; urgency=low - - * Add accidentally dropped armhf to architecture list - * Add GDB debug package (Closes: #592512, #490049) - * Provide GDB multiarch package (Closes: #610519) - - Add gdb-multiarch package supporting extra bfd targets similarly to - binutils-multiarch; the package is constructed much like gdb64 except that - it's build with the gdb configure flags and --enable-targets=all for now. - - Thanks Loïc Minier. - * Fix conflicts between cross and regular gdb (Closes: #603347) - - Pass --gdb-datadir=/usr/share/gdb-$triplet when building a cross-gdb and - update gdb.install sed snippet to match; fixes conflict with gdb; - - Thanks Loïc Minier. - - -- Hector Oron Thu, 17 Nov 2011 18:37:45 +0000 - -gdb (7.4-1~cvs20111117) experimental; urgency=low - - * CVS snapshot release (20111117) - * debian/control.in: Stop using deprecated type-handling Build-Depends - Thanks Guillem Jover. (Closes: #639164) - * debian/control.in: Mention D language support in description - - Also mention other supported languages. (Closes: #595892) - * debian/control.in: Add Vcs-Git, Vcs-Browser and Homepage fields. - * debian/control.in: Bump Standards-Version + * debian/control: enabling gdbserver package for armhf (LP: #989153) - -- Hector Oron Wed, 24 Aug 2011 20:02:33 +0100 + -- Ricardo Salveti de Araujo Thu, 26 Apr 2012 15:59:49 -0300 -gdb (7.3-1) unstable; urgency=low +gdb (7.4-2012.04-0ubuntu1) precise-proposed; urgency=low - * New upstream release, including: - - Initial OpenCL C language support has been added - - C++ enhancements: - * Template parameters are now in scope when debugging in an - instantiation - * The motion commands "next", "finish", "until", and "advance" now - work better when exceptions are thrown - - Improved Python support, enhancing the existing APIs as well as - introducing new ones. - - Improved thread debugging support: - * GDB now understands thread names - * A new command "thread find [REGEXP]" has been added - - GDBserver enhancements: - * Support for PowerPC LynxOS (versions 4.x and 5.x) and i686 LynxOS - (version 5.x) - * Support for Blackfin Linux - - Support for reading and writing a new .gdb_index section, - containing a fast index of DWARF debugging info - - Various GDB/MI improvements - - Support for ia64 HP-UX (ia64-*-hpux*) has been added - - Target support for Analog Devices, Inc. Blackfin Processors (bfin-*) - - GNU simulator improvements: - * New --map-info flag - * CFI flash simulation support - - Other worthy improvments (in random order): - * The "catch syscall" command is now available on mips-linux. - * New GDB Commands: "set directories" - * Support for using labels in linespecs (Eg you can use "advance label") - * The "watch" command now accepts an optional "-location" argument - * Thread debugging of core dumps now supported on GNU/Linux - * Ranged breakpoints support (PowerPC BookE running Linux 2.6.34 or later) - * Support for Ada task switching inside programs using the Ravenscar profile - - See gdb/NEWS for more detailed information. - - -- Hector Oron Tue, 23 Aug 2011 11:13:36 +0100 - -gdb (7.3.50~cvs20110627-2) experimental; urgency=low - - * Restrict prelink build depend to linux-any architectures. - * Fix cross-build target: - - Set DEB_BUILD_GNU_TYPE and use it for --build= instead of - DEB_HOST_GNU_TYPE; Thanks Loïc Minier (Closes: #601028) - * Add preliminary support for armhf. - - Thanks Konstantinos Margaritis (Closes: #596953) - - -- Hector Oron Tue, 05 Jul 2011 22:37:20 +0100 - -gdb (7.3.50~cvs20110627-1) experimental; urgency=low - - * Upstream pre-release based on CVS date 20110627. - * Drop Daniel Jacobowitz as Maintainer. - - Thanks for all this years. - * Add myself as Maintainer. - * Bump standards version. - * Add local-option for unapply-patches. - * Add prelink build depend, needed for tests run. + * Update to the Linaro 7.4-2012.04 release. LP: #984994. + + -- Matthias Klose Wed, 18 Apr 2012 17:08:57 +0200 + +gdb (7.4-2012.02-0ubuntu2) precise; urgency=low + + * Update and re-enable the gdb-7.2-gcore-relro-writer patch (Steve Beattie). + LP: #954714. + + -- Matthias Klose Fri, 16 Mar 2012 01:32:38 +0100 + +gdb (7.4-2012.02-0ubuntu1) precise; urgency=low + + * Update to the Linaro 7.4-2012.02 release. + * Disable the gdb-7.2-gcore-relro-writer patch (needs an update). + + -- Matthias Klose Tue, 13 Mar 2012 20:12:36 +0100 + +gdb (7.4-0ubuntu1) precise; urgency=low + + * gdb 7.4 release. + + -- Matthias Klose Tue, 24 Jan 2012 11:23:25 +0100 + +gdb (7.3.92-0ubuntu3) precise; urgency=low + + * Fix PR 9538 (handle debuginfo for symlinked files), taken from the trunk. + + -- Matthias Klose Tue, 24 Jan 2012 11:08:40 +0100 + +gdb (7.3.92-0ubuntu2) precise; urgency=low + + * Build-depend on lib64ncurses5-dev [i386 powerpc s390 sparc]. + + -- Matthias Klose Sat, 21 Jan 2012 01:45:54 +0100 + +gdb (7.3.92-0ubuntu1) precise; urgency=low + + * gdb-7.4 release candidate 2. + + -- Matthias Klose Fri, 20 Jan 2012 21:26:22 +0100 + +gdb (7.3.1-2011.12-0ubuntu1) precise; urgency=low + + * Update to the Linaro 7.3-2011-12 release. + + -- Matthias Klose Fri, 09 Dec 2011 16:15:50 +0100 + +gdb (7.3-0ubuntu2) oneiric; urgency=low + + * Update to the Linaro 7.3-2011-08 release. + + -- Matthias Klose Thu, 18 Aug 2011 11:00:25 +0200 + +gdb (7.3-0ubuntu1) oneiric; urgency=low + + * New upstream release. + * Update Linaro changes to 7.3-2011-08~. + + -- Matthias Klose Mon, 08 Aug 2011 07:45:57 +0200 + +gdb (7.2-1ubuntu11) natty; urgency=low + + * Fix minor ARM prologue parsing bug (Ulrich Weigand). LP: #684218. + + -- Matthias Klose Thu, 24 Mar 2011 10:41:22 +0100 + +gdb (7.2-1ubuntu10) natty; urgency=low + + * Update with changes from the Linaro 7.2-2011.03-0 release (Ulrich Weigand). + * Configure with --with-pkgversion, don't run post-patches. + + -- Matthias Klose Tue, 15 Mar 2011 16:14:08 +0100 + +gdb (7.2-1ubuntu9) natty; urgency=low + + * Set MULTIARCH_TARGETS similarly to binutils-multiarch to avoid the need + for users to specify which actual target they care about. + + -- Loïc Minier Tue, 08 Mar 2011 14:31:09 +0100 + +gdb (7.2-1ubuntu8) natty; urgency=low + + * Add gdb-multiarch package supporting extra bfd targets similarly to + binutils-multiarch; the package is constructed much like gdb64 except that + it's build with the gdb configure flags and --enable-targets=all for now. + * New patch, disable-werror-on-coff-tic, fixes build of coff stuff with + gcc-4.5; from upstream mailing-list. + + -- Loïc Minier Tue, 18 Jan 2011 17:44:56 +0100 + +gdb (7.2-1ubuntu7) natty; urgency=low + + * Pass --gdb-datadir=/usr/share/gdb-$triplet when building a cross-gdb and + update gdb.install sed snippet to match; fixes conflict with gdb; + Debian #603347. + + -- Loïc Minier Mon, 17 Jan 2011 17:50:20 +0100 + +gdb (7.2-1ubuntu6) natty; urgency=low + + * Add support to "gcore" command for executables with GNU_RELRO + sections (Debian bug 606667, LP: #680588). + + -- Kees Cook Thu, 09 Dec 2010 19:47:22 -0800 + +gdb (7.2-1ubuntu5) natty; urgency=low + + * Rebuild with python 2.7. + + -- Matthias Klose Thu, 09 Dec 2010 15:09:43 +0100 + +gdb (7.2-1ubuntu4) natty; urgency=low + + * No-change upload to drop upstream changelog. + + -- Martin Pitt Fri, 03 Dec 2010 08:55:48 +0100 + +gdb (7.2-1ubuntu3) maverick-proposed; urgency=low - -- Hector Oron Tue, 28 Jun 2011 10:30:52 +0100 + * Re-add debian/patches/ptrace-error-verbosity.patch that got + accidentally dropped in the 7.2 merge: try to make PTRACE scope + sysctl more discoverable (LP: #667815). + + -- Kees Cook Thu, 28 Oct 2010 07:16:05 -0700 + +gdb (7.2-1ubuntu2) maverick; urgency=low + + * Really disable building the gdb-minimal package. + + -- Matthias Klose Mon, 06 Sep 2010 13:43:20 +0200 + +gdb (7.2-1ubuntu1) maverick; urgency=low + + * Merge with Debian; remaining changes: + - PIE testsuite support. + - Fix some typos in messages. + - Don't build the gdb-minimal package. + - Install symlink to compressed gdb64 manpage. + - Don't install the upstream changelog in gdbserver. + + -- Matthias Klose Mon, 06 Sep 2010 11:43:18 +0200 gdb (7.2-1) unstable; urgency=low @@ -876,6 +957,36 @@ -- Daniel Jacobowitz Tue, 31 Aug 2010 10:57:57 -0400 +gdb (7.1-1ubuntu4) maverick; urgency=low + + * debian/patches/ptrace-error-verbosity.patch: update for new yama path. + + -- Kees Cook Tue, 06 Jul 2010 15:26:03 -0700 + +gdb (7.1-1ubuntu3) maverick; urgency=low + + * Add debian/patches/ptrace-error-verbosity.patch: try to make PTRACE + scope sysctl more discoverable. + + -- Kees Cook Tue, 08 Jun 2010 15:46:44 -0700 + +gdb (7.1-1ubuntu2) lucid; urgency=low + + * Fix TBB TBH decoding in Thumb-2, patch taken from the trunk. + + -- Matthias Klose Thu, 08 Apr 2010 11:48:33 +0200 + +gdb (7.1-1ubuntu1) lucid; urgency=low + + * Merge with Debian; remaining changes: + - PIE testsuite support. + - Fix some typos in messages. + - Don't build the gdb-minimal package. + - Install symlink to compressed gdb64 manpage. + - Don't install the upstream changelog in gdbserver. + + -- Matthias Klose Sat, 20 Mar 2010 14:19:26 +0100 + gdb (7.1-1) unstable; urgency=low * New upstream release, including: @@ -895,6 +1006,45 @@ -- Daniel Jacobowitz Sat, 20 Mar 2010 01:21:29 -0400 +gdb (7.0.90.20100309-0ubuntu2) lucid; urgency=low + + [ Matthias Klose ] + * Snapshot, taken from the 7.1 release branch. + * Adjust patches, remove obsolete patches. + + [ Kees Cook ] + * Rebase PIE testsuite, updates patch series. + + -- Matthias Klose Wed, 10 Mar 2010 01:25:14 +0100 + +gdb (7.0.1-2ubuntu3) lucid; urgency=low + + * On ARM, add support for single-stepping through IF-THEN blocks (taken + from the trunk). + + -- Matthias Klose Tue, 09 Mar 2010 15:37:16 +0100 + +gdb (7.0.1-2ubuntu2) lucid; urgency=low + + * gdb: Make gdbserver a suggestion instead of a dependency. + * gdbserver: Don't install the toplevel upstream changelog. + + -- Matthias Klose Sat, 27 Feb 2010 10:58:31 +0100 + +gdb (7.0.1-2ubuntu1) lucid; urgency=low + + * Merge with Debian; remaining changes: + - debian/rules: on sparc, configure the 64bit build with --disable-werror. + - Work around a build failure on the ia64 buildd. + - PIE support. + - Add patch to handle debug_info less frames better. + - Fix some typos in messages. + - reduce build-id verbosity. + - fixup PPC auxv prototype. + * Don't build the gdb-minimal package. + + -- Matthias Klose Tue, 23 Feb 2010 18:27:19 +0100 + gdb (7.0.1-2) unstable; urgency=low * Add Replaces to the new gdbserver package (Closes: #567925, #568018). @@ -918,6 +1068,34 @@ -- Daniel Jacobowitz Sat, 30 Jan 2010 15:16:35 -0500 +gdb (7.0.1-0ubuntu1) lucid; urgency=low + + * New upstream version. + + -- Matthias Klose Thu, 31 Dec 2009 10:07:48 +0100 + +gdb (7.0-1ubuntu2) lucid; urgency=low + + * [arm] Prevent disassembler from aborting on an invalid Thumb2 instruction, + taken from the trunk. + + -- Matthias Klose Tue, 15 Dec 2009 14:41:05 +0100 + +gdb (7.0-1ubuntu1) lucid; urgency=low + + * Merge with Debian; remaining changes: + - debian/rules: on sparc, configure the 64bit build with --disable-werror. + - Work around a build failure on the ia64 buildd. + - PIE support. + - Add patch to handle debug_info less frames better. + - Fix some typos in messages. + - reduce build-id verbosity. + - fixup PPC auxv prototype. + * Update to the 7.0 branch 20091120. + - Add Thumb2 debugging for armel. + + -- Matthias Klose Fri, 20 Nov 2009 14:48:57 -0600 + gdb (7.0-1) unstable; urgency=low * New upstream release (Closes: #550567). @@ -925,6 +1103,45 @@ -- Daniel Jacobowitz Sun, 11 Oct 2009 17:16:26 -0400 +gdb (7.0-0ubuntu1) karmic; urgency=low + + * 7.0 final release. + - Fix PR gdb/10649. + + -- Matthias Klose Fri, 09 Oct 2009 09:27:53 +0200 + +gdb (6.8.92-0ubuntu1) karmic; urgency=low + + * 7.0 prerelease 2. + + -- Matthias Klose Thu, 01 Oct 2009 15:04:44 +0200 + +gdb (6.8.90.20090918-0ubuntu2) karmic; urgency=low + + * Update gdb-workaround-rh-stack-off.patch: + - reduce build-id verbosity. + - fixup PPC auxv prototype. + + -- Kees Cook Sat, 19 Sep 2009 10:26:41 -0700 + +gdb (6.8.90.20090918-0ubuntu1) karmic; urgency=low + + [ Matthias Klose ] + * Merge with Debian; remaining changes: + - debian/rules: on sparc, configure the 64bit build with --disable-werror. + * Update to the 7.0 release branch. + + [ Kees Cook ] + * Add patches to support PIE, thanks to RH's 6.8.91.20090917 branch: + - gdb-6.3-test-pie-20050107.patch + - gdb-6.5-bz203661-emit-relocs.patch + - gdb-workaround-rh-stack-on.patch (workaround lack of Archer, CRC) + - gdb-6.6-buildid-locate.patch + - gdb-6.3-pie-20050110.patch + - gdb-workaround-rh-stack-off.patch (undo workarounds) + + -- Matthias Klose Sat, 19 Sep 2009 15:38:43 +0000 + gdb (6.8.50.20090628-4) unstable; urgency=low * Mention online documentation in README.Debian (Closes: #537795). @@ -958,6 +1175,31 @@ -- Daniel Jacobowitz Mon, 06 Jul 2009 14:52:31 -0400 +gdb (6.8.50.20090628-1ubuntu3) karmic; urgency=low + + * Refresh PIE support patches to gain analysis of PIE core files. + + -- Kees Cook Tue, 14 Jul 2009 13:20:57 -0700 + +gdb (6.8.50.20090628-1ubuntu2) karmic; urgency=low + + * Replace the gdbtui binary by a shell script. LP: #244065. + * Enable parallel builds. + + -- Matthias Klose Mon, 06 Jul 2009 13:59:42 +0200 + +gdb (6.8.50.20090628-1ubuntu1) karmic; urgency=low + + * Merge with Debian; remaining changes: + - debian/rules: on sparc, configure the 64bit build with --disable-werror. + - Support nocheck and parallel= in DEB_BUILD_OPTIONS. + - lpia fix for running the check target. + - Work around a build failure on the ia64 buildd. + * Disable patches (not yet updated): pie-support-alt, pie-support-tests, + handle-nodebuginfo-better. + + -- Matthias Klose Mon, 06 Jul 2009 09:51:58 +0200 + gdb (6.8.50.20090628-1) unstable; urgency=low * New snapshot from trunk. The experimental packages used the @@ -1039,6 +1281,25 @@ -- Daniel Jacobowitz Fri, 28 Nov 2008 14:28:47 -0500 +gdb (6.8-3ubuntu2) intrepid; urgency=low + + * debian/rules: on sparc, configure the 64bit build with --disable-werror. + * Reapply debian/patches/gdb-cvs-reinit_frame_cache.patch. LP: #196274. + + -- Matthias Klose Tue, 24 Jun 2008 15:42:23 +0200 + +gdb (6.8-3ubuntu1) intrepid; urgency=low + + * Merge with Debian; remaining changes: + - PIE support. + - dwarf2-stack-boundry.diff - security fix for CVE-2006-4146. + - Add patch to handle debug_info less frames better. + - Fix some typos in messages. + * Fix build errors with gcc-4.3. + * TODO: Fix testcases failing with default hardening options. + + -- Matthias Klose Tue, 24 Jun 2008 15:42:23 +0200 + gdb (6.8-3) unstable; urgency=low * Initialize some uninitialized variables (Closes: #479561). @@ -1058,6 +1319,28 @@ -- Daniel Jacobowitz Fri, 02 May 2008 18:28:37 -0400 +gdb (6.8-1ubuntu2) hardy-proposed; urgency=low + + [ Robert Collins ] + * Add patch from Michael Matz to handle debug_info less frames better. + Origin of patch: https://bugzilla.novell.com/show_bug.cgi?id=390722#c25 + (LP: #111869). + + [ Martin Pitt ] + * Port above patch for amd64, too, since it suffers from the same problem. + + -- Robert Collins Mon, 26 May 2008 11:49:07 +0200 + +gdb (6.8-1ubuntu1) hardy; urgency=low + + * Merge with Debian; remaining changes: + - PIE support. + - dwarf2-stack-boundry.diff - security fix for CVE-2006-4146. + * Remove patches merged upstream. + * Update pie-support patch. + + -- Matthias Klose Tue, 01 Apr 2008 15:25:20 +0200 + gdb (6.8-1) unstable; urgency=low * New upstream release. @@ -1074,6 +1357,33 @@ -- Daniel Jacobowitz Thu, 27 Mar 2008 18:13:39 -0400 +gdb (6.7.1-2ubuntu3) hardy; urgency=low + + * debian/patches/pie-support.patch: updated for 6.7.1; works for + attach and core, but not "run". + * debian/patches/pie-support-tests.patch: re-enabled, some failures remain. + * debian/rules: fix logic to enable running testsuite by default. + + -- Kees Cook Thu, 20 Mar 2008 02:00:27 -0700 + +gdb (6.7.1-2ubuntu2) hardy; urgency=low + + * debian/patches/gdb-cvs-reinit_frame_cache.patch: upstream fix for SEGV + when dealing with register caches (LP: #196274). + + -- Kees Cook Fri, 07 Mar 2008 09:51:58 -0800 + +gdb (6.7.1-2ubuntu1) hardy; urgency=low + + * Merge with Debian; remaining changes: + - Do not depend on type-handling. + - PIE support. + - dwarf2-stack-boundry.diff - security fix for CVE-2006-4146. + * Add patch from Ulrich Weigand to fix stepping over shared library + functions on PowerPC (Closes: #432461). LP: #137312. + + -- Matthias Klose Mon, 14 Jan 2008 17:32:12 +0100 + gdb (6.7.1-2) unstable; urgency=low * Add patch from Ulrich Weigand to fix stepping over shared library @@ -1085,6 +1395,16 @@ -- Daniel Jacobowitz Wed, 02 Jan 2008 08:49:43 -0500 +gdb (6.7.1-1ubuntu1) hardy; urgency=low + + * Merge with Debian; remaining changes: + - Do not depend on type-handling. + - PIE support. + - dwarf2-stack-boundry.diff - security fix for CVE-2006-4146. + * Add build-dependency on lib64expat1-dev. + + -- Matthias Klose Tue, 04 Dec 2007 09:13:57 +0100 + gdb (6.7.1-1) unstable; urgency=low * New upstream release. @@ -1127,6 +1447,55 @@ -- Daniel Jacobowitz Thu, 23 Aug 2007 22:26:20 -0400 +gdb (6.6.dfsg-1ubuntu7) gutsy; urgency=low + + * Cross-compile gdb64. + * Don't try to install gdbserver on architectures where it doesn't exist. + + -- Matthias Klose Mon, 10 Sep 2007 21:28:07 +0200 + +gdb (6.6.dfsg-1ubuntu6) gutsy; urgency=low + + * Fix build failures on targets only building gdb. + * Remove the gdb32 package. + * Fix typos in message strings (LP: #63200). + + -- Matthias Klose Fri, 07 Sep 2007 18:06:20 +0000 + +gdb (6.6.dfsg-1ubuntu5) gutsy; urgency=low + + * Build a gdb64/gdb32 package on biarch architectures. LP: #25559. + * Set Ubuntu maintainer address. + + -- Matthias Klose Wed, 15 Aug 2007 19:01:05 +0000 + +gdb (6.6.dfsg-1ubuntu4) gutsy; urgency=low + + * Fix register definitions for hppa (Randolph Chung). + + -- Matthias Klose Fri, 03 Aug 2007 17:11:20 +0000 + +gdb (6.6.dfsg-1ubuntu3) gutsy; urgency=low + + * Run the testsuite on lpia. + + -- Matthias Klose Sat, 28 Jul 2007 18:32:30 +0200 + +gdb (6.6.dfsg-1ubuntu2) feisty; urgency=low + + * Reenable the workaround for a build failure on the ia64 buildd. + + -- Matthias Klose Sun, 11 Feb 2007 23:34:47 +0100 + +gdb (6.6.dfsg-1ubuntu1) feisty; urgency=low + + * Merge with Debian unstable; remaining changes: + - Do not depend on type-handling. + - PIE support. + - dwarf2-stack-boundry.diff - security fix for CVE-2006-4146. + + -- Matthias Klose Sun, 11 Feb 2007 14:54:38 +0100 + gdb (6.6.dfsg-1) unstable; urgency=low [ Matthias Klose ] @@ -1148,6 +1517,43 @@ -- Daniel Jacobowitz Sat, 27 Jan 2007 21:59:06 -0500 +gdb (6.6-0ubuntu1) feisty; urgency=low + + * New upstream version. + * sim-destdir.patch, gdbinit-ownership.patch, bfd-get-mtime-less.patch, + pie-support.patch, thread-db-multiple-libraries.patch: Update. + * thread-db-live-threads.patch, fork-context-switch.patch, + glibc2.5-gnu-hash.patch: Remove, applied upstream. + + -- Matthias Klose Thu, 4 Jan 2007 15:11:39 +0100 + +gdb (6.5.dfsg-2ubuntu3) feisty; urgency=low + + * Add PIE support, taken from Fedora patch bundle: + - debian/patches/pie-support.patch: core PIE support. + - debian/patches/pie-support-tests.patch: PIE operational tests. + * debian/rules: drop use of "tee" to solve strange hangs on i386/amd64. + + -- Kees Cook Thu, 14 Dec 2006 15:05:33 -0800 + +gdb (6.5.dfsg-2ubuntu2) feisty; urgency=low + + * Add debian/patches/glibc2.5-gnu-hash.patch: + - Teach gdb how to deal with glibc 2.5's .gnu.hash sections, so that gdb + works on feisty at all. + - Patch taken from upstream CVS head. + - Closes: LP#73724 + + -- Martin Pitt Thu, 14 Dec 2006 09:17:51 +0100 + +gdb (6.5.dfsg-2ubuntu1) feisty; urgency=low + + * Merge from debian unstable. Changes left: + - type-handling + - 'dwarf2-stack-boundry.diff' - security fix for CVE-2006-4146 + + -- Michael Vogt Thu, 23 Nov 2006 06:56:42 +0100 + gdb (6.5.dfsg-2) unstable; urgency=low * Backport a patch to fix GDB segfaults on threaded programs. @@ -1165,6 +1571,33 @@ -- Daniel Jacobowitz Sun, 5 Nov 2006 18:33:48 -0500 +gdb (6.4.90.dfsg-1ubuntu3) edgy; urgency=low + + * SECURITY UPDATE: fix local arbitrary code execution in DWARF processing. + * Add 'dwarf2-stack-boundry.diff': limits the DWARF operation stack. + Without this, arbitrary code execution would be possible if a user + were tricked into debugging an executable with malicious DWARF headers. + * References: + CVE-2006-4146 + https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=204845 + + -- Kees Cook Thu, 28 Sep 2006 11:13:50 -0700 + +gdb (6.4.90.dfsg-1ubuntu2) edgy; urgency=low + + * debian/patches/from_upstream_fix_context_switch.patch: + - upstream patch (http://sourceware.org/ml/gdb-cvs/2006-09/msg00053.html), + should fix a multi-threading issue (Ubuntu: #56391) + + -- Sebastien Bacher Fri, 29 Sep 2006 17:42:43 +0200 + +gdb (6.4.90.dfsg-1ubuntu1) edgy; urgency=low + + * Merge from debian unstable: + - left only type-handling bit. + + -- Fabio M. Di Nitto Tue, 04 Jul 2006 07:46:08 +0200 + gdb (6.4.90.dfsg-1) unstable; urgency=low * New upstream snapshot (GDB 6.5 prerelease). @@ -1186,6 +1619,55 @@ -- Daniel Jacobowitz Tue, 6 Jun 2006 09:23:45 -0400 +gdb (6.4-1ubuntu5) dapper; urgency=low + + Changes by David S. Miller: + + * Fix linux_nat regression introduced with the last upload. + + -- Fabio M. Di Nitto Tue, 09 May 2006 07:48:51 +0200 + +gdb (6.4-1ubuntu4) dapper; urgency=low + + Changes by David S. Miller: + + * Fix core file generation on sparc. + + * sparc patches split and clean up as applied upstream. + + -- Fabio M. Di Nitto Sat, 06 May 2006 06:44:31 +0200 + +gdb (6.4-1ubuntu3) dapper; urgency=low + + Changes by David S. Miller: + + * Fix signal frame handling on sparc and use dwarf2 frame unwinding on + sparc/linux: + - Add patch sparc-dwarf2-and-sigframe.patch. + - Update debian/patches/series. + + -- Fabio M. Di Nitto Thu, 06 Apr 2006 07:16:23 +0200 + +gdb (6.4-1ubuntu2) dapper; urgency=low + + Changes by David S. Miller: + + * Fix sparc threads support: + - Add patch gdb-sparclinux-threads.patch. + - Update debian/patches/series. + + NOTE: the patch will work only with properly patched kernel. + The patch should be in 2.6.15-20 kernel serie. + + -- Fabio M. Di Nitto Sun, 02 Apr 2006 09:42:13 +0200 + +gdb (6.4-1ubuntu1) dapper; urgency=low + + * merged with debian, + * debian/control, debian/rules: Remove type-handling. + + -- Michael Vogt Wed, 28 Dec 2005 11:19:23 +0100 + gdb (6.4-1) unstable; urgency=low * New upstream release. @@ -1201,6 +1683,12 @@ -- Daniel Jacobowitz Sun, 11 Dec 2005 13:14:04 -0500 +gdb (6.3.90.20051119-1ubuntu1) dapper; urgency=low + + * debian/control, debian/rules: Remove type-handling. + + -- Martin Pitt Mon, 21 Nov 2005 19:50:49 +0000 + gdb (6.3.90.20051119-1) unstable; urgency=low * New upstream snapshot (6.4 branch prerelease). diff -Nru gdb-7.10/debian/control gdb-7.11.1/debian/control --- gdb-7.10/debian/control 2015-09-02 01:56:11.000000000 +0000 +++ gdb-7.11.1/debian/control 2015-09-13 12:58:27.000000000 +0000 @@ -1,5 +1,6 @@ Source: gdb -Maintainer: Héctor Orón Martínez +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Héctor Orón Martínez Uploaders: Luca Bruno , Samuel Bronson Section: devel Priority: optional @@ -18,40 +19,46 @@ dejagnu, flex | flex-old, procps, -# Do we really care that much about running the Java tests? -# gcj-jdk | gcj, + g++-multilib [i386 powerpc s390 sparc], + gcj-jdk, gobjc, + gccgo, mig [hurd-any], # TeX[info] deps texinfo (>= 4.7-2.2), texlive-base, # Libdev deps - libexpat1-dev, - libncurses5-dev, - libreadline-dev, + libexpat1-dev, lib64expat1-dev [i386 powerpc s390 sparc], + libncurses5-dev, lib64ncurses5-dev [i386 powerpc s390 sparc], + libreadline-dev, lib64readline6-dev [i386 powerpc s390 sparc], zlib1g-dev, liblzma-dev, - libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390x], - libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390x], - python-dev, -# Python3 build + libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64 ppc64el s390x], + libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64 ppc64el s390x], python3-dev, libkvm-dev [kfreebsd-any], libunwind7-dev [ia64], +# gdb64 + lib64z1-dev [i386 powerpc], + lib64expat1-dev [i386 powerpc], +# gdb-doc + texlive-latex-base, texlive-fonts-recommended, cm-super, Vcs-Git: git://anonscm.debian.org/pkg-gdb/gdb.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-gdb/gdb.git Homepage: http://www.gnu.org/s/gdb/ Package: gdb Architecture: any +Multi-Arch: allowed Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends} Recommends: libc-dbg, + libcc1-0, gdbserver [amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x x32] Suggests: gdb-doc Conflicts: gdb -Replaces: gdb +Replaces: gdb, gdb-doc (<< 7.8-1~) Description: GNU Debugger GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining @@ -59,38 +66,19 @@ Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, Go, and Ada. A must-have for any serious programmer. -Package: gdb-python2 -Architecture: any -Depends: ${misc:Depends}, - ${shlibs:Depends} -Recommends: libc-dbg, - gdbserver [amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x x32] -Suggests: gdb-doc -Provides: gdb -Conflicts: gdb -Replaces: gdb -Description: GNU Debugger (linked against python2) - GDB is a source-level debugger, capable of breaking programs at - any specific line, displaying variable values, and determining - where errors occurred. Currently, gdb supports C, C++, D, - Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, - Go, and Ada. A must-have for any serious programmer. - -Package: gdb-minimal -Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends} -Provides: gdb -Conflicts: gdb -Replaces: gdb -Description: GNU Debugger (minimal version) +Package: gdb64 +Architecture: i386 powerpc s390 sparc +Replaces: gdb-multiarch (<< 7.6-1) +Depends: gdb (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: GNU Debugger (64-bit) GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, gdb supports C, C++, D, Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, Go, and Ada. A must-have for any serious programmer. . - This package contains a minimal version of GDB with optional features - disabled. + This package contains a version of GDB compiled for a 64-bit variant + of its architecture. Package: gdb-multiarch Architecture: any @@ -146,3 +134,18 @@ . This package contains the detached debugging symbols for the GNU GDB. + +Package: gdb-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Breaks: gdb (<< 7.8), gdbserver (<< 7.8) +Replaces: gdb (<< 7.8), gdbserver (<< 7.8) +Description: The GNU Debugger Documentation + GDB is a source-level debugger, capable of breaking programs at + any specific line, displaying variable values, and determining + where errors occurred. Currently, it works for C, C++, Fortran, + Modula 2 and Java programs. A must-have for any serious + programmer. + . + This package contains the GDB manual. diff -Nru gdb-7.10/debian/control.in gdb-7.11.1/debian/control.in --- gdb-7.10/debian/control.in 2015-09-02 01:56:11.000000000 +0000 +++ gdb-7.11.1/debian/control.in 2015-09-13 12:58:18.000000000 +0000 @@ -1,5 +1,6 @@ Source: gdb -Maintainer: Héctor Orón Martínez +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Héctor Orón Martínez Uploaders: Luca Bruno , Samuel Bronson Section: devel Priority: optional @@ -18,40 +19,46 @@ dejagnu, flex | flex-old, procps, -# Do we really care that much about running the Java tests? -# gcj-jdk | gcj, + g++-multilib [i386 powerpc s390 sparc], + gcj-jdk, gobjc, + gccgo, mig [hurd-any], # TeX[info] deps texinfo (>= 4.7-2.2), texlive-base, # Libdev deps - libexpat1-dev, - libncurses5-dev, - libreadline-dev, + libexpat1-dev, lib64expat1-dev [i386 powerpc s390 sparc], + libncurses5-dev, lib64ncurses5-dev [i386 powerpc s390 sparc], + libreadline-dev, lib64readline6-dev [i386 powerpc s390 sparc], zlib1g-dev, liblzma-dev, - libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390x], - libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390x], - python-dev, -# Python3 build + libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64 ppc64el s390x], + libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64 ppc64el s390x], python3-dev, libkvm-dev [kfreebsd-any], libunwind7-dev [ia64], +# gdb64 + lib64z1-dev [i386 powerpc], + lib64expat1-dev [i386 powerpc], +# gdb-doc + texlive-latex-base, texlive-fonts-recommended, cm-super, Vcs-Git: git://anonscm.debian.org/pkg-gdb/gdb.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-gdb/gdb.git Homepage: http://www.gnu.org/s/gdb/ Package: gdb@TS@ Architecture: any +Multi-Arch: allowed Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends} Recommends: libc-dbg, + libcc1-0, gdbserver [amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x x32] Suggests: gdb-doc Conflicts: gdb -Replaces: gdb +Replaces: gdb, gdb-doc (<< 7.8-1~) Description: GNU Debugger GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining @@ -59,38 +66,19 @@ Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, Go, and Ada. A must-have for any serious programmer. -Package: gdb-python2@TS@ -Architecture: any -Depends: ${misc:Depends}, - ${shlibs:Depends} -Recommends: libc-dbg, - gdbserver [amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x x32] -Suggests: gdb-doc -Provides: gdb@TS@ -Conflicts: gdb -Replaces: gdb -Description: GNU Debugger (linked against python2) - GDB is a source-level debugger, capable of breaking programs at - any specific line, displaying variable values, and determining - where errors occurred. Currently, gdb supports C, C++, D, - Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, - Go, and Ada. A must-have for any serious programmer. - -Package: gdb-minimal -Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends} -Provides: gdb -Conflicts: gdb -Replaces: gdb -Description: GNU Debugger (minimal version) +Package: gdb64 +Architecture: i386 powerpc s390 sparc +Replaces: gdb-multiarch (<< 7.6-1) +Depends: gdb (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: GNU Debugger (64-bit) GDB is a source-level debugger, capable of breaking programs at any specific line, displaying variable values, and determining where errors occurred. Currently, gdb supports C, C++, D, Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, Go, and Ada. A must-have for any serious programmer. . - This package contains a minimal version of GDB with optional features - disabled. + This package contains a version of GDB compiled for a 64-bit variant + of its architecture. Package: gdb-multiarch Architecture: any @@ -146,3 +134,18 @@ . This package contains the detached debugging symbols for the GNU GDB. + +Package: gdb-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Breaks: gdb (<< 7.8), gdbserver (<< 7.8) +Replaces: gdb (<< 7.8), gdbserver (<< 7.8) +Description: The GNU Debugger Documentation + GDB is a source-level debugger, capable of breaking programs at + any specific line, displaying variable values, and determining + where errors occurred. Currently, it works for C, C++, Fortran, + Modula 2 and Java programs. A must-have for any serious + programmer. + . + This package contains the GDB manual. diff -Nru gdb-7.10/debian/gdb-doc.doc-base.gdb gdb-7.11.1/debian/gdb-doc.doc-base.gdb --- gdb-7.10/debian/gdb-doc.doc-base.gdb 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/gdb-doc.doc-base.gdb 2016-02-17 13:31:06.000000000 +0000 @@ -0,0 +1,15 @@ +Document: gdb +Title: Debugging with GDB +Abstract: This manual describes GDB, the GNU symbolic debugger. +Section: Programming + +Format: Info +Index: /usr/share/info/gdb.info.gz +Files: /usr/share/info/gdb.info* + +Format: HTML +Index: /usr/share/doc/gdb-doc/html/gdb/index.html +Files: /usr/share/doc/gdb-doc/html/gdb/*.html + +Format: PDF +Files: /usr/share/doc/gdb-doc/pdf/gdb.pdf.gz diff -Nru gdb-7.10/debian/gdb-doc.doc-base.stabs gdb-7.11.1/debian/gdb-doc.doc-base.stabs --- gdb-7.10/debian/gdb-doc.doc-base.stabs 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/gdb-doc.doc-base.stabs 2016-02-17 13:31:06.000000000 +0000 @@ -0,0 +1,15 @@ +Document: stabs +Title: The "stabs" debugging format. +Abstract: This document describes the stabs debugging format. +Section: Programming + +Format: Info +Index: /usr/share/info/stabs.info.gz +Files: /usr/share/info/stabs.info* + +Format: HTML +Index: /usr/share/doc/gdb-doc/html/stabs/index.html +Files: /usr/share/doc/gdb-doc/html/stabs/*.html + +Format: PDF +Files: /usr/share/doc/gdb-doc/pdf/stabs.pdf.gz diff -Nru gdb-7.10/debian/gdb-doc.info gdb-7.11.1/debian/gdb-doc.info --- gdb-7.10/debian/gdb-doc.info 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/gdb-doc.info 2014-11-20 09:37:42.000000000 +0000 @@ -0,0 +1,2 @@ +objdir/gdb.info* +objdir/stabs.info* diff -Nru gdb-7.10/debian/gdb-doc.lintian-overrides gdb-7.11.1/debian/gdb-doc.lintian-overrides --- gdb-7.10/debian/gdb-doc.lintian-overrides 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/gdb-doc.lintian-overrides 2014-11-20 09:37:42.000000000 +0000 @@ -0,0 +1 @@ +gdb-doc: description-synopsis-starts-with-article diff -Nru gdb-7.10/debian/gdb-python2.install gdb-7.11.1/debian/gdb-python2.install --- gdb-7.10/debian/gdb-python2.install 2015-09-02 01:56:11.000000000 +0000 +++ gdb-7.11.1/debian/gdb-python2.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -usr/bin/gdb -usr/share/gdb diff -Nru gdb-7.10/debian/gdb-python2.menu gdb-7.11.1/debian/gdb-python2.menu --- gdb-7.10/debian/gdb-python2.menu 2015-09-02 01:56:11.000000000 +0000 +++ gdb-7.11.1/debian/gdb-python2.menu 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -?package(gdb-python2):needs="text" title="GDB" section="Applications/Programming"\ - hints="Debuggers" command="/usr/bin/gdb" - diff -Nru gdb-7.10/debian/gdb64.lintian-overrides gdb-7.11.1/debian/gdb64.lintian-overrides --- gdb-7.10/debian/gdb64.lintian-overrides 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/gdb64.lintian-overrides 2014-11-09 15:22:58.000000000 +0000 @@ -0,0 +1,2 @@ +# Yes, this is *supposed* to be from another architecture +binary-from-other-architecture usr/bin/gdb64 diff -Nru gdb-7.10/debian/gdb64.postinst gdb-7.11.1/debian/gdb64.postinst --- gdb-7.10/debian/gdb64.postinst 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/gdb64.postinst 2014-11-09 15:22:58.000000000 +0000 @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Replace documentation directory with symlink +if [ -d /usr/share/doc/gdb64 ] && [ ! -L /usr/share/doc/gdb64 ]; then + if rmdir /usr/share/doc/gdb64 2>/dev/null; then + ln -sf gdb /usr/share/doc/gdb64 + fi +fi + +#DEBHELPER# + +exit 0 diff -Nru gdb-7.10/debian/patches/CVE-2016-2226.patch gdb-7.11.1/debian/patches/CVE-2016-2226.patch --- gdb-7.10/debian/patches/CVE-2016-2226.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-2226.patch 2017-06-08 16:49:42.000000000 +0000 @@ -0,0 +1,114 @@ +Backport of: + +From b8106f544a7fd485b6959ebd197bdd99a8884416 Mon Sep 17 00:00:00 2001 +From: bernds +Date: Fri, 8 Apr 2016 12:10:21 +0000 +Subject: [PATCH] =?utf8?q?Fix=20memory=20allocation=20size=20overflows=20(?= + =?utf8?q?PR69687,=20patch=20by=20Marcel=20B=C3=B6hme)?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + + PR c++/69687 + * cplus-dem.c: Include if available. + (INT_MAX): Define if necessary. + (remember_type, remember_Ktype, register_Btype, string_need): + Abort if we detect cases where we the size of the allocation would + overflow. + + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234829 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 7 +++++++ + libiberty/cplus-dem.c | 15 +++++++++++++++ + 2 files changed, 22 insertions(+) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index 8e82a5f..2a34356 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,5 +1,12 @@ +# 2016-04-08 Marcel Böhme +# +#+ PR c++/69687 +#+ * cplus-dem.c: Include if available. +#+ (INT_MAX): Define if necessary. +#+ (remember_type, remember_Ktype, register_Btype, string_need): +#+ Abort if we detect cases where we the size of the allocation would +#+ overflow. +#+ +# PR c++/70498 +# * cplus-dem.c (gnu_special): Handle case where consume_count returns +# -1. +Index: gdb-7.11.1/libiberty/cplus-dem.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cplus-dem.c 2017-06-08 12:48:14.134738660 -0400 ++++ gdb-7.11.1/libiberty/cplus-dem.c 2017-06-08 12:48:14.130738610 -0400 +@@ -56,6 +56,13 @@ void * malloc (); + void * realloc (); + #endif + ++#ifdef HAVE_LIMITS_H ++#include ++#endif ++#ifndef INT_MAX ++# define INT_MAX (int)(((unsigned int) ~0) >> 1) /* 0x7FFFFFFF */ ++#endif ++ + #include + #undef CURRENT_DEMANGLING_STYLE + #define CURRENT_DEMANGLING_STYLE work->options +@@ -4254,6 +4261,8 @@ remember_type (struct work_stuff *work, + } + else + { ++ if (work -> typevec_size > INT_MAX / 2) ++ xmalloc_failed (INT_MAX); + work -> typevec_size *= 2; + work -> typevec + = XRESIZEVEC (char *, work->typevec, work->typevec_size); +@@ -4281,6 +4290,8 @@ remember_Ktype (struct work_stuff *work, + } + else + { ++ if (work -> ksize > INT_MAX / 2) ++ xmalloc_failed (INT_MAX); + work -> ksize *= 2; + work -> ktypevec + = XRESIZEVEC (char *, work->ktypevec, work->ksize); +@@ -4310,6 +4321,8 @@ register_Btype (struct work_stuff *work) + } + else + { ++ if (work -> bsize > INT_MAX / 2) ++ xmalloc_failed (INT_MAX); + work -> bsize *= 2; + work -> btypevec + = XRESIZEVEC (char *, work->btypevec, work->bsize); +@@ -4764,6 +4777,8 @@ string_need (string *s, int n) + else if (s->e - s->p < n) + { + tem = s->p - s->b; ++ if (n > INT_MAX / 2 - tem) ++ xmalloc_failed (INT_MAX); + n += tem; + n *= 2; + s->b = XRESIZEVEC (char, s->b, n); +Index: gdb-7.11.1/gdb/common/common-utils.c +=================================================================== +--- gdb-7.11.1.orig/gdb/common/common-utils.c 2016-02-09 22:19:39.000000000 -0500 ++++ gdb-7.11.1/gdb/common/common-utils.c 2017-06-08 12:48:46.779145822 -0400 +@@ -100,6 +100,12 @@ xfree (void *ptr) + free (ptr); /* ARI: free */ + } + ++void ++xmalloc_failed (size_t size) ++{ ++ malloc_failure (size); ++} ++ + /* Like asprintf/vasprintf but get an internal_error if the call + fails. */ + diff -Nru gdb-7.10/debian/patches/CVE-2016-4487_4488.patch gdb-7.11.1/debian/patches/CVE-2016-4487_4488.patch --- gdb-7.10/debian/patches/CVE-2016-4487_4488.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4487_4488.patch 2017-06-08 11:52:57.000000000 +0000 @@ -0,0 +1,65 @@ +From be3004dc350a820a5b0320b34bd05673ba534058 Mon Sep 17 00:00:00 2001 +From: law +Date: Thu, 31 Mar 2016 17:20:53 +0000 +Subject: [PATCH] * cplus-dem.c (squangle_mop_up): Zero bsize/ksize + after freeing btypevec/ktypevec. * testsuite/demangle-expected: Add + coverage tests. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234645 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 7 +++++++ + libiberty/cplus-dem.c | 2 ++ + libiberty/testsuite/demangle-expected | 10 ++++++++++ + 3 files changed, 19 insertions(+) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index d11f4ce..b4054bd 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,3 +1,10 @@ +#+2016-03-31 Mikhail Maltsev +#+ Marcel Bohme boehme.marcel@gmail.com +#+ +#+ * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing +#+ btypevec/ktypevec. +#+ * testsuite/demangle-expected: Add coverage tests. +#+ +# 2016-01-27 Iain Buclaw +# +# * d-demangle.c (dlang_call_convention): Handle extern Objective-C +Index: gdb-7.11.1/libiberty/cplus-dem.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cplus-dem.c 2017-06-08 07:52:55.737197785 -0400 ++++ gdb-7.11.1/libiberty/cplus-dem.c 2017-06-08 07:52:55.721197580 -0400 +@@ -1244,11 +1244,13 @@ squangle_mop_up (struct work_stuff *work + { + free ((char *) work -> btypevec); + work->btypevec = NULL; ++ work->bsize = 0; + } + if (work -> ktypevec != NULL) + { + free ((char *) work -> ktypevec); + work->ktypevec = NULL; ++ work->ksize = 0; + } + } + +Index: gdb-7.11.1/libiberty/testsuite/demangle-expected +=================================================================== +--- gdb-7.11.1.orig/libiberty/testsuite/demangle-expected 2017-06-08 07:52:55.737197785 -0400 ++++ gdb-7.11.1/libiberty/testsuite/demangle-expected 2017-06-08 07:52:55.725197631 -0400 +@@ -4421,3 +4421,13 @@ void baz(A::Type foo() ++# ++# Tests a use-after-free problem ++ ++_Q.__0 ++::Q.(void) ++# ++# Tests a use-after-free problem ++ ++_Q10-__9cafebabe. ++cafebabe.::-(void) diff -Nru gdb-7.10/debian/patches/CVE-2016-4489.patch gdb-7.11.1/debian/patches/CVE-2016-4489.patch --- gdb-7.10/debian/patches/CVE-2016-4489.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4489.patch 2017-06-08 11:53:05.000000000 +0000 @@ -0,0 +1,51 @@ +From 053ec2207203a194d2ae82e2f164009aad3f14d2 Mon Sep 17 00:00:00 2001 +From: bernds +Date: Fri, 8 Apr 2016 12:06:59 +0000 +Subject: [PATCH] =?utf8?q?Handle=20an=20overflow=20case=20(PR70498,=20patc?= + =?utf8?q?h=20by=20Marcel=20B=C3=B6hme).?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + + PR c++/70498 + * cplus-dem.c (gnu_special): Handle case where consume_count returns + -1. + + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234828 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 6 ++++++ + libiberty/cplus-dem.c | 5 +++++ + 2 files changed, 11 insertions(+) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index 1e59c53..8e82a5f 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,3 +1,9 @@ +#+2016-04-08 Marcel Böhme +#+ +#+ PR c++/70498 +#+ * cplus-dem.c (gnu_special): Handle case where consume_count returns +#+ -1. +#+ +# 2016-03-31 Mikhail Maltsev +# Marcel Bohme boehme.marcel@gmail.com +# +Index: gdb-7.11.1/libiberty/cplus-dem.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cplus-dem.c 2017-06-08 07:53:03.889301862 -0400 ++++ gdb-7.11.1/libiberty/cplus-dem.c 2017-06-08 07:53:03.885301812 -0400 +@@ -3008,6 +3008,11 @@ gnu_special (struct work_stuff *work, co + success = 1; + break; + } ++ else if (n == -1) ++ { ++ success = 0; ++ break; ++ } + } + else + { diff -Nru gdb-7.10/debian/patches/CVE-2016-4490.patch gdb-7.11.1/debian/patches/CVE-2016-4490.patch --- gdb-7.10/debian/patches/CVE-2016-4490.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4490.patch 2017-06-08 11:53:08.000000000 +0000 @@ -0,0 +1,286 @@ +From 7d235b1b5ea35352c54957ef5530d9a02c46962f Mon Sep 17 00:00:00 2001 +From: bernds +Date: Mon, 2 May 2016 17:06:40 +0000 +Subject: [PATCH] =?utf8?q?Demangler=20integer=20overflow=20fixes=20from=20?= + =?utf8?q?Marcel=20B=C3=B6hme.?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + + PR c++/70498 + * cp-demangle.c: Parse numbers as integer instead of long to avoid + overflow after sanity checks. Include if available. + (INT_MAX): Define if necessary. + (d_make_template_param): Takes integer argument instead of long. + (d_make_function_param): Likewise. + (d_append_num): Likewise. + (d_identifier): Likewise. + (d_number): Parse as and return integer. + (d_compact_number): Handle overflow. + (d_source_name): Change variable type to integer for parsed number. + (d_java_resource): Likewise. + (d_special_name): Likewise. + (d_discriminator): Likewise. + (d_unnamed_type): Likewise. + * testsuite/demangle-expected: Add regression test cases. + + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235767 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 19 +++++++++++++ + libiberty/cp-demangle.c | 52 ++++++++++++++++++++--------------- + libiberty/testsuite/demangle-expected | 14 ++++++++-- + 3 files changed, 61 insertions(+), 24 deletions(-) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index 7497392..1407cd3 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,3 +1,22 @@ +#+2016-05-02 Marcel Böhme +#+ +#+ PR c++/70498 +#+ * cp-demangle.c: Parse numbers as integer instead of long to avoid +#+ overflow after sanity checks. Include if available. +#+ (INT_MAX): Define if necessary. +#+ (d_make_template_param): Takes integer argument instead of long. +#+ (d_make_function_param): Likewise. +#+ (d_append_num): Likewise. +#+ (d_identifier): Likewise. +#+ (d_number): Parse as and return integer. +#+ (d_compact_number): Handle overflow. +#+ (d_source_name): Change variable type to integer for parsed number. +#+ (d_java_resource): Likewise. +#+ (d_special_name): Likewise. +#+ (d_discriminator): Likewise. +#+ (d_unnamed_type): Likewise. +#+ * testsuite/demangle-expected: Add regression test cases. +#+ +# 2016-04-30 Oleg Endo +# +# * configure: Remove SH5 support. +diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c +index bd64bef..aad0a5d 100644 +--- a/libiberty/cp-demangle.c ++++ b/libiberty/cp-demangle.c +@@ -128,6 +128,13 @@ extern char *alloca (); + # endif /* alloca */ + #endif /* HAVE_ALLOCA_H */ + ++#ifdef HAVE_LIMITS_H ++#include ++#endif ++#ifndef INT_MAX ++# define INT_MAX (int)(((unsigned int) ~0) >> 1) /* 0x7FFFFFFF */ ++#endif ++ + #include "ansidecl.h" + #include "libiberty.h" + #include "demangle.h" +@@ -398,7 +405,7 @@ d_make_dtor (struct d_info *, enum gnu_v3_dtor_kinds, + struct demangle_component *); + + static struct demangle_component * +-d_make_template_param (struct d_info *, long); ++d_make_template_param (struct d_info *, int); + + static struct demangle_component * + d_make_sub (struct d_info *, const char *, int); +@@ -421,9 +428,9 @@ static struct demangle_component *d_unqualified_name (struct d_info *); + + static struct demangle_component *d_source_name (struct d_info *); + +-static long d_number (struct d_info *); ++static int d_number (struct d_info *); + +-static struct demangle_component *d_identifier (struct d_info *, long); ++static struct demangle_component *d_identifier (struct d_info *, int); + + static struct demangle_component *d_operator_name (struct d_info *); + +@@ -1119,7 +1126,7 @@ d_make_dtor (struct d_info *di, enum gnu_v3_dtor_kinds kind, + /* Add a new template parameter. */ + + static struct demangle_component * +-d_make_template_param (struct d_info *di, long i) ++d_make_template_param (struct d_info *di, int i) + { + struct demangle_component *p; + +@@ -1135,7 +1142,7 @@ d_make_template_param (struct d_info *di, long i) + /* Add a new function parameter. */ + + static struct demangle_component * +-d_make_function_param (struct d_info *di, long i) ++d_make_function_param (struct d_info *di, int i) + { + struct demangle_component *p; + +@@ -1620,7 +1627,7 @@ d_unqualified_name (struct d_info *di) + static struct demangle_component * + d_source_name (struct d_info *di) + { +- long len; ++ int len; + struct demangle_component *ret; + + len = d_number (di); +@@ -1633,12 +1640,12 @@ d_source_name (struct d_info *di) + + /* number ::= [n] <(non-negative decimal integer)> */ + +-static long ++static int + d_number (struct d_info *di) + { + int negative; + char peek; +- long ret; ++ int ret; + + negative = 0; + peek = d_peek_char (di); +@@ -1681,7 +1688,7 @@ d_number_component (struct d_info *di) + /* identifier ::= <(unqualified source code identifier)> */ + + static struct demangle_component * +-d_identifier (struct d_info *di, long len) ++d_identifier (struct d_info *di, int len) + { + const char *name; + +@@ -1702,7 +1709,7 @@ d_identifier (struct d_info *di, long len) + /* Look for something which looks like a gcc encoding of an + anonymous namespace, and replace it with a more user friendly + name. */ +- if (len >= (long) ANONYMOUS_NAMESPACE_PREFIX_LEN + 2 ++ if (len >= (int) ANONYMOUS_NAMESPACE_PREFIX_LEN + 2 + && memcmp (name, ANONYMOUS_NAMESPACE_PREFIX, + ANONYMOUS_NAMESPACE_PREFIX_LEN) == 0) + { +@@ -1870,7 +1877,7 @@ d_java_resource (struct d_info *di) + { + struct demangle_component *p = NULL; + struct demangle_component *next = NULL; +- long len, i; ++ int len, i; + char c; + const char *str; + +@@ -2012,7 +2019,7 @@ d_special_name (struct d_info *di) + case 'C': + { + struct demangle_component *derived_type; +- long offset; ++ int offset; + struct demangle_component *base_type; + + derived_type = cplus_demangle_type (di); +@@ -2946,10 +2953,10 @@ d_pointer_to_member_type (struct d_info *di) + + /* _ */ + +-static long ++static int + d_compact_number (struct d_info *di) + { +- long num; ++ int num; + if (d_peek_char (di) == '_') + num = 0; + else if (d_peek_char (di) == 'n') +@@ -2957,7 +2964,7 @@ d_compact_number (struct d_info *di) + else + num = d_number (di) + 1; + +- if (! d_check_char (di, '_')) ++ if (num < 0 || ! d_check_char (di, '_')) + return -1; + return num; + } +@@ -2969,7 +2976,7 @@ d_compact_number (struct d_info *di) + static struct demangle_component * + d_template_param (struct d_info *di) + { +- long param; ++ int param; + + if (! d_check_char (di, 'T')) + return NULL; +@@ -3171,9 +3178,10 @@ d_expression_1 (struct d_info *di) + } + else + { +- index = d_compact_number (di) + 1; +- if (index == 0) ++ index = d_compact_number (di); ++ if (index == INT_MAX || index == -1) + return NULL; ++ index ++; + } + return d_make_function_param (di, index); + } +@@ -3502,7 +3510,7 @@ d_local_name (struct d_info *di) + static int + d_discriminator (struct d_info *di) + { +- long discrim; ++ int discrim; + + if (d_peek_char (di) != '_') + return 1; +@@ -3558,7 +3566,7 @@ static struct demangle_component * + d_unnamed_type (struct d_info *di) + { + struct demangle_component *ret; +- long num; ++ int num; + + if (! d_check_char (di, 'U')) + return NULL; +@@ -4086,10 +4094,10 @@ d_append_string (struct d_print_info *dpi, const char *s) + } + + static inline void +-d_append_num (struct d_print_info *dpi, long l) ++d_append_num (struct d_print_info *dpi, int l) + { + char buf[25]; +- sprintf (buf,"%ld", l); ++ sprintf (buf,"%d", l); + d_append_string (dpi, buf); + } + +diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected +index e214ee5..d124261 100644 +--- a/libiberty/testsuite/demangle-expected ++++ b/libiberty/testsuite/demangle-expected +@@ -4422,12 +4422,22 @@ void baz(A*) + _Z3fooI1FEN1XIXszdtcl1PclcvT__EEE5arrayEE4TypeEv + X::Type foo() + # +-# Tests a use-after-free problem ++# Tests a use-after-free problem PR70481 + + _Q.__0 + ::Q.(void) + # +-# Tests a use-after-free problem ++# Tests a use-after-free problem PR70481 + + _Q10-__9cafebabe. + cafebabe.::-(void) ++# ++# Tests integer overflow problem PR70492 ++ ++__vt_90000000000cafebabe ++__vt_90000000000cafebabe ++# ++# Tests write access violation PR70498 ++ ++_Z80800000000000000000000 ++_Z80800000000000000000000 +-- +2.9.3 + diff -Nru gdb-7.10/debian/patches/CVE-2016-4491-1.patch gdb-7.11.1/debian/patches/CVE-2016-4491-1.patch --- gdb-7.10/debian/patches/CVE-2016-4491-1.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4491-1.patch 2017-06-08 11:54:52.000000000 +0000 @@ -0,0 +1,361 @@ +Backport of: + +From a664c62cf916d036dba3d25973e5bb92c523536e Mon Sep 17 00:00:00 2001 +From: trippels +Date: Wed, 8 Mar 2017 14:28:38 +0000 +Subject: [PATCH] Fix PR demangler/70909 and 67264 (endless demangler + recursion) + +ChangeLog: + + PR demangler/70909 + PR demangler/67264 + * include/demangle.h: Add d_printing to struct demangle_component + and pass struct demangle_component as non const. + +libiberty/ChangeLog: + + PR demangler/70909 + PR demangler/67264 + * cp-demangle.c: Fix endless recursion. Pass + struct demangle_component as non const. + (d_make_empty): Initialize variable. + (d_print_comp_inner): Limit recursion. + (d_print_comp): Decrement variable. + * cp-demint.c (cplus_demangle_fill_component): Initialize + variable. + (cplus_demangle_fill_builtin_type): Likewise. + (cplus_demangle_fill_operator): Likewise. + * testsuite/demangle-expected: Add tests. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245978 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + ChangeLog | 7 +++++ + include/demangle.h | 9 ++++-- + libiberty/ChangeLog | 15 +++++++++ + libiberty/cp-demangle.c | 59 ++++++++++++++++++++--------------- + libiberty/cp-demint.c | 3 ++ + libiberty/testsuite/demangle-expected | 31 ++++++++++++++++++ + 6 files changed, 97 insertions(+), 27 deletions(-) + +#diff --git a/ChangeLog b/ChangeLog +#index bdca057..27168c8 100644 +#--- a/ChangeLog +#+++ b/ChangeLog +#@@ -1,3 +1,10 @@ +#+2017-03-08 Mark Wielaard +#+ +#+ PR demangler/70909 +#+ PR demangler/67264 +#+ * include/demangle.h: Add d_printing to struct demangle_component +#+ and pass struct demangle_component as non const. +#+ +# 2017-02-26 Gerald Pfeifer +# +# * MAINTAINERS: Remove Neil Booth as option handling maintainer. +Index: gdb-7.11.1/include/demangle.h +=================================================================== +--- gdb-7.11.1.orig/include/demangle.h 2017-06-08 07:54:28.166365770 -0400 ++++ gdb-7.11.1/include/demangle.h 2017-06-08 07:54:28.158365670 -0400 +@@ -467,6 +467,11 @@ struct demangle_component + /* The type of this component. */ + enum demangle_component_type type; + ++ /* Guard against recursive component printing. ++ Initialize to zero. Private to d_print_comp. ++ All other fields are final after initialization. */ ++ int d_printing; ++ + union + { + /* For DEMANGLE_COMPONENT_NAME. */ +@@ -661,7 +666,7 @@ cplus_demangle_v3_components (const char + + extern char * + cplus_demangle_print (int options, +- const struct demangle_component *tree, ++ struct demangle_component *tree, + int estimated_length, + size_t *p_allocated_size); + +@@ -681,7 +686,7 @@ cplus_demangle_print (int options, + + extern int + cplus_demangle_print_callback (int options, +- const struct demangle_component *tree, ++ struct demangle_component *tree, + demangle_callbackref callback, void *opaque); + + #ifdef __cplusplus +Index: gdb-7.11.1/libiberty/cp-demangle.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cp-demangle.c 2017-06-08 07:54:28.166365770 -0400 ++++ gdb-7.11.1/libiberty/cp-demangle.c 2017-06-08 07:54:28.162365720 -0400 +@@ -173,10 +173,10 @@ static struct demangle_component *d_mang + static struct demangle_component *d_type (struct d_info *); + + #define cplus_demangle_print d_print +-static char *d_print (int, const struct demangle_component *, int, size_t *); ++static char *d_print (int, struct demangle_component *, int, size_t *); + + #define cplus_demangle_print_callback d_print_callback +-static int d_print_callback (int, const struct demangle_component *, ++static int d_print_callback (int, struct demangle_component *, + demangle_callbackref, void *); + + #define cplus_demangle_init_info d_init_info +@@ -265,7 +265,7 @@ struct d_print_mod + in which they appeared in the mangled string. */ + struct d_print_mod *next; + /* The modifier. */ +- const struct demangle_component *mod; ++ struct demangle_component *mod; + /* Whether this modifier was printed. */ + int printed; + /* The list of templates which applies to this modifier. */ +@@ -525,7 +525,7 @@ static inline void d_append_string (stru + static inline char d_last_char (struct d_print_info *); + + static void +-d_print_comp (struct d_print_info *, int, const struct demangle_component *); ++d_print_comp (struct d_print_info *, int, struct demangle_component *); + + static void + d_print_java_identifier (struct d_print_info *, const char *, int); +@@ -534,25 +534,25 @@ static void + d_print_mod_list (struct d_print_info *, int, struct d_print_mod *, int); + + static void +-d_print_mod (struct d_print_info *, int, const struct demangle_component *); ++d_print_mod (struct d_print_info *, int, struct demangle_component *); + + static void + d_print_function_type (struct d_print_info *, int, +- const struct demangle_component *, ++ struct demangle_component *, + struct d_print_mod *); + + static void + d_print_array_type (struct d_print_info *, int, +- const struct demangle_component *, ++ struct demangle_component *, + struct d_print_mod *); + + static void +-d_print_expr_op (struct d_print_info *, int, const struct demangle_component *); ++d_print_expr_op (struct d_print_info *, int, struct demangle_component *); + + static void d_print_cast (struct d_print_info *, int, +- const struct demangle_component *); ++ struct demangle_component *); + static void d_print_conversion (struct d_print_info *, int, +- const struct demangle_component *); ++ struct demangle_component *); + + static int d_demangle_callback (const char *, int, + demangle_callbackref, void *); +@@ -892,6 +892,7 @@ d_make_empty (struct d_info *di) + if (di->next_comp >= di->num_comps) + return NULL; + p = &di->comps[di->next_comp]; ++ p->d_printing = 0; + ++di->next_comp; + return p; + } +@@ -4119,7 +4120,7 @@ d_last_char (struct d_print_info *dpi) + CP_STATIC_IF_GLIBCPP_V3 + int + cplus_demangle_print_callback (int options, +- const struct demangle_component *dc, ++ struct demangle_component *dc, + demangle_callbackref callback, void *opaque) + { + struct d_print_info dpi; +@@ -4158,7 +4159,7 @@ cplus_demangle_print_callback (int optio + + CP_STATIC_IF_GLIBCPP_V3 + char * +-cplus_demangle_print (int options, const struct demangle_component *dc, ++cplus_demangle_print (int options, struct demangle_component *dc, + int estimate, size_t *palc) + { + struct d_growable_string dgs; +@@ -4290,7 +4291,7 @@ d_pack_length (const struct demangle_com + + static void + d_print_subexpr (struct d_print_info *dpi, int options, +- const struct demangle_component *dc) ++ struct demangle_component *dc) + { + int simple = 0; + if (dc->type == DEMANGLE_COMPONENT_NAME +@@ -4365,11 +4366,11 @@ d_get_saved_scope (struct d_print_info * + + static void + d_print_comp_inner (struct d_print_info *dpi, int options, +- const struct demangle_component *dc) ++ struct demangle_component *dc) + { + /* Magic variable to let reference smashing skip over the next modifier + without needing to modify *dc. */ +- const struct demangle_component *mod_inner = NULL; ++ struct demangle_component *mod_inner = NULL; + + /* Variable used to store the current templates while a previously + captured scope is used. */ +@@ -4757,7 +4758,7 @@ d_print_comp_inner (struct d_print_info + case DEMANGLE_COMPONENT_RVALUE_REFERENCE: + { + /* Handle reference smashing: & + && = &. */ +- const struct demangle_component *sub = d_left (dc); ++ struct demangle_component *sub = d_left (dc); + if (sub->type == DEMANGLE_COMPONENT_TEMPLATE_PARAM) + { + struct d_saved_scope *scope = d_get_saved_scope (dpi, sub); +@@ -5440,9 +5441,16 @@ d_print_comp_inner (struct d_print_info + + static void + d_print_comp (struct d_print_info *dpi, int options, +- const struct demangle_component *dc) ++ struct demangle_component *dc) + { + struct d_component_stack self; ++ if (dc == NULL || dc->d_printing > 1) ++ { ++ d_print_error (dpi); ++ return; ++ } ++ else ++ dc->d_printing++; + + self.dc = dc; + self.parent = dpi->component_stack; +@@ -5451,6 +5459,7 @@ d_print_comp (struct d_print_info *dpi, + d_print_comp_inner (dpi, options, dc); + + dpi->component_stack = self.parent; ++ dc->d_printing--; + } + + /* Print a Java dentifier. For Java we try to handle encoded extended +@@ -5603,7 +5612,7 @@ d_print_mod_list (struct d_print_info *d + + static void + d_print_mod (struct d_print_info *dpi, int options, +- const struct demangle_component *mod) ++ struct demangle_component *mod) + { + switch (mod->type) + { +@@ -5675,7 +5684,7 @@ d_print_mod (struct d_print_info *dpi, i + + static void + d_print_function_type (struct d_print_info *dpi, int options, +- const struct demangle_component *dc, ++ struct demangle_component *dc, + struct d_print_mod *mods) + { + int need_paren; +@@ -5758,7 +5767,7 @@ d_print_function_type (struct d_print_in + + static void + d_print_array_type (struct d_print_info *dpi, int options, +- const struct demangle_component *dc, ++ struct demangle_component *dc, + struct d_print_mod *mods) + { + int need_space; +@@ -5812,7 +5821,7 @@ d_print_array_type (struct d_print_info + + static void + d_print_expr_op (struct d_print_info *dpi, int options, +- const struct demangle_component *dc) ++ struct demangle_component *dc) + { + if (dc->type == DEMANGLE_COMPONENT_OPERATOR) + d_append_buffer (dpi, dc->u.s_operator.op->name, +@@ -5825,7 +5834,7 @@ d_print_expr_op (struct d_print_info *dp + + static void + d_print_cast (struct d_print_info *dpi, int options, +- const struct demangle_component *dc) ++ struct demangle_component *dc) + { + d_print_comp (dpi, options, d_left (dc)); + } +@@ -5834,7 +5843,7 @@ d_print_cast (struct d_print_info *dpi, + + static void + d_print_conversion (struct d_print_info *dpi, int options, +- const struct demangle_component *dc) ++ struct demangle_component *dc) + { + struct d_print_template dpt; + +Index: gdb-7.11.1/libiberty/cp-demint.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cp-demint.c 2017-06-08 07:54:28.166365770 -0400 ++++ gdb-7.11.1/libiberty/cp-demint.c 2017-06-08 07:54:28.162365720 -0400 +@@ -123,6 +123,7 @@ cplus_demangle_fill_component (struct de + p->type = type; + p->u.s_binary.left = left; + p->u.s_binary.right = right; ++ p->d_printing = 0; + + return 1; + } +@@ -146,6 +147,7 @@ cplus_demangle_fill_builtin_type (struct + { + p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE; + p->u.s_builtin.type = &cplus_demangle_builtin_types[i]; ++ p->d_printing = 0; + return 1; + } + } +@@ -172,6 +174,7 @@ cplus_demangle_fill_operator (struct dem + { + p->type = DEMANGLE_COMPONENT_OPERATOR; + p->u.s_operator.op = &cplus_demangle_operators[i]; ++ p->d_printing = 0; + return 1; + } + } +Index: gdb-7.11.1/libiberty/testsuite/demangle-expected +=================================================================== +--- gdb-7.11.1.orig/libiberty/testsuite/demangle-expected 2017-06-08 07:54:28.166365770 -0400 ++++ gdb-7.11.1/libiberty/testsuite/demangle-expected 2017-06-08 07:54:28.162365720 -0400 +@@ -4459,3 +4459,34 @@ __t2m05B500000000000000000_ + + __10%0__S4_0T0T0 + %0<>::%0(%0<>) ++ ++# ++# Test recursion PR67264 ++_Z1KIStcvT_E ++_Z1KIStcvT_E ++ ++_ZcvT_IIS0_EE ++_ZcvT_IIS0_EE ++ ++_ZcvT_IZcvT_E1fE ++_ZcvT_IZcvT_E1fE ++ ++_Z1gINcvT_EE ++_Z1gINcvT_EE ++ ++_ZcvT_ILZcvDTT_EEE ++_ZcvT_ILZcvDTT_EEE ++ ++_Z1gIJOOT_EEOT_c ++_Z1gIJOOT_EEOT_c ++ ++_Z1KMMMMMMMMMMMMMMMA_xooooooooooooooo ++_Z1KMMMMMMMMMMMMMMMA_xooooooooooooooo ++ ++_ZdvMMMMMMMMMMMMMrrrrA_DTdvfp_fp_Eededilfdfdfdfd ++_ZdvMMMMMMMMMMMMMrrrrA_DTdvfp_fp_Eededilfdfdfdfd ++# ++# Test for Infinite Recursion PR70909 ++ ++_Z1MA_aMMMMA_MMA_MMMMMMMMSt1MS_o11T0000000000t2M0oooozoooo ++_Z1MA_aMMMMA_MMA_MMMMMMMMSt1MS_o11T0000000000t2M0oooozoooo diff -Nru gdb-7.10/debian/patches/CVE-2016-4491-2.patch gdb-7.11.1/debian/patches/CVE-2016-4491-2.patch --- gdb-7.10/debian/patches/CVE-2016-4491-2.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4491-2.patch 2017-06-08 11:55:01.000000000 +0000 @@ -0,0 +1,104 @@ +Backport of: + +From b4cd77b1236a743dd5d94bc210534856a12e6efe Mon Sep 17 00:00:00 2001 +From: mark +Date: Fri, 21 Apr 2017 09:02:03 +0000 +Subject: [PATCH] libiberty: Limit demangler maximum d_print_comp recursion + call depth. + +The fix for PR demangler/70909 and 67264 (endless demangler recursion) +catches when a demangle_component is printed in a cycle. But that doesn't +protect the call stack blowing up from non-cyclic nested types printed +recursively through d_print_comp. This can happen by a (very) long mangled +string that simply creates a very deep pointer or qualifier chain. Limit +the recursive d_print_comp call depth for a d_print_info to 1K nested +types. + +libiberty/ChangeLog: + + * cp-demangle.c (MAX_RECURSION_COUNT): New constant. + (struct d_print_info): Add recursion field. + (d_print_init): Initialize recursion. + (d_print_comp): Check and update d_print_info recursion depth. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247056 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 7 +++++++ + libiberty/cp-demangle.c | 15 ++++++++++++--- + 2 files changed, 19 insertions(+), 3 deletions(-) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index 673eb26..34e585e 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,5 +1,12 @@ +# 2017-04-21 Mark Wielaard +# +#+ * cp-demangle.c (MAX_RECURSION_COUNT): New constant. +#+ (struct d_print_info): Add recursion field. +#+ (d_print_init): Initialize recursion. +#+ (d_print_comp): Check and update d_print_info recursion depth. +#+ +#+2017-04-21 Mark Wielaard +#+ +# * cp-demangle.c (d_substitution): Return NULL if d_add_substitution +# fails. +# +Index: gdb-7.11.1/libiberty/cp-demangle.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cp-demangle.c 2017-06-08 07:54:58.210740139 -0400 ++++ gdb-7.11.1/libiberty/cp-demangle.c 2017-06-08 07:54:58.206740089 -0400 +@@ -321,6 +321,9 @@ struct d_info_checkpoint + int expansion; + }; + ++/* Maximum number of times d_print_comp may be called recursively. */ ++#define MAX_RECURSION_COUNT 1024 ++ + enum { D_PRINT_BUFFER_LENGTH = 256 }; + struct d_print_info + { +@@ -343,6 +346,9 @@ struct d_print_info + struct d_print_mod *modifiers; + /* Set to 1 if we saw a demangling error. */ + int demangle_failure; ++ /* Number of times d_print_comp was recursively called. Should not ++ be bigger than MAX_RECURSION_COUNT. */ ++ int recursion; + /* The current index into any template argument packs we are using + for printing. */ + int pack_index; +@@ -4024,6 +4030,7 @@ d_print_init (struct d_print_info *dpi, + dpi->opaque = opaque; + + dpi->demangle_failure = 0; ++ dpi->recursion = 0; + + dpi->component_stack = NULL; + +@@ -5444,13 +5451,14 @@ d_print_comp (struct d_print_info *dpi, + struct demangle_component *dc) + { + struct d_component_stack self; +- if (dc == NULL || dc->d_printing > 1) ++ if (dc == NULL || dc->d_printing > 1 || dpi->recursion > MAX_RECURSION_COUNT) + { + d_print_error (dpi); + return; + } +- else +- dc->d_printing++; ++ ++ dc->d_printing++; ++ dpi->recursion++; + + self.dc = dc; + self.parent = dpi->component_stack; +@@ -5460,6 +5468,7 @@ d_print_comp (struct d_print_info *dpi, + + dpi->component_stack = self.parent; + dc->d_printing--; ++ dpi->recursion--; + } + + /* Print a Java dentifier. For Java we try to handle encoded extended diff -Nru gdb-7.10/debian/patches/CVE-2016-4491-3.patch gdb-7.11.1/debian/patches/CVE-2016-4491-3.patch --- gdb-7.10/debian/patches/CVE-2016-4491-3.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4491-3.patch 2017-06-09 18:29:34.000000000 +0000 @@ -0,0 +1,92 @@ +From b9da89d161e3903faa335f444af2bf05e40f926e Mon Sep 17 00:00:00 2001 +From: mark +Date: Mon, 13 Mar 2017 18:26:47 +0000 +Subject: [PATCH] Merge libiberty: Initialize d_printing in all + cplus_demangle_fill_* functions. + +While integrating the d_printing recursion guard change into gdb I +noticed we forgot to initialize the demangle_component d_printing +field in cplus_demangle_fill_{name,extended_operator,ctor,dtor}. +As is done in cplus_demangle_fill_{component,builtin_type,operator}. +It happened to work because in gcc all demangle_components were +allocated through d_make_empty. But gdb has its own allocation +mechanism (as might other users). + +libiberty/ChangeLog: + + * cp-demangle.c (cplus_demangle_fill_name): Initialize + demangle_component d_printing. + (cplus_demangle_fill_extended_operator): Likewise. + (cplus_demangle_fill_ctor): Likewise. + (cplus_demangle_fill_dtor): Likewise. + +gdb/ChangeLog: + + * cp-name-parser.y (make_empty): Initialize d_printing to zero. +--- + gdb/ChangeLog | 4 ++++ + gdb/cp-name-parser.y | 1 + + libiberty/ChangeLog | 8 ++++++++ + libiberty/cp-demangle.c | 4 ++++ + 4 files changed, 17 insertions(+) + +#diff --git a/gdb/ChangeLog b/gdb/ChangeLog +#index e4c4432..7de2498 100644 +#--- a/gdb/ChangeLog +#+++ b/gdb/ChangeLog +#@@ -1,3 +1,7 @@ +#+2017-03-13 Mark Wielaard +#+ +#+ * cp-name-parser.y (make_empty): Initialize d_printing to zero. +#+ +# 2017-03-10 Keith Seitz +# +# PR c++/8218 +Index: gdb-7.11.1/gdb/cp-name-parser.y +=================================================================== +--- gdb-7.11.1.orig/gdb/cp-name-parser.y 2017-06-09 14:29:31.868179386 -0400 ++++ gdb-7.11.1/gdb/cp-name-parser.y 2017-06-09 14:29:31.868179386 -0400 +@@ -201,6 +201,7 @@ make_empty (enum demangle_component_type + { + struct demangle_component *ret = d_grab (); + ret->type = d_type; ++ ret->d_printing = 0; + return ret; + } + +Index: gdb-7.11.1/libiberty/cp-demangle.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cp-demangle.c 2017-06-09 14:29:31.868179386 -0400 ++++ gdb-7.11.1/libiberty/cp-demangle.c 2017-06-09 14:29:31.868179386 -0400 +@@ -829,6 +829,7 @@ cplus_demangle_fill_name (struct demangl + { + if (p == NULL || s == NULL || len == 0) + return 0; ++ p->d_printing = 0; + p->type = DEMANGLE_COMPONENT_NAME; + p->u.s_name.s = s; + p->u.s_name.len = len; +@@ -844,6 +845,7 @@ cplus_demangle_fill_extended_operator (s + { + if (p == NULL || args < 0 || name == NULL) + return 0; ++ p->d_printing = 0; + p->type = DEMANGLE_COMPONENT_EXTENDED_OPERATOR; + p->u.s_extended_operator.args = args; + p->u.s_extended_operator.name = name; +@@ -863,6 +865,7 @@ cplus_demangle_fill_ctor (struct demangl + || (int) kind < gnu_v3_complete_object_ctor + || (int) kind > gnu_v3_object_ctor_group) + return 0; ++ p->d_printing = 0; + p->type = DEMANGLE_COMPONENT_CTOR; + p->u.s_ctor.kind = kind; + p->u.s_ctor.name = name; +@@ -882,6 +885,7 @@ cplus_demangle_fill_dtor (struct demangl + || (int) kind < gnu_v3_deleting_dtor + || (int) kind > gnu_v3_object_dtor_group) + return 0; ++ p->d_printing = 0; + p->type = DEMANGLE_COMPONENT_DTOR; + p->u.s_dtor.kind = kind; + p->u.s_dtor.name = name; diff -Nru gdb-7.10/debian/patches/CVE-2016-4492_4493.patch gdb-7.11.1/debian/patches/CVE-2016-4492_4493.patch --- gdb-7.10/debian/patches/CVE-2016-4492_4493.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-4492_4493.patch 2017-06-08 11:53:18.000000000 +0000 @@ -0,0 +1,96 @@ +From b6616075cb48d42a28cc78ca1c66127b671b361c Mon Sep 17 00:00:00 2001 +From: law +Date: Wed, 13 Jul 2016 22:06:09 +0000 +Subject: [PATCH] PR c++/70926 * cplus-dem.c: Handle large values and + overflow when demangling length variables. + (demangle_template_value_parm): Read only until end of mangled string. + (do_hpacc_template_literal): Likewise. (do_type): Handle overflow + when demangling array indices. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238313 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 9 +++++++++ + libiberty/cplus-dem.c | 10 ++++++---- + libiberty/testsuite/demangle-expected | 13 +++++++++++++ + 3 files changed, 28 insertions(+), 4 deletions(-) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index 45b312b..317bd63 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,3 +1,12 @@ +#+2016-07-13 Marcel BÃhme +#+ +#+ PR c++/70926 +#+ * cplus-dem.c: Handle large values and overflow when demangling +#+ length variables. +#+ (demangle_template_value_parm): Read only until end of mangled string. +#+ (do_hpacc_template_literal): Likewise. +#+ (do_type): Handle overflow when demangling array indices. +#+ +# 2016-06-12 Brooks Moses +# +# * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length +Index: gdb-7.11.1/libiberty/cplus-dem.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cplus-dem.c 2017-06-08 07:53:16.285459712 -0400 ++++ gdb-7.11.1/libiberty/cplus-dem.c 2017-06-08 07:53:16.273459559 -0400 +@@ -2051,7 +2051,8 @@ demangle_template_value_parm (struct wor + else + { + int symbol_len = consume_count (mangled); +- if (symbol_len == -1) ++ if (symbol_len == -1 ++ || symbol_len > (long) strlen (*mangled)) + return -1; + if (symbol_len == 0) + string_appendn (s, "0", 1); +@@ -3611,7 +3612,7 @@ do_type (struct work_stuff *work, const + /* A back reference to a previously seen type */ + case 'T': + (*mangled)++; +- if (!get_count (mangled, &n) || n >= work -> ntypes) ++ if (!get_count (mangled, &n) || n < 0 || n >= work -> ntypes) + { + success = 0; + } +@@ -3789,7 +3790,7 @@ do_type (struct work_stuff *work, const + /* A back reference to a previously seen squangled type */ + case 'B': + (*mangled)++; +- if (!get_count (mangled, &n) || n >= work -> numb) ++ if (!get_count (mangled, &n) || n < 0 || n >= work -> numb) + success = 0; + else + string_append (result, work->btypevec[n]); +@@ -4130,7 +4131,8 @@ do_hpacc_template_literal (struct work_s + + literal_len = consume_count (mangled); + +- if (literal_len <= 0) ++ if (literal_len <= 0 ++ || literal_len > (long) strlen (*mangled)) + return 0; + + /* Literal parameters are names of arrays, functions, etc. and the +Index: gdb-7.11.1/libiberty/testsuite/demangle-expected +=================================================================== +--- gdb-7.11.1.orig/libiberty/testsuite/demangle-expected 2017-06-08 07:53:16.285459712 -0400 ++++ gdb-7.11.1/libiberty/testsuite/demangle-expected 2017-06-08 07:53:16.273459559 -0400 +@@ -4441,3 +4441,16 @@ __vt_90000000000cafebabe + + _Z80800000000000000000000 + _Z80800000000000000000000 ++# ++# Tests write access violation PR70926 ++ ++0__Ot2m02R5T0000500000 ++0__Ot2m02R5T0000500000 ++# ++ ++0__GT50000000000_ ++0__GT50000000000_ ++# ++ ++__t2m05B500000000000000000_ ++__t2m05B500000000000000000_ diff -Nru gdb-7.10/debian/patches/CVE-2016-6131.patch gdb-7.11.1/debian/patches/CVE-2016-6131.patch --- gdb-7.10/debian/patches/CVE-2016-6131.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/CVE-2016-6131.patch 2017-06-08 11:53:26.000000000 +0000 @@ -0,0 +1,237 @@ +From ebcc31144416b524ea556708c32304c53b439724 Mon Sep 17 00:00:00 2001 +From: law +Date: Thu, 4 Aug 2016 16:53:18 +0000 +Subject: [PATCH] =?utf8?q?2016-08-04=20=20Marcel=20B=C3=B6hme=20=20?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + + PR c++/71696 + * cplus-dem.c: Prevent infinite recursion when there is a cycle + in the referencing of remembered mangled types. + (work_stuff): New stack to keep track of the remembered mangled + types that are currently being processed. + (push_processed_type): New method to push currently processed + remembered type onto the stack. + (pop_processed_type): New method to pop currently processed + remembered type from the stack. + (work_stuff_copy_to_from): Copy values of new variables. + (delete_non_B_K_work_stuff): Free stack memory. + (demangle_args): Push/Pop currently processed remembered type. + (do_type): Do not demangle a cyclic reference and push/pop + referenced remembered type. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239143 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libiberty/ChangeLog | 19 ++++++++- + libiberty/cplus-dem.c | 80 ++++++++++++++++++++++++++++++++--- + libiberty/testsuite/demangle-expected | 5 +++ + 3 files changed, 97 insertions(+), 7 deletions(-) + +#diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog +#index a2e49a1..e7ff8c3 100644 +#--- a/libiberty/ChangeLog +#+++ b/libiberty/ChangeLog +#@@ -1,3 +1,20 @@ +#+2016-08-04 Marcel Böhme +#+ +#+ PR c++/71696 +#+ * cplus-dem.c: Prevent infinite recursion when there is a cycle +#+ in the referencing of remembered mangled types. +#+ (work_stuff): New stack to keep track of the remembered mangled +#+ types that are currently being processed. +#+ (push_processed_type): New method to push currently processed +#+ remembered type onto the stack. +#+ (pop_processed_type): New method to pop currently processed +#+ remembered type from the stack. +#+ (work_stuff_copy_to_from): Copy values of new variables. +#+ (delete_non_B_K_work_stuff): Free stack memory. +#+ (demangle_args): Push/Pop currently processed remembered type. +#+ (do_type): Do not demangle a cyclic reference and push/pop +#+ referenced remembered type. +#+ +# 2016-07-29 Aldy Hernandez +# +# * make-relative-prefix.c (make_relative_prefix_1): Fall back to +#@@ -16,7 +33,7 @@ +# (d_template_args_1): Split out from d_template_args. +# (d_args_length): New. +# +#-2016-07-13 Marcel BÃhme +#+2016-07-13 Marcel Böhme +# +# PR c++/70926 +# * cplus-dem.c: Handle large values and overflow when demangling +Index: gdb-7.11.1/libiberty/cplus-dem.c +=================================================================== +--- gdb-7.11.1.orig/libiberty/cplus-dem.c 2017-06-08 07:53:24.121559242 -0400 ++++ gdb-7.11.1/libiberty/cplus-dem.c 2017-06-08 07:53:24.101558987 -0400 +@@ -144,6 +144,9 @@ struct work_stuff + string* previous_argument; /* The last function argument demangled. */ + int nrepeats; /* The number of times to repeat the previous + argument. */ ++ int *proctypevec; /* Indices of currently processed remembered typevecs. */ ++ int proctypevec_size; ++ int nproctypes; + }; + + #define PRINT_ANSI_QUALIFIERS (work -> options & DMGL_ANSI) +@@ -435,6 +438,10 @@ iterate_demangle_function (struct work_s + + static void remember_type (struct work_stuff *, const char *, int); + ++static void push_processed_type (struct work_stuff *, int); ++ ++static void pop_processed_type (struct work_stuff *); ++ + static void remember_Btype (struct work_stuff *, const char *, int, int); + + static int register_Btype (struct work_stuff *); +@@ -1301,6 +1308,10 @@ work_stuff_copy_to_from (struct work_stu + memcpy (to->btypevec[i], from->btypevec[i], len); + } + ++ if (from->proctypevec) ++ to->proctypevec = ++ XDUPVEC (int, from->proctypevec, from->proctypevec_size); ++ + if (from->ntmpl_args) + to->tmpl_argvec = XNEWVEC (char *, from->ntmpl_args); + +@@ -1329,11 +1340,17 @@ delete_non_B_K_work_stuff (struct work_s + /* Discard the remembered types, if any. */ + + forget_types (work); +- if (work -> typevec != NULL) ++ if (work->typevec != NULL) + { +- free ((char *) work -> typevec); +- work -> typevec = NULL; +- work -> typevec_size = 0; ++ free ((char *) work->typevec); ++ work->typevec = NULL; ++ work->typevec_size = 0; ++ } ++ if (work->proctypevec != NULL) ++ { ++ free (work->proctypevec); ++ work->proctypevec = NULL; ++ work->proctypevec_size = 0; + } + if (work->tmpl_argvec) + { +@@ -3553,6 +3570,8 @@ static int + do_type (struct work_stuff *work, const char **mangled, string *result) + { + int n; ++ int i; ++ int is_proctypevec; + int done; + int success; + string decl; +@@ -3565,6 +3584,7 @@ do_type (struct work_stuff *work, const + + done = 0; + success = 1; ++ is_proctypevec = 0; + while (success && !done) + { + int member; +@@ -3617,8 +3637,15 @@ do_type (struct work_stuff *work, const + success = 0; + } + else +- { +- remembered_type = work -> typevec[n]; ++ for (i = 0; i < work->nproctypes; i++) ++ if (work -> proctypevec [i] == n) ++ success = 0; ++ ++ if (success) ++ { ++ is_proctypevec = 1; ++ push_processed_type (work, n); ++ remembered_type = work->typevec[n]; + mangled = &remembered_type; + } + break; +@@ -3841,6 +3868,9 @@ do_type (struct work_stuff *work, const + string_delete (result); + string_delete (&decl); + ++ if (is_proctypevec) ++ pop_processed_type (work); ++ + if (success) + /* Assume an integral type, if we're not sure. */ + return (int) ((tk == tk_none) ? tk_integral : tk); +@@ -4254,6 +4284,41 @@ do_arg (struct work_stuff *work, const c + } + + static void ++push_processed_type (struct work_stuff *work, int typevec_index) ++{ ++ if (work->nproctypes >= work->proctypevec_size) ++ { ++ if (!work->proctypevec_size) ++ { ++ work->proctypevec_size = 4; ++ work->proctypevec = XNEWVEC (int, work->proctypevec_size); ++ } ++ else ++ { ++ if (work->proctypevec_size < 16) ++ /* Double when small. */ ++ work->proctypevec_size *= 2; ++ else ++ { ++ /* Grow slower when large. */ ++ if (work->proctypevec_size > (INT_MAX / 3) * 2) ++ xmalloc_failed (INT_MAX); ++ work->proctypevec_size = (work->proctypevec_size * 3 / 2); ++ } ++ work->proctypevec ++ = XRESIZEVEC (int, work->proctypevec, work->proctypevec_size); ++ } ++ } ++ work->proctypevec [work->nproctypes++] = typevec_index; ++} ++ ++static void ++pop_processed_type (struct work_stuff *work) ++{ ++ work->nproctypes--; ++} ++ ++static void + remember_type (struct work_stuff *work, const char *start, int len) + { + char *tem; +@@ -4517,10 +4582,13 @@ demangle_args (struct work_stuff *work, + { + string_append (declp, ", "); + } ++ push_processed_type (work, t); + if (!do_arg (work, &tem, &arg)) + { ++ pop_processed_type (work); + return (0); + } ++ pop_processed_type (work); + if (PRINT_ARG_TYPES) + { + string_appends (declp, &arg); +Index: gdb-7.11.1/libiberty/testsuite/demangle-expected +=================================================================== +--- gdb-7.11.1.orig/libiberty/testsuite/demangle-expected 2017-06-08 07:53:24.121559242 -0400 ++++ gdb-7.11.1/libiberty/testsuite/demangle-expected 2017-06-08 07:53:24.101558987 -0400 +@@ -4454,3 +4454,8 @@ _Z80800000000000000000000 + + __t2m05B500000000000000000_ + __t2m05B500000000000000000_ ++# ++# Tests stack overflow PR71696 ++ ++__10%0__S4_0T0T0 ++%0<>::%0(%0<>) diff -Nru gdb-7.10/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch gdb-7.11.1/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch --- gdb-7.10/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch 2015-09-02 02:00:58.000000000 +0000 +++ gdb-7.11.1/debian/patches/Segmentation-fault-on-add-symbol-file-command.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -https://sourceware.org/bugzilla/show_bug.cgi?id=16822 - ---- -Index: gdb/gdb/dwarf2read.c -=================================================================== ---- gdb.orig/gdb/dwarf2read.c 2015-08-30 13:26:46.918366481 +0200 -+++ gdb/gdb/dwarf2read.c 2015-08-30 13:26:46.914366370 +0200 -@@ -8716,7 +8716,10 @@ - - /* DW_AT_linkage_name is missing in some cases - depend on what GDB - has computed. */ -- if (attr && DW_STRING (attr)) -+ if (attr -+ && (attr->form == DW_FORM_strp || attr->form == DW_FORM_string -+ || attr->form == DW_FORM_GNU_strp_alt) -+ && DW_STRING (attr)) - { - char *demangled; - diff -Nru gdb-7.10/debian/patches/elf-auxv-diff gdb-7.11.1/debian/patches/elf-auxv-diff --- gdb-7.10/debian/patches/elf-auxv-diff 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/elf-auxv-diff 2014-11-20 09:37:42.000000000 +0000 @@ -0,0 +1,37 @@ +Index: b/gdb/auxv.c +=================================================================== +--- a/gdb/auxv.c ++++ b/gdb/auxv.c +@@ -30,6 +30,7 @@ + + #include "auxv.h" + #include "elf/common.h" ++#include + + #include + #include +Index: b/gdb/gdbserver/linux-low.c +=================================================================== +--- a/gdb/gdbserver/linux-low.c ++++ b/gdb/gdbserver/linux-low.c +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include + #include + #include +Index: b/gdb/solib-svr4.c +=================================================================== +--- a/gdb/solib-svr4.c ++++ b/gdb/solib-svr4.c +@@ -48,6 +48,8 @@ + #include "gdb_bfd.h" + #include "probe.h" + ++#include ++ + static struct link_map_offsets *svr4_fetch_link_map_offsets (void); + static int svr4_have_link_map_offsets (void); + static void svr4_relocate_main_executable (void); diff -Nru gdb-7.10/debian/patches/fix-backtrace.diff gdb-7.11.1/debian/patches/fix-backtrace.diff --- gdb-7.10/debian/patches/fix-backtrace.diff 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/fix-backtrace.diff 2016-02-20 17:32:34.000000000 +0000 @@ -0,0 +1,11 @@ +--- a/gdb/python/py-framefilter.c ++++ b/gdb/python/py-framefilter.c +@@ -1122,7 +1122,7 @@ py_print_frame (PyObject *filter, int fl + + if (paddr != Py_None) + { +- address = PyLong_AsLong (paddr); ++ address = PyLong_AsUnsignedLongLong (paddr); + has_addr = 1; + } + Py_DECREF (paddr); diff -Nru gdb-7.10/debian/patches/gdb-strings.patch gdb-7.11.1/debian/patches/gdb-strings.patch --- gdb-7.10/debian/patches/gdb-strings.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/gdb-strings.patch 2014-11-20 09:37:42.000000000 +0000 @@ -0,0 +1,13 @@ +Index: b/gdb/remote.c +=================================================================== +--- a/gdb/remote.c ++++ b/gdb/remote.c +@@ -8563,7 +8563,7 @@ compare_sections_command (char *args, in + do_cleanups (old_chain); + } + if (mismatched > 0) +- warning (_("One or more sections of the target image does not match\n\ ++ warning (_("One or more sections of the target image do not match\n\ + the loaded file\n")); + if (args && !matched) + printf_filtered (_("No loaded section named '%s'.\n"), args); diff -Nru gdb-7.10/debian/patches/ptrace-error-verbosity.patch gdb-7.11.1/debian/patches/ptrace-error-verbosity.patch --- gdb-7.10/debian/patches/ptrace-error-verbosity.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdb-7.11.1/debian/patches/ptrace-error-verbosity.patch 2014-11-20 09:37:42.000000000 +0000 @@ -0,0 +1,26 @@ +Description: try to make the PTRACE scope sysctl more discoverable via a + verbose error message when failures happen. +Author: Kees Cook + +Index: b/gdb/inf-ptrace.c +=================================================================== +--- a/gdb/inf-ptrace.c ++++ b/gdb/inf-ptrace.c +@@ -223,7 +223,16 @@ inf_ptrace_attach (struct target_ops *op + errno = 0; + ptrace (PT_ATTACH, pid, (PTRACE_TYPE_ARG3)0, 0); + if (errno != 0) +- perror_with_name (("ptrace")); ++ { ++ if (errno == EPERM) ++ { ++ fprintf_unfiltered (gdb_stderr, ++ _("Could not attach to process. If your uid matches the uid of the target\n" ++ "process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try\n" ++ "again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf\n")); ++ } ++ perror_with_name (("ptrace")); ++ } + #else + error (_("This system does not support attaching to a process")); + #endif diff -Nru gdb-7.10/debian/patches/series gdb-7.11.1/debian/patches/series --- gdb-7.10/debian/patches/series 2015-09-02 01:56:11.000000000 +0000 +++ gdb-7.11.1/debian/patches/series 2017-06-09 14:41:59.000000000 +0000 @@ -5,4 +5,18 @@ python-config.patch gdb-glibc-vdso-workaround.patch load-versioned-libcc1.patch -Segmentation-fault-on-add-symbol-file-command.patch + +# Ubuntu/Linaro +gdb-strings.patch +ptrace-error-verbosity.patch +#elf-auxv-diff +fix-backtrace.diff +CVE-2016-2226.patch +CVE-2016-4487_4488.patch +CVE-2016-4489.patch +CVE-2016-4490.patch +CVE-2016-4492_4493.patch +CVE-2016-6131.patch +CVE-2016-4491-1.patch +CVE-2016-4491-2.patch +CVE-2016-4491-3.patch diff -Nru gdb-7.10/debian/rules gdb-7.11.1/debian/rules --- gdb-7.10/debian/rules 2015-09-02 02:01:21.000000000 +0000 +++ gdb-7.11.1/debian/rules 2016-02-24 17:25:04.000000000 +0000 @@ -36,6 +36,10 @@ DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_TARGET_ARCH := $(shell dpkg-architecture -qDEB_TARGET_ARCH) DEB_TARGET_GNU_TYPE := $(shell dpkg-architecture -qDEB_TARGET_GNU_TYPE) +ifeq (,$(DEB_TARGET_ARCH)) + DEB_TARGET_ARCH := $(DEB_HOST_ARCH) + DEB_TARGET_GNU_TYPE := $(DEB_HOST_GNU_TYPE) +endif # Cross configuration support. Check for an environment variable # $GDB_TARGET, or a file debian/target. @@ -66,13 +70,31 @@ TP = $(DEB_TARGET_ALIAS)- TS = -$(DEB_TARGET_ALIAS) CROSS_FORCE = FORCE +else +ifneq (,$(filter $(DEB_HOST_ARCH),i386 powerpc sparc s390)) + build64 = yes + CC64 = gcc -m64 + CFLAGS64 = $(CFLAGS) + BUILDDIR64 = $(ALL_BUILDDIR)/objdir64 + ifeq ($(DEB_HOST_ARCH),i386) + HOST64 = x86_64-linux-gnu + endif + ifeq ($(DEB_HOST_ARCH),powerpc) + HOST64 = powerpc64-linux-gnu + endif + ifeq ($(DEB_HOST_ARCH),sparc) + HOST64 = sparc64-linux-gnu + endif + ifeq ($(DEB_HOST_ARCH),s390) + HOST64 = s390x-linux-gnu + endif +endif endif distribution := $(shell lsb_release -is) deb_version := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}') BUILDDIRMULTIARCH = $(ALL_BUILDDIR)/objdir-multiarch -BUILDDIRPYTHON2 = $(ALL_BUILDDIR)/objdir-python2 run_tests := yes @@ -121,6 +143,10 @@ DEB_CONFIGURE_EXTRA_FLAGS := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \ --enable-tui --with-lzma --with-python=python3 +# 64-bit flags +DEB_CONFIGURE_FLAGS_64 := --host=$(HOST64) $(EXTRA_FLAGS) \ + --enable-tui --without-babeltrace + # multiarch targets; this is taken from the binutils-multiarch package but # doesn't seem like a terribly nice list; see # <20110117211551.GA7216@bee.dooz.org> for discussion -- locally updated @@ -143,16 +169,13 @@ powerpc-linux-gnuspe \ powerpc64le-linux-gnu \ powerpc64-linux-gnu \ - ppc64-linux-gnu \ s390-linux-gnu \ s390x-linux-gnu \ sh-linux-gnu \ - sh64-linux-gnu \ sparc-linux-gnu \ sparc64-linux-gnu \ x86_64-linux-gnu \ - m32r-linux-gnu \ - spu + m32r-linux-gnu # broken, see https://launchpad.net/bugs/1233185 #MULTIARCH_TARGETS := all @@ -167,9 +190,6 @@ DEB_CONFIGURE_FLAGS_MIN := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \ --disable-tui --without-python --without-babeltrace -DEB_CONFIGURE_FLAGS_PYTHON2 := $(DEB_CONFIGURE_EXTRA_FLAGS) \ - --with-python=python2 - # Support parallel= in DEB_BUILD_OPTIONS (see #209008) COMMA = , ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS)))) @@ -187,12 +207,15 @@ $(MAKE) -C $(DEB_BUILDDIR) info $(MAKE) -C $(DEB_BUILDDIR)/gdb/doc refcard.dvi refcard.ps -build/gdb-python2$(TS):: build-python2-stamp -build-python2-stamp: - mkdir -p $(BUILDDIRPYTHON2) - cd $(BUILDDIRPYTHON2) && CFLAGS="$(CFLAGS)" \ - $(shell pwd)/configure $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_DEBUG_ARGS) $(DEB_CONFIGURE_FLAGS_PYTHON2) - cd $(BUILDDIRPYTHON2) && $(DEB_MAKE_ENVVARS) $(MAKE) $(NJOBS) +build/gdb-doc:: check-stamp + $(MAKE) -C $(DEB_BUILDDIR)/gdb/doc pdf html + +build/gdb64:: build64-stamp +build64-stamp: + mkdir -p $(BUILDDIR64) + cd $(BUILDDIR64) && CC="$(CC64)" CFLAGS="$(CFLAGS64)" AR=ar \ + $(shell pwd)/configure $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_DEBUG_ARGS) $(DEB_CONFIGURE_FLAGS_64) + cd $(BUILDDIR64) && $(DEB_MAKE_ENVVARS) $(MAKE) $(NJOBS) touch $@ build/gdb-multiarch:: build-multiarch-stamp @@ -219,7 +242,7 @@ touch $@ clean:: - rm -f check-stamp build-multiarch-stamp + rm -f check-stamp build64-stamp build-multiarch-stamp rm -rf $(ALL_BUILDDIR) if test -f gdb/version.in.backup; then \ @@ -238,6 +261,8 @@ if [ -x debian/tmp/usr/bin/run ]; then \ mv debian/tmp/usr/bin/run \ debian/gdb$(TS)/usr/bin/$(DEB_TARGET_ALIAS)-run; \ + fi + if [ -x debian/tmp/usr/share/man/man1/run.1 ]; then \ mv debian/tmp/usr/share/man/man1/run.1 \ debian/gdb$(TS)/usr/share/man/man1/$(DEB_TARGET_ALIAS)-run.1; \ fi @@ -247,19 +272,6 @@ debian/gdb$(TS)/usr/share/doc/gdb/check.log endif -binary-post-install/gdb-python2$(TS) :: - if [ -x debian/tmp/usr/bin/run ]; then \ - mv debian/tmp/usr/bin/run \ - debian/gdb-python2$(TS)/usr/bin/$(DEB_TARGET_ALIAS)-run; \ - mv debian/tmp/usr/share/man/man1/run.1 \ - debian/gdb-python2$(TS)/usr/share/man/man1/$(DEB_TARGET_ALIAS)-run.1; \ - fi -ifeq ($(run_tests),yes) - install -d debian/gdb-python2$(TS)/usr/share/doc/gdb - install -m 644 $(DEB_BUILDDIR)/gdb/testsuite/gdb.sum \ - debian/gdb-python2$(TS)/usr/share/doc/gdb/check.log -endif - ifneq ($(DEB_CROSS),yes) # Only ship a global gdbinit for the native GDB. install -d debian/gdb$(TS)/etc/gdb @@ -271,6 +283,32 @@ rm -f debian/gdb$(TS)/usr/bin/$(TP)gdbtui install -m 755 debian/gdbtui debian/gdb$(TS)/usr/bin/$(TP)gdbtui +binary-post-install/gdb-doc :: + install -d debian/gdb-doc/usr/share/info + install -m 644 debian/tmp/usr/share/info/gdb.info debian/gdb-doc/usr/share/info/. + install -m 644 debian/tmp/usr/share/info/stabs.info debian/gdb-doc/usr/share/info/. + + $(MAKE) -C $(DEB_BUILDDIR)/gdb/doc DESTDIR=$(CURDIR)/debian/gdb-doc \ + pdfdir=/usr/share/doc/gdb-doc/pdf \ + htmldir=/usr/share/doc/gdb-doc/html \ + install-html install-pdf + : # This manual documents a long-obsolete facility + rm -f debian/gdb-doc/usr/share/info/annota* + rm -rf debian/gdb-doc/usr/share/doc/gdb-doc/*/annota* + + rm -f debian/gdb-doc/usr/share/info/dir* + + : # Symlink stuff into gdb's doc directory + install -d debian/gdb-doc/usr/share/doc/gdb + ln -s ../gdb-doc/html debian/gdb-doc/usr/share/doc/gdb/html + ln -s ../gdb-doc/pdf debian/gdb-doc/usr/share/doc/gdb/pdf + +binary-post-install/gdb64 :: + install -d debian/gdb64/usr/bin + install -s -m 755 $(BUILDDIR64)/gdb/gdb debian/gdb64/usr/bin/gdb64 + rm -rf debian/gdb64/usr/share/doc/gdb64 + ln -s gdb debian/gdb64/usr/share/doc/gdb64 + binary-post-install/gdb-multiarch :: install -d debian/gdb-multiarch/usr/bin install -s -m 755 $(BUILDDIRMULTIARCH)/gdb/gdb debian/gdb-multiarch/usr/bin/gdb-multiarch @@ -280,7 +318,10 @@ binary-post-install/gdbserver :: install -d debian/gdbserver/usr/lib # This file is only built on some arches (x86 ones, so far) - -install debian/tmp/usr/lib/libinproctrace.so debian/gdbserver/usr/lib/ + if [ -f debian/tmp/usr/lib/libinproctrace.so ]; then \ + mkdir -p debian/gdbserver/usr/lib/$(DEB_HOST_MULTIARCH); \ + install debian/tmp/usr/lib/libinproctrace.so debian/gdbserver/usr/lib/$(DEB_HOST_MULTIARCH); \ + fi binary-post-install/gdb-minimal :: install -d debian/gdb-minimal/usr/bin @@ -309,11 +350,9 @@ | sed "s/@TS@/$(TS)/g" \ > debian/control ifeq ($(DEB_CROSS),yes) - sed -i "/Package: gdb-multiarch/,\$$ d" debian/control + sed -i "/Package: gdb64/,\$$ d" -i "/Package: gdb-multiarch/,\$$ d" debian/control sed "s+/gdb+/$(TP)gdb+g; s+usr/share/$(TP)gdb+usr/share/gdb$(TS)+g" \ debian/gdb.install > debian/gdb$(TS).install - sed "s+/gdb+/$(TP)gdb+g; s+usr/share/$(TP)gdb+usr/share/gdb-python2$(TS)+g" \ - debian/gdb.install > debian/gdb-python2$(TS).install endif # The default changelog is the top level one, which is useless. @@ -326,21 +365,15 @@ gdb/contrib/ DEB_INSTALL_CHANGELOGS_gdb$(TS) = gdb/ChangeLog ifneq ($(DEB_CROSS),yes) -DEB_INSTALL_MANPAGES_gdb$(TS) = debian/gcore.1 -endif - -DEB_INSTALL_DOCS_gdb-python2$(TS) = gdb/NEWS gdb/README gdb/doc/refcard.tex \ - $(DEB_BUILDDIR)/gdb/doc/refcard.dvi \ - $(DEB_BUILDDIR)/gdb/doc/refcard.ps \ - debian/README.python_switch \ - gdb/contrib/ -DEB_INSTALL_CHANGELOGS_gdb-python2$(TS) = gdb/ChangeLog -ifneq ($(DEB_CROSS),yes) -DEB_INSTALL_MANPAGES_gdb-python2$(TS) = debian/gcore.1 +DEB_INSTALL_MANPAGES_gdb$(TS) = $(DEB_BUILDDIR)/gdb/doc/gdb.1 \ + $(DEB_BUILDDIR)/gdb/doc/gcore.1 endif DEB_INSTALL_DOCS_gdbserver = gdb/gdbserver/README DEB_INSTALL_CHANGELOGS_gdbserver = gdb/gdbserver/ChangeLog +ifneq ($(DEB_CROSS),yes) +DEB_INSTALL_MANPAGES_gdbserver = $(DEB_BUILDDIR)/gdb/doc/gdbserver.1 +endif DEB_INSTALL_DOCS_gdb-minimal = $(DEB_INSTALL_DOCS_gdb$(TS)) DEB_INSTALL_CHANGELOGS_gdb-minimal = -XChangeLog diff -Nru gdb-7.10/debian/source/lintian-overrides gdb-7.11.1/debian/source/lintian-overrides --- gdb-7.10/debian/source/lintian-overrides 2015-09-02 01:56:11.000000000 +0000 +++ gdb-7.11.1/debian/source/lintian-overrides 2014-11-20 09:37:42.000000000 +0000 @@ -1,3 +1,6 @@ # We do not use the included readline. gdb source: outdated-autotools-helper-file readline/support/config.guess * gdb source: outdated-autotools-helper-file readline/support/config.sub * + +# fine for Ubuntu +gdb source: license-problem-gfdl-invariants