summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/NEWS23
-rw-r--r--debian/README.Debian12
-rw-r--r--debian/README.source9
-rw-r--r--debian/changelog2287
-rw-r--r--debian/compat1
-rw-r--r--debian/control123
-rw-r--r--debian/control.in123
-rw-r--r--debian/copyright480
-rw-r--r--debian/gbp.conf4
-rw-r--r--debian/gcore.134
-rwxr-xr-xdebian/gdb-multiarch.postinst13
-rwxr-xr-xdebian/gdb-source.postinst13
-rw-r--r--debian/gdb-source.preinst12
-rw-r--r--debian/gdb.install4
-rw-r--r--debian/gdb.menu3
-rw-r--r--debian/gdbinit1
-rw-r--r--debian/gdbserver.install1
-rwxr-xr-xdebian/gdbtui10
-rw-r--r--debian/patches/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch286
-rw-r--r--debian/patches/gdb-PATH_MAX.patch21
-rw-r--r--debian/patches/gdb-fortran-main.patch91
-rw-r--r--debian/patches/gdb-glibc-vdso-workaround.patch35
-rw-r--r--debian/patches/gdb_bsd-kvm.c.diff31
-rw-r--r--debian/patches/gdb_configure.nat.patch22
-rw-r--r--debian/patches/load-versioned-libcc1.patch27
-rw-r--r--debian/patches/python-config.patch193
-rw-r--r--debian/patches/series10
-rw-r--r--debian/patches/solve_PATH_MAX_issue.patch50
-rw-r--r--debian/patches/struct-thread_info.patch249
-rwxr-xr-xdebian/rules321
-rw-r--r--debian/salsa-ci.yml7
-rw-r--r--debian/sanitize-gdb.sh84
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/include-binaries1
-rw-r--r--debian/source/lintian-overrides3
-rw-r--r--debian/upstream-signing-key.pgpbin0 -> 1160 bytes
-rw-r--r--debian/upstream/signing-key.asc30
-rw-r--r--debian/watch3
38 files changed, 4618 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..f2ac5ee
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,23 @@
+gdb (8.2-1) unstable; urgency=medium
+
+ gdb-python2 package has been removed, starting with GDB 8.2.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Fri, 23 Nov 2018 22:56:43 +0100
+
+gdb (7.8-1) experimental; urgency=medium
+
+ WARNING: gdb now uses Python 3 by default.
+
+ Please update your Python scripts to work on both Python 2 and 3 as
+ soon as possible.
+
+ See /usr/share/doc/gdb*/README.python_switch for details.
+
+ -- Samuel Bronson <naesten@gmail.com> Tue, 26 Aug 2014 14:04:20 -0400
+
+gdb (7.4really-1) unstable; urgency=low
+
+ gdbtui binary is deprecated, starting with GDB 7.5.
+ Use "gdb -tui" instead.
+
+ -- Hector Oron <zumbi@debian.org> Sat, 28 Jan 2012 00:43:37 +0100
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..2f57f05
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,12 @@
+GDB is a complex program. There is an excellent Info manual (`info gdb'),
+which is available in the separate gdb-doc package. gdb-doc is not part of
+Debian main; it is available in the non-free distribution (because it is
+covered by the GNU Free Documentation License).
+
+GDB's documentation is also available online. Documentation from the
+most recent release branch may be found at:
+ http://sourceware.org/gdb/onlinedocs/gdb.html
+
+There are also a number of books and tutorials devoted to GDB. One
+particularly useful guide is Peter Jay Salzman's, at:
+ http://www.dirac.org/linux/gdb/
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..e8529f8
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Debian and the FSF have different positions on the GFDL.
+Consequently, the GDB release tarball includes GFDL documents which
+must go in the Debian non-free section.
+
+To produce the necessary tarballs, download an official GDB release as
+.tar.bz2 from the FSF. Run debian/sanitize-gdb.sh on it. That
+will produce a gdb .orig.tar.xz and a gdb-doc .orig.tar.xz
+
+ -- Samuel Bronson <naesten@gmail.com>, Sat, 3 May 2014 17:22:31 -0400
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0e646bb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,2287 @@
+gdb (8.3.1-1) unstable; urgency=medium
+
+ * New upstream version 8.3.1 (Closes: #865607)
+ * debian/control: drop flex-old build depend. (Closes: #932514)
+ * debian/salsa-ci.yml: add support for continous integration
+ * debian/control: bump standards version, no changes
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Fri, 11 Oct 2019 13:26:07 +0200
+
+gdb (8.3-1) unstable; urgency=medium
+
+ * New upstream version 8.3.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Mon, 22 Jul 2019 04:36:24 +0200
+
+gdb (8.2.50.20190222-1) experimental; urgency=medium
+
+ * New upstream version 8.2.50.20190222
+ * debian/patches: rebase patchset
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Fri, 22 Feb 2019 11:38:18 +0100
+
+gdb (8.2.1-2) unstable; urgency=medium
+
+ * debian/patches: binutils PR/23919 (Closes: #922745)
+ * debian/patches: fix gdb PR/23712 (Closes: #922030)
+ * debian/rules: include riscv* in multiarch targets (Closes: #922796)
+ * Bump standards version
+ * fix kfreebsd-any build (Closes: #917806)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Fri, 22 Feb 2019 09:46:36 +0100
+
+gdb (8.2.1-1) unstable; urgency=medium
+
+ * New upstream version 8.2.1
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Fri, 08 Feb 2019 13:24:11 +0100
+
+gdb (8.2-1) unstable; urgency=medium
+
+ * Imported upstream version 8.2, changes in this release:
+ - Support for the following target has been added:
+ + RiscV ELF (riscv*-*-elf)
+ - Support for following targets and native configurations has been removed:
+ + m88k running OpenBSD (m88*-*-openbsd*)
+ + SH-5/SH64 ELF (sh64-*-elf*)
+ + SH-5/SH64 (sh*)
+ + SH-5/SH64 running GNU/Linux (sh*-*-linux*)
+ + SH-5/SH64 running OpenBSD (sh*-*-openbsd*)
+ - Various Python API enhancements
+ - Aarch64/Linux enhancements:
+ + SVE support.
+ + Hardware watchpoints improvements for entities stored at unaligned addresses.
+ * debian/patches: refresh to newer version
+ * drop support for gdb-python2 binary package
+ * Fix "gdb ftbfs with Python 3.7"
+ (Closes: #914744)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Tue, 27 Nov 2018 17:08:00 +0100
+
+gdb (8.1-4) unstable; urgency=medium
+
+ * debian/patches/gcore-needs-bash.patch: update with patch from upstream
+ (Closes: #904160)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Mon, 23 Jul 2018 04:55:10 +0200
+
+gdb (8.1-3) unstable; urgency=medium
+
+ * debian/patches: hurd-i386 support fixes
+ (Closes: #881569)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Tue, 17 Jul 2018 02:00:09 +0200
+
+gdb (8.1-2) unstable; urgency=medium
+
+ * debian/control.in: install libipt-dev on i386 and x32
+ * debian/control.in: use binary-targets in Rules-Requires-Root
+ (change from previous version)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Mon, 16 Jul 2018 03:10:45 +0200
+
+gdb (8.1-1) unstable; urgency=medium
+
+ [ Héctor Orón Martínez ]
+ * Imported Upstream version 8.1, changes in this release:
+ - Breakpoints on C++ functions are now set on all scopes by default
+ ("wild" matching);
+ - Support for inserting breakpoints on functions marked with C++ ABI tags;
+ - Target floating-point arithmetic emulation during expression evaluation
+ (requires MPFR 3.1 or later);
+ - Various Python Scripting enhancements;
+ - Improved Rust support; in particular, Trait objects can now be inspected
+ when debugging Rust code;
+ - GDB no longer makes assumptions about the type of symbols without
+ debugging information to avoid producing erroneous and often confusing
+ results;
+ - The 'enable' and 'disable' commands now accept a range of breakpoint
+ locations;
+ - New 'starti' command to start the program at the first instruction;
+ - New 'rbreak' command to insert a number of breakpoints via a regular
+ expression pattern (requires Python);
+ - The 'ptype' command now supports printing the offset and size of
+ the fields in a struct;
+ - The 'gcore' command now supports dumping all the memory mappings
+ ('-a' command-line option);
+ - New shortcuts for TUI Single-Key mode: 'i' for stepi, and 'o' for nexti;
+ - GDBserver enhancements:
+ + Support for transmitting environment variables to GDBserver;
+ + Support for starting inferior processes with a specified initial
+ working directory;
+ + On Unix systems, support for globbing expansion and variable
+ substitution of inferior command-line arguments;
+ - Various completion enhancements;
+ - The command used to compile and inject code with the 'compile' command
+ is now configurable;
+ - New '--readnever' command-line option to speed the GDB startup when
+ debugging information is not needed;
+ - Support for the following new native configurations:
+ + FreeBSD/aarch64 (aarch64*-*-freebsd*);
+ + FreeBSD/arm (arm*-*-freebsd*);
+ - Support for the following new targets:
+ + FreeBSD/aarch64 (aarch64*-*-freebsd*);
+ + FreeBSD/arm (arm*-*-freebsd*);
+ + OpenRISC ELF (or1k*-*-elf)
+ - Removed support for the following targets and native configurations:
+ + Solaris2/x86 (i?86-*-solaris2.[0-9]);
+ + Solaris2/sparc (sparc*-*-solaris2.[0-9]);
+ (Closes: #886658, #881569, #894702)
+ * debian/patches: refresh series
+ * debian/copyright: use https instead http
+ * debian/control.in: set Rules-Requires-Root to no
+ * debian/control.in: bump standards version
+ * debian/control.in: thanks Samuel Bronson for past work
+ (Closes: #883814)
+ * debian/control.in: thanks Luca Bruno for past work
+ * debian/control: sync to debian/control.in
+
+ [ James Clarke ]
+ * Use unversioned libunwind-dev build dependency on ia64
+ (Closes: #884105)
+
+ [ Jack Henschel ]
+ * Enable Intel PT
+ (Closes: #872800)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Wed, 11 Jul 2018 19:59:33 +0200
+
+gdb (8.0-1) experimental; urgency=medium
+
+ * Imported Upstream version 8.0, changes in this release:
+ - C++: Support for rvalue references
+ - Python scripting enhancements:
+ + New functions to start, stop and access a running btrace recording.
+ + Rvalue reference support in gdb.Type.
+ - GDB commands interpreter:
+ + User commands now accept an unlimited number of arguments.
+ + The "eval" command now expands user-defined arguments.
+ - DWARF version 5 support
+ (note that its .debug_names index is not supported yet).
+ - GDB/MI enhancements:
+ + New -file-list-shared-libraries command to list the shared libraries
+ in the program.
+ + New -target-flash-erase command, to erase flash memory.
+ - Support for native FreeBSD/mips (mips*-*-freebsd)
+ - Support for the following targets:
+ + Synopsys ARC (arc*-*-elf32)
+ + FreeBSD/mips (mips*-*-freebsd)
+ - Miscellaneous enhancements:
+ + Command-line redirection now supported on MS-Windows hosts.
+ + Support for thread names on MS-Windows.
+ + Support for the PKU register on GNU/Linux.
+ + Support for Target descriptions on sparc32 and sparc64.
+ + New GDB/CLI command to erase flash memory
+ + rdrand and rdseed instructions record/replay support.
+ * Support for the following features have been removed:
+ - Support for Java programs compiled with gcj
+ - Support for the following configurations:
+ + FreeBSD/alpha (alpha*-*-freebsd*)
+ + GNU/kFreeBSD/alpha (alpha*-*-kfreebsd*-gnu)
+ * debian/patches: refresh for new release.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Sun, 04 Jun 2017 20:10:39 +0200
+
+gdb (7.12-6) unstable; urgency=medium
+
+ * debian/patches: import 7.12 branch fixes
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Thu, 19 Jan 2017 11:28:25 +0100
+
+gdb (7.12-5) unstable; urgency=medium
+
+ * debian/control{,.in}: replace mipsel64 by mips64el.
+ (Closes: #835522)
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Tue, 17 Jan 2017 12:01:16 +0100
+
+gdb (7.12-4) unstable; urgency=medium
+
+ * debian/sanitize-gdb.sh: drop chm from doc tarball as well.
+ - lintian complains *.chm files are included without sources
+ * Revert "debian/control: declare gdb{,-python2} m-a same"
+ (Closes: #848362)
+ * debian/patches: fix python framefilter.
+ - get address as long instead of unsigned long.
+ (Closes: #814558)
+ * debian/gbp.conf: add upstream branch, pristine-tar.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Sun, 18 Dec 2016 01:44:24 +0100
+
+gdb (7.12-3) unstable; urgency=medium
+
+ * debian/patches:
+ - backport build fixes for Hurd.
+ (Closes: #834575)
+ * debian/rules: clean target, remove debian/files.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Thu, 15 Dec 2016 01:50:31 +0100
+
+gdb (7.12-2) unstable; urgency=medium
+
+ * debian/control*:
+ - add mipsel64 arch to gdbserver.
+ (Closes: #835522)
+ - demote gdbserver to suggests.
+ (Closes: #820459)
+ - gdb-multiarch alternatively depend on gdb-python2.
+ (Closes: #798405)
+ - add kFreeBSD build depend on libutil-freebsd-dev.
+ - restrict libutil-freebsd-dev to kfreebsd arches.
+ - declare gdb{,-python2} multi-arch same.
+ * debian/gdb{,-python2}.install: add jit-reader header.
+ (Closes: #761903)
+ * debian/rules:
+ - build with fPIC, attempt to fix build failures on kfreebsd and x32.
+ - lowercase package name on DEB_DH_STRIP_ARGS.
+ * debian/patches: drop linuxthreads_signal_handling.patch
+ - kFreeBSD seem to be using fptl now, no need for linuxthreads signals.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Wed, 14 Dec 2016 12:18:36 +0100
+
+gdb (7.12-1) unstable; urgency=medium
+
+ [ Agustin Henze ]
+ * Add `arm-none-eabi` as target for bare metal embedded systems
+ * Set Conflicts, Breaks and Provides fields to replace gdb-arm-none-eabi for gdb-multiarch
+
+ [ Héctor Orón Martínez ]
+ * New upstream version 7.12
+ * debian/patches: refresh patchset
+ * migrate from dbg to dbgsym debug package
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Mon, 12 Dec 2016 17:04:48 +0100
+
+gdb (7.11.1-2) unstable; urgency=medium
+
+ * Fix build when run.1 is missing
+
+ -- Riku Voipio <riku.voipio@linaro.org> Fri, 17 Jun 2016 15:43:34 +0300
+
+gdb (7.11.1-1) unstable; urgency=medium
+
+ * New upstream version
+ * Ack NMU, Fixed gdb-python, thanks Andreas!
+
+ -- Riku Voipio <riku.voipio@linaro.org> Thu, 16 Jun 2016 14:49:19 +0300
+
+gdb (7.10-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix build of gdb-python2 package (Closes: #798401)
+
+ -- Andreas Bombe <aeb@debian.org> Sat, 28 May 2016 17:22:54 +0200
+
+gdb (7.10-1) unstable; urgency=medium
+
+ * Imported Upstream version 7.10:
+ - Improved support for accessing shared libraries directly from
+ the target system when debugging remotely.
+ - Various Guile and Python scripting improvements, including (but not
+ limited to):
+ + Support for auto-loading Python/Guile scripts contained
+ in a special section named `.debug_gdb_scripts'.
+ + Support for writing a frame unwinder in Python.
+ - Support for record-replay and reverse debugging on Aarch64 Linux.
+ - GDB now has support for fork events on extended-remote Linux targets
+ (Linux kernels 2.5.60 and later).
+ - Support for DTrace USDT (Userland Static Defined Tracing) probes
+ on x86_64 GNU/Linux targets.
+ - Vector ABI support on S/390 GNU/Linux targets.
+ - GDB now reads the GDBHISTSIZE environment variable rather than
+ HISTSIZE to determine the size of GDB's command history.
+ - Support for setting the parity when connecting to the target
+ using a serial interface.
+ - It is now possible to limit the number of candidates to be
+ considered during completion.
+ - Support for Sun's version of the "stabs" debug file format
+ has been removed.
+ - Support for the following targets and native configurations has
+ been removed:
+ + HP/PA running HP-UX (hppa*-*-hpux*)
+ + Itanium running HP-UX (ia64-*-hpux*)
+ * d/control: make more explicit gdb-python2 is linked with python2.
+ (Closes: #761421)
+ * Drop libgdb-dev postinst. Not needed anymore.
+ * d/rules: configure with --with-system-zlib all targets
+ * sanitize: drop chm embedded files
+ * d/control.in,rules: attempt to manage python files (*.pyc) with cdbs
+ (Closes: #786384)
+
+ -- Hector Oron <zumbi@debian.org> Wed, 02 Sep 2015 04:04:33 +0200
+
+gdb (7.9.1-1) unstable; urgency=medium
+
+ * 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
+
+ -- Hector Oron <zumbi@debian.org> Wed, 19 Aug 2015 21:27:17 +0200
+
+gdb (7.9-1) experimental; urgency=medium
+
+ * Imported Upstream version 7.9
+ - GDB 7.9 brings new targets, features and improvements, including:
+ + Many improvements in GDB's Python scripting API.
+ + Compilation and injection of source code into the inferior
+ (requires GCC 5.0 or higher built with libcc1.so).
+ + On resume, GDB now always passes the signal the program had stopped
+ for to the thread the signal was sent to, even if the user changed
+ threads before resuming. Previously GDB would often (but not
+ always) deliver the signal to the thread that happens to be current
+ at resume time.
+ + Conversely, the "signal" command now consistently delivers the
+ requested signal to the current thread. GDB now asks for
+ confirmation if the program had stopped for a signal and the user
+ switched threads meanwhile.
+ + Hardware watchpoint support on x86 GNU Hurd.
+ + New target: MIPS SDE, mips*-sde*-elf*
+ + New commands:
+ - add-auto-load-scripts-directory directory
+ - compile code [-r|-raw] [--] [source code]
+ - compile file [-r|-raw] filename
+ - demangle [-l language] [--] name
+ - maint print user-registers
+ - queue-signal signal-name-or-number
+ + New options
+ - set debug symbol-lookup
+ - show debug symbol-lookup
+ + MI changes
+ - New exit-code field in -list-thread-groups command output
+ + Support for these obsolete configurations has been removed.
+ - Alpha running OSF/1 (or Tru64) alpha*-*-osf*
+ - SGI Irix-5.x mips-*-irix5*
+ - SGI Irix-6.x mips-*-irix6*
+ - VAX running (4.2 - 4.3 Reno) BSD vax-*-bsd*
+ - VAX running Ultrix vax-*-ultrix*
+ + The "dll-symbols" command, and its two aliases
+ ("add-shared-symbol-files" and "assf"), have been removed.
+ Use the "sharedlibrary" command, or its alias "share", instead.
+ * d/README.python_switch: fix typo. (Closes: #761688)
+ * Replace gdb64 packages by gdb multiarch. (Closes: #775948)
+
+ -- Hector Oron <zumbi@debian.org> Thu, 19 Mar 2015 13:18:58 +0100
+
+gdb (7.8.2-1) experimental; 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.
+
+ -- Hector Oron <zumbi@debian.org> Thu, 22 Jan 2015 02:24:52 +0100
+
+gdb (7.8.1-1) experimental; urgency=medium
+
+ * Imported Upstream version 7.8.1
+ - GDB 7.8.1 provides the following fixes and improvements over GDB 7.8:
+ + PR python/17364 (Need better printer names in bound_registers.py)
+ + PR build/17104 (CFLAGS="-Wall -Wextra" gdb/confgure --with-babeltrace
+ fails)
+ + PR gdb/17345 (babeltrace (1.1.2 and later) complains about the ctf
+ data generated by GDB)
+ + PR build/17298 (gcore: Couldn't get registers: No such process)
+ + PR python/17342 (Xmethod Python is not Python 3 compatible)
+ + PR python/17355 (Crash on Python frame filters with unreadable arg)
+ + PR guile/17367 (computation of guild path wrong when pkg-config script
+ supplied as arg to --with-guile)
+ + PR gdb/17247 (gdb freezes on multi threaded app)
+ + PR gdb/17347 (Regression: GDB stopped on run with attached process)
+ + PR gdb/17407 (Regression for Linux vDSO reading)
+ + PR server/17457 (aarch64/gdbserver: wrong floating point registers
+ display)
+ + PR server/17487 (state->dr_control_mirror == 0 failed assertion in
+ gdbserver on Windows)
+ + PR gdb/17472 (with annotations, input while executing in the foreground
+ crashes readline/gdb)
+ + PR gdb/17471 (repeating a background command makes it foreground)
+ + PR cli/17300 (crash in non-stop mode with continue -a &
+ (readline_callback_read_char() called with no handler!))
+ + PR python/17372 (python hangs when displaying help())
+ + PR python/17408 (../../gdb/infrun.c:5256: internal-error:
+ switch_back_to_stepped_thread: Assertion `!schedlock_applies(1)'
+ failed.)
+ - Fix --batch mode parameter
+ (Closes: #763518)
+ * d/control*:
+ - Bump Standars Version stanza, no changes needed.
+ - -dbg depends on main binary version.
+ * d/rules: fix FTBFS caused by dpkg 1.17.17 changes.
+ (Closes: #766754)
+
+ -- Hector Oron <zumbi@debian.org> Sun, 09 Nov 2014 16:29:31 +0100
+
+gdb (7.8-1) experimental; urgency=medium
+
+ [ Samuel Bronson ]
+ * d/sanitize-gdb.sh: Don't assume input is .tar.bz2
+ * Imported Upstream version 7.8
+ - GDB 7.8 brings new targets, features and improvements, including:
+ * Guile scripting support. [Not enabled for Debian!]
+ * Python scripting enhancements.
+ * New commands:
+ ** guile
+ ** guile-repl
+ ** info auto-load guile-scripts [REGEXP]
+ * New options:
+ ** maint ada set ignore-descriptive-types (on|off)
+ ** maint set target-async (on|off)
+ ** set|show auto-load guile-scripts (on|off)
+ ** set|show auto-connect-native-target
+ ** set|show guile print-stack (none|message|full)
+ ** set|show mi-async (on|off)
+ ** set|show print symbol-loading (off|brief|full)
+ ** set|show record btrace replay-memory-access (read-only|read-write)
+ * Deprecated commands:
+ ** "dll-symbols" and its two aliases ("add-shared-symbol-files" and
+ "assf"). Use the "sharedlibrary" command instead.
+ ** "set|show remotebaud". Use "set|show serial baud" instead.
+ * Remote Protocol:
+ ** The qXfer:btrace:read packet supports a new annex 'delta'.
+ * GDB/MI:
+ ** A new option "-gdb-set mi-async" replaces "-gdb-set target-async".
+ * New target configurations:
+ ** PowerPC64 GNU/Linux little-endian powerpc64le-*-linux*
+ * btrace enhancements:
+ ** The btrace record target now supports the 'record goto' command.
+ ** The btrace record target supports limited reverse execution and
+ replay.
+ * ISO C99 variable length automatic arrays support.
+ * It is no longer required to "set target-async on" in order to use
+ background execution commands (e.g., "c&", "s&", etc.).
+ * "catch syscall" now implemented on s390*-linux* targets.
+ * The "compare-sections" command now works on all targets.
+ * The "target native" command now connects to the native target, and
+ can be used to launch native programs, even if "set
+ auto-connect-native-target" is set to off.
+ * debian/patches: Update for new upstream version
+ - Remove patches subsumed by new upstream version/tarball:
+ + ppc64le.diff
+ + 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
+ + kfreebsd_bug752390.diff
+ + restore-run.1.patch
+ - Adjust patches to work with new upstream version:
+ + gdb-fortran-main.patch: Update for upstream changes
+ + python-config.patch: Remove parts applied upstream
+
+ [ Héctor Orón Martínez ]
+ * Switch gdb to python3 (Closes: #752581)
+ + Add gdb-python2 package for use with python2-only scripts
+ * Enable babeltrace on supported arches
+
+ [ Samuel Bronson ]
+ * Make gdb-python2 provide gdb.
+ * Totally rewrite the NEWS entry about the Python changes.
+ + And split out most of the new text to README.python_switch.
+
+ -- Samuel Bronson <naesten@gmail.com> Tue, 26 Aug 2014 15:34:03 -0400
+
+gdb (7.7.1+dfsg-3) unstable; 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
+
+ -- Samuel Bronson <naesten@gmail.com> Thu, 14 Aug 2014 18:16:50 -0400
+
+gdb (7.7.1+dfsg-2) unstable; urgency=medium
+
+ * Fix FTBFS on non-x86 trying to install unbuilt libinproctrace.so
+
+ -- Samuel Bronson <naesten@gmail.com> Tue, 12 Aug 2014 16:21:03 -0400
+
+gdb (7.7.1+dfsg-1) unstable; urgency=medium
+
+ [ Héctor Orón Martínez ]
+ * d/changelog: replace nickname by real name in previous block
+
+ [ Gabriele Giacone ]
+ * Fix FTBFS on Hurd.
+ + Cherry-pick from upstream:
+ hurd-new-RPC-reply-stub-functions.patch
+ hurd-adapt-to-changed-MIG-output.patch
+ hurd-adjust-to-startup-with-shell-changes.patch
+ hurd-make-MIG-output-parsing-more-robust.patch
+ (Closes: #752574)
+
+ [ Samuel Bronson ]
+ * Ship /usr/lib/libinproctrace.so with gdbserver.
+ This enables the "agent" features.
+ * d/copyright: correct a licensecheck error; add required license texts/blurbs
+ * d/gdb.install: Include gcore in gdb package (Closes: #752317).
+ Thanks to Lorenzo Beretta for the report.
+ * New patch to fix the build on kFreeBSD.
+ Thanks to Steven Chamberlain for a fix (Closes: #752390, #752295).
+ * d/watch: Update to be more flexible about upstream tarball format.
+
+ Last but not least,
+ * Use correct tarball, with non-free upstream manpages stripped.
+ Restores DFSG-compliance.
+
+ [ Hector Oron ]
+ * Rename upstream tarball to not conflict with the one in archive.
+
+ -- Samuel Bronson <naesten@gmail.com> Sat, 09 Aug 2014 13:11:35 -0400
+
+gdb (7.7.1-2) unstable; 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)
+
+ -- Hector Oron <zumbi@debian.org> Wed, 18 Jun 2014 01:42:25 +0200
+
+gdb (7.7.1-1) unstable; 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
+
+ [ 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.
+
+ [ 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)
+
+ -- Hector Oron <zumbi@debian.org> Sat, 31 May 2014 11:12:46 +0200
+
+gdb (7.6.2-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Build using python3. Closes: #727003.
+
+ -- Matthias Klose <doko@debian.org> Sat, 03 May 2014 15:56:03 +0200
+
+gdb (7.6.2-1) unstable; urgency=low
+
+ * 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.
+
+ -- Hector Oron <zumbi@debian.org> Sat, 18 Jan 2014 14:28:01 +0100
+
+gdb (7.6.1-1) unstable; urgency=low
+
+ [ 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 <zumbi@debian.org> Tue, 08 Oct 2013 17:23:45 +0000
+
+gdb (7.6-5) unstable; urgency=low
+
+ [ Samuel Bronson ]
+ * d/control{,.in}: revert to B-D on libunwind7-dev [ia64].
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Sat, 06 Jul 2013 12:17:24 +0200
+
+gdb (7.6-4) unstable; urgency=low
+
+ [ Samuel Bronson ]
+ * d/rules: Exclude .git from gdb-source package.
+ * d/control{,.in}: Bump ia64 B-D to libunwind8-dev for transition.
+ * d/NEWS: Fix version number so lintian will shut up about it.
+ * d/patches:
+ - Remove no-longer-used patches:
+ + 0000-tui-skip-registers-pr-tui-13073.patch: Old Backport
+ + 0001-netbsd-init-match-property-field.patch: Old Backport
+ + 0002-add-cpu-to-source-release.patch: Old Backport
+ + m68k-thread-debugging.patch: Old Backport or Merged Upstream
+ + gdbinit-ownership.patch: handled differently upstream
+ + member-field-symtab.patch: the patched code disappeared
+ - Drop patches for problems that have gone away:
+ + dwarf2-cfi-warning.patch: I'm not seeing any spam without this.
+ + linux-clear-thread-list.patch: #303736 is gone even without this.
+ - Add/reformat metadata:
+ + gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
+ + solve_PATH_MAX_issue.patch
+ + linuxthreads_signal_handling.patch
+ * d/control{,.in}: Reformat relationship fields.
+ * d/rules:
+ - Allow gdb-minimal to use expat.
+ - Get hardening flags working.
+ - Explicitly configure gdb64 --with-expat.
+ - s/--with-libunwind/--with-libunwind-ia64/; the former is depracated.
+ - Make gdb --version report exact package version much as
+ gcc --version does.
+ * Build gdbserver on arm64.
+ * Avoid identical short or long descriptions between packages.
+ * Remove stray "The" from short descriptions.
+
+ [ Hector Oron ]
+ * d/p/upstream-print_insn_rl78-workaround.patch
+ + Fix "FTBFS: gdb compile failed" (Closes: #713735)
+
+ -- Hector Oron <zumbi@debian.org> Wed, 26 Jun 2013 02:59:24 +0200
+
+gdb (7.6-3) unstable; urgency=low
+
+ [ Héctor Orón Martínez ]
+ * d/gbp.conf:
+ - switch debian-branch to master
+ * d/control{,.in}:
+ - add replaces gdb-multiarch (<< 7.6-1). (Closes: #709232)
+ * d/p/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch:
+ - fix refuses to print errno. (Closes: #581707)
+
+ [ Svante Signell ]
+ * d/p/solve_PATH_MAX_issue.patch: new patch fixes FTBFS on hurd.
+ (Closes: #709508)
+
+ [ Samuel Bronson ]
+ * debian/rules: Don't abort test suite on "ulimit -c unlimited" failure;
+ do abort building early on failure to invoke the test suite.
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Fri, 24 May 2013 10:09:03 +0200
+
+gdb (7.6-2) unstable; urgency=low
+
+ * Fix truncated maintainer field. (Closes: #709118)
+ * d/control{,.in}: link 64-bit arch against expat.
+
+ -- Hector Oron <zumbi@debian.org> Tue, 21 May 2013 12:58:01 +0200
+
+gdb (7.6-1) unstable; urgency=low
+
+ * Imported Upstream version 7.6
+ * New upstream features:
+ - GDB 7.6 brings new targets, features and improvements, including:
+ * New native configurations:
+ ARM AArch64 GNU/Linux aarch64*-*-linux-gnu
+ FreeBSD/powerpc powerpc*-*-freebsd
+ x86_64/Cygwin x86_64-*-cygwin*
+ Tilera TILE-Gx GNU/Linux tilegx*-*-linux-gnu
+ * New target configurations:
+ ARM AArch64 aarch64*-*-elf
+ ARM AArch64 GNU/Linux aarch64*-*-linux
+ Lynx 178 PowerPC powerpc-*-lynx*178
+ x86_64/Cygwin x86_64-*-cygwin*
+ Tilera TILE-Gx GNU/Linux tilegx*-*-linux
+ * New configure options: -enable-libmcheck/--disable-libmcheck
+ * Support for the "mini debuginfo" section, .gnu_debugdata
+ * The C++ ABI now defaults to the GNU v3 ABI. This has been the
+ default for GCC since November 2000.
+ * New command line option: -nh (disables auto-loading of ~/.gdbinit)
+ * Various GDB/MI changes
+ * Python scripting:
+ ** Vectors can be created with gdb.Type.vector.
+ ** Python's atexit.register now works in GDB.
+ ** Types can be pretty-printed via a Python API.
+ ** Python 3 is now supported (in addition to Python 2.4 or later)
+ ** New class gdb.Architecture exposes GDB's internal representation
+ of architecture in the Python API.
+ ** New method Frame.architecture returns the gdb.Architecture object
+ corresponding to the frame's architecture.
+ ** New Python-based convenience functions ($_memeq, $_streq,
+ $_strlen and $_regex)
+ * The 'cd' command now defaults to using '~' (the home directory) if
+ not given an argument.
+ * New commands:
+ ** catch signal
+ ** maint info bfds
+ ** python-interactive
+ ** enable/disable type-printer
+ * New remote packets (QTBuffer:size, Qbtrace:bts, Qbtrace:off and
+ qXfer:btrace:read)
+ * New options:
+ ** set/show print type methods (on|off)
+ ** set/show print type typedefs (on|off)
+ ** set/show filename-display basename|relative|absolute
+ ** set/show trace-buffer-size
+ ** set/show remote trace-buffer-size-packet auto|on|off
+ ** set/show debug aarch64
+ ** set/show debug coff-pe-read
+ ** set/show debug mach-o
+ ** set/show debug notification
+ * target record:
+ The "target record" command has been renamed to "target record-full",
+ and a new "target record-btrace" has been added. This new target
+ uses hardward support to record the control-flow of a process.
+ Execution replay is not supported, but this targets allows investigating
+ the program's recorded execution.
+ * d/control{,.in}: bump standards version
+
+ -- Héctor Orón Martínez <zumbi@debian.org> Sun, 19 May 2013 00:14:02 +0200
+
+gdb (7.5.1-1) experimental; 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 <naesten@gmail.com> Wed, 20 Feb 2013 17:22:51 -0500
+
+gdb (7.4.1+dfsg-0.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix debian/sanitize-gdb.sh to use bash.
+ * Run that script to get the expected dfsg-compliant tarball.
+ (Closes: #698074)
+
+ -- David Prévot <taffit@debian.org> Sun, 27 Jan 2013 12:18:15 -0400
+
+gdb (7.4.1-3) unstable; urgency=low
+
+ * Fix typo: replace mutliarch by multiarch.
+
+ -- Hector Oron <zumbi@debian.org> Fri, 05 Oct 2012 08:58:19 +0000
+
+gdb (7.4.1-2) unstable; urgency=low
+
+ * 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
+
+ -- Hector Oron <zumbi@debian.org> Wed, 19 Sep 2012 21:16:17 +0000
+
+gdb (7.4.1-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix LinuxThreads signal handling on GNU/kFreeBSD. (Closes: #550361,
+ #669043)
+
+ -- Robert Millan <rmh@debian.org> Sat, 12 May 2012 12:25:16 +0200
+
+gdb (7.4.1-1) unstable; urgency=low
+
+ * New upstream release:
+ - [GDB/MI] Error when resuming program execution in all-stop mode
+ ("Cannot execute this command without a live selected thread").
+ - [Pascal] Polluted display of class methods parameters.
+ - [target remote] Errror when connecting to remote target where
+ disconnected tracing is in effect.
+ - [AVX] Float and ymm* register values not available.
+ - [GDB] Crash when using the "finish" command.
+ - [build] makeinfo should not be required to build GDB.
+ * d/control: enable gdb-multiarch packages
+ * d/rules: disable simulator for gdb-multiarch builds.
+
+ -- Hector Oron <zumbi@debian.org> Thu, 26 Apr 2012 18:26:18 +0200
+
+gdb (7.4really-1) unstable; 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 <zumbi@debian.org> 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 <zumbi@debian.org> 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 <zumbi@debian.org> 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
+
+ -- Hector Oron <zumbi@debian.org> Wed, 24 Aug 2011 20:02:33 +0100
+
+gdb (7.3-1) unstable; 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 <zumbi@debian.org> 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 <zumbi@debian.org> 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.
+
+ -- Hector Oron <zumbi@debian.org> Tue, 28 Jun 2011 10:30:52 +0100
+
+gdb (7.2-1) unstable; urgency=low
+
+ * New upstream release, including:
+ - C++ improvements including argument-dependent lookup, improved
+ user-defined operator support, and static const member evaluation.
+ - Expanded Python API.
+ - Tracepoint improvements, including x86 gdbserver support for tracepoints
+ and static tracepoints.
+ - Observer mode support. You can attach to a program in observer mode
+ and GDB will not allow you to modify the program's state at all.
+ - x86 byte and half-word register names, and 32-bit register named
+ on 64-bit targets.
+ - The "eval" command for the GDB CLI.
+ - "save breakpoints" to save breakpoints between sessions.
+ - Improved hardware breakpoint support for PowerPC.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 05 Sep 2010 10:05:31 -0400
+
+gdb (7.1-2) unstable; urgency=low
+
+ * Add sanitize-gdb.sh and README.source to source package (used to create
+ tarballs).
+ * Fix cross-gdb build. Patch from Hector Oron. (Closes: #575923).
+
+ -- Daniel Jacobowitz <dan@debian.org> Tue, 31 Aug 2010 10:57:57 -0400
+
+gdb (7.1-1) unstable; urgency=low
+
+ * New upstream release, including:
+ - PIE support (Closes: #346409).
+ - C++ improvements, including static_cast<> et al, namespace imports,
+ and bug fixes in printing virtual base classes.
+ - Multi-program debugging. One GDB can now debug multiple programs
+ at the same time.
+ - Python scripting improvements, including gdb.parse_and_eval.
+ - Updated MIPS Linux signal frame layout (Closes: #570875).
+ - No internal error stepping over _dl_debug_state (Closes: #569551).
+ * Update to Standards-Version: 3.8.4 (no changes required).
+ * Include more relevant (and smaller) docs in the gdbserver package
+ (Closes: #571132).
+ * Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
+ * Fix crash when switching into TUI mode (Closes: #568489).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 20 Mar 2010 01:21:29 -0400
+
+gdb (7.0.1-2) unstable; urgency=low
+
+ * Add Replaces to the new gdbserver package (Closes: #567925, #568018).
+ * Add patch to fix FreeBSD build (Closes: #561924).
+
+ -- Daniel Jacobowitz <dan@debian.org> Tue, 02 Feb 2010 14:59:41 -0500
+
+gdb (7.0.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Avoid hardcoded "debian" in the binary using lsb_release (from
+ Matthias Klose).
+ * Use DEB_MAKE_ENVVARS for 64-bit builds also (from Matthias Klose).
+ * Build depend on gcj-jdk | gcj (from Matthias Klose).
+ * Add gdb-source package (Closes: #550755).
+ * Move gdbserver into its own package (Closes: #562651).
+ * Add gdb-minimal package (Closes: #560786).
+ * Update to Standards-Version: 3.8.3.
+ * Package /usr/share/gdb.
+ * Switch to 3.0 (quilt) source package format.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 30 Jan 2010 15:16:35 -0500
+
+gdb (7.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #550567).
+ * Order options alphabetically in the man page (Closes: #540811).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 11 Oct 2009 17:16:26 -0400
+
+gdb (6.8.50.20090628-4) unstable; urgency=low
+
+ * Mention online documentation in README.Debian (Closes: #537795).
+ * Fix GNU/Hurd support (Closes: #539351).
+ * Depend on libreadline-dev and lib64readline6-dev.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 14 Sep 2009 16:17:50 -0400
+
+gdb (6.8.50.20090628-3) unstable; urgency=low
+
+ * Remove stray "set -x" from gdbtui script.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 13 Jul 2009 16:49:41 -0400
+
+gdb (6.8.50.20090628-2) unstable; urgency=low
+
+ * Re-enable gobjc testing on armel (Closes: #497161).
+ * Do not install an extra copy of the GDB man page in cross-debugger
+ packages (Closes: #492846).
+ * Add i386 %ebp backtrace patch from Michael Matz (Closes: #498030).
+ This improves backtraces on 32-bit programs with missing debug info
+ for some functions on the stack.
+ * Replace the separate gdbtui binary with a shell script (suggested
+ by Matthias Klose).
+ * Support parallel=<n> in DEB_BUILD_OPTIONS (from Matthias Klose).
+ * Support nocheck in DEB_BUILD_OPTIONS (from Matthias Klose).
+ * Run the testsuite on linux-gnueabi and linux-gnulp systems also
+ (from Matthias Klose).
+ * Package the DejaGNU .sum file instead of part of the build log.
+ It's bigger, but more useful (especially with parallel=).
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 06 Jul 2009 14:52:31 -0400
+
+gdb (6.8.50.20090628-1) unstable; urgency=low
+
+ * New snapshot from trunk. The experimental packages used the
+ archer-tromey-python branch; the whole branch has not been merged
+ to trunk, but significant portions of it have, and will be in GDB 7.
+ So this includes some Python scripting support. Other highlights
+ since the last experimental package:
+ - Reverse debugging commands. With a remote target that supports
+ reverse debugging, you can step backwards as easily as forwards.
+ - Process record and replay, a native Linux implementation of
+ reverse debugging. Only 32-bit IA32 Linux is currently supported.
+ - MIPS/Linux hardware watchpoint support.
+ - Multi-byte and wide character set support, including wchar_t display.
+ - Inlined function support, including in backtrace and step/next/finish.
+ - Improved C++ template name parsing.
+ - Non-stop debugging (some threads remain running while others
+ are stopped in the debugger). Only implemented so far for i386,
+ x86-64, and powerpc.
+ - A bug fix for discontiguous code, e.g. as found in the Linux kernel
+ (Closes: #513816).
+ - A build fix that affected SPARC (Closes: #512121).
+ - A build fix for casts on hurd-i386 (Closes: #494839).
+ - A fix for debugging multi-threaded programs that call exec, including
+ Eclipse with the Sun JVM (Closes: #490046).
+ * Removed thread-db-multiple-libraries.patch. This let one GDB work with
+ both LinuxThreads and NPTL, but no Debian platform has both now.
+ * GDB now reads /etc/gdb/gdbinit at startup (Closes: #33187).
+ * Ship required libraries (libbfd, libopcodes, and libiberty) in
+ /usr/lib/gdb in the libgdb-dev package, in case binutils-dev's versions
+ are not close enough (Closes: #509873).
+ * Add dev package dependencies to libgdb-dev.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 05 Jul 2009 16:25:07 -0400
+
+gdb (6.8.50.20090519.python-1) experimental; urgency=low
+
+ * New snapshot from archer-tromey-python branch.
+ * Update debhelper compatibility level to 7.
+ * Update to Standards-Version: 3.8.1.
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 04 Jun 2009 09:38:13 -0400
+
+gdb (6.8.50.20090116.python-1) experimental; urgency=low
+
+ * New snapshot from archer-tromey-python branch.
+ * Make sure that Python is enabled for the main gdb package.
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 12 Dec 2008 11:30:41 -0500
+
+gdb (6.8.50.20081210.python-1) experimental; urgency=low
+
+ * New snapshot from archer-tromey-python branch.
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 10 Dec 2008 21:36:26 -0500
+
+gdb (6.8.50.20081120.python-1) experimental; urgency=low
+
+ * Package archer-tromey-python branch for experimental. Highlights since
+ GDB 6.8 (for more, see the NEWS file):
+ - Python scripting support. This is experimental; the interfaces
+ are subject to change. Some example scripts are packaged, including
+ STL pretty-printers for libstdc++.
+ - Improved preprocessor macro support.
+ - Non-stop debugging support (for 32-bit i386 only). You can stop just
+ one thread of interest while the others continue to run.
+ - Improved tab completion, including C structure fields.
+ - Faster remote debugging.
+ - Compressed debug information support; the new "gold" linker can generate
+ compressed debug sections.
+ - New "find" command to search memory.
+ - Native i386 debugger does not get confused about watchpoints when
+ using "target remote" (Closes: #513678).
+ * Build depend on zlib1g-dev and python-dev.
+ * Removed bfd-get-mtime-less.patch, gdb-rbreak-quoting.patch,
+ ia64-array-bound.patch, cp-support-uninit.patch,
+ and m68k-nat-build-fix.patch, merged upstream.
+ * Build depend on procps for testsuite cleanup calls to "kill".
+ * Remove use of -p0 in series file (Closes: #484945).
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 28 Nov 2008 14:28:47 -0500
+
+gdb (6.8-3) unstable; urgency=low
+
+ * Initialize some uninitialized variables (Closes: #479561).
+ * Drop gdb-arm and insight conflict/replace.
+ * Fix build on m68k.
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 07 May 2008 08:40:02 -0400
+
+gdb (6.8-2) unstable; urgency=low
+
+ * Make removal of stamp files the first action of the clean target
+ (from Justin Pryzby).
+ * Correct array access in ia64 port to fix build failure.
+ * Fix GDB_TARGET support (reported by Fathi BOUDRA).
+ * Update gcj build dependencies (Closes: #477863, #479111).
+ * Add a man page for gcore, from Nicolas Bonifas (Closes: #479066).
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 02 May 2008 18:28:37 -0400
+
+gdb (6.8-1) unstable; urgency=low
+
+ * New upstream release.
+ - Remove patches merged upstream.
+ - GDB automatically sets breakpoints in every copy of C++ templates
+ and cloned constructors (Closes: #421540).
+ - Improved support for debugging optimized code - local variables are
+ displayed more often.
+ - Automatically recognizes ObjC sources (Closes: #462882).
+ * Backported patch to fix quoting for rbreak (Closes: #357319).
+ * Adjust copyright file, quilt build dependency, and oldest changelog entry
+ on lintian's advice.
+ * Add libsim.a to libgdb-dev (Closes: #473295).
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 27 Mar 2008 18:13:39 -0400
+
+gdb (6.7.1-2) unstable; urgency=low
+
+ * Add patch from Ulrich Weigand to fix stepping over shared library
+ functions on PowerPC (Closes: #432461).
+ * Add libgdb-dev package for fp-ide (Closes: #458250).
+ * Avoid gcc-4.3 uninitialized warnings (Closes: #455669).
+ * Updated Standards-Version to 3.7.3
+ - Correct Apps -> Applications in gdb.menu.
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 02 Jan 2008 08:49:43 -0500
+
+gdb (6.7.1-1) unstable; urgency=low
+
+ * New upstream release.
+ - Correct makeinfo version check (Closes: #453202).
+ * Merge Ubuntu support for a gdb64 package (Closes: #254270).
+ * Run the testsuite on all GNU/Linux platforms.
+ * Remove old support for skipping thread tests.
+ * Add an expat build dependency and add --with-expat.
+ * Update copyright notice.
+ * Do not freeze on division by zero (Closes: #414887).
+ * Rewrite HPPA kernel offsets patch to support HPPA64.
+ * Include Vladimir Prus's varobj fix for kdevelop (Closes: #443080).
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 03 Dec 2007 10:12:27 -0500
+
+gdb (6.6.dfsg.90.20070912-1) unstable; urgency=low
+
+ * New upstream snapshot (pre-release for GDB 6.7).
+ - Patches 10.selected-frame.patch, dwarf2-long-size.patch merged upstream.
+ - Backports unwind-check-pc-regnum.patch, ia64-unwind-signedness.patch
+ removed.
+ - Patch 13.use-dynamic-readline.patch replaced by
+ --with-system-readline.
+ - Patch sim-destdir.patch unnecessary.
+ * Disable gcj and gobjc build dependencies for armel (Closes: #441741).
+ * Replace tetex-bin build dependency with texlive-base.
+ * Include kernel offsets for HPPA.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 15 Sep 2007 13:40:34 -0400
+
+gdb (6.6.dfsg-3) unstable; urgency=low
+
+ * Correct signedness error in ia64-tdep.c (Closes: #423631) (again).
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 24 Aug 2007 15:48:11 -0400
+
+gdb (6.6.dfsg-2) unstable; urgency=low
+
+ * Check PC_REGNUM before using it (Closes: #423631).
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 23 Aug 2007 22:26:20 -0400
+
+gdb (6.6.dfsg-1) unstable; urgency=low
+
+ [ Matthias Klose ]
+ * New upstream version.
+ - Prints a newline after EOF (Closes: #233467).
+ * 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: Remove,
+ applied upstream.
+
+ [ Daniel Jacobowitz ]
+ * Merge changes from Matthias Klose (thanks).
+ * Refresh all patches.
+ * Fix "corrupted DWARF expression" error (Closes: #405116).
+ * Do not crash if loading libthread_db failed (Closes: #408402).
+ * Initial support for building cross-GDB packages, based on the work of
+ Raphael Bossek and Kazuhiro Inaoka (Closes: #313340, #343419, #373927).
+ * Change priority to optional (since ftpmaster did).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 27 Jan 2007 21:59:06 -0500
+
+gdb (6.5.dfsg-2) unstable; urgency=low
+
+ * Backport a patch to fix GDB segfaults on threaded programs.
+ * Backport a patch to fix errors on fork/vfork in threaded programs.
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 16 Nov 2006 11:06:50 -0500
+
+gdb (6.5.dfsg-1) unstable; urgency=low
+
+ * New upstream release (Closes: #386586).
+ * Update Standards-Version to 3.7.2 (no changes required).
+ * Mention --args in the man page (Closes: #394150).
+ * Mention gdbtui and -tui (Closes: #362795).
+ * Correctly detect changed executables when rerunning.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 5 Nov 2006 18:33:48 -0500
+
+gdb (6.4.90.dfsg-1) unstable; urgency=low
+
+ * New upstream snapshot (GDB 6.5 prerelease).
+ - BFD build fix for GCC 4.2 (Closes: #364124).
+ - xstrvprintf error message corrected (Closes: #296483).
+ - Rewritten printf command (Closes: #186037, #231162).
+ - Build fix for hurd-i386 (Closes: #345108).
+ * Split the GDB package into DFSG and non-DFSG portions (Closes: #212522).
+ The documentation has been moved to the new gdb-doc package, which
+ this one Suggests.
+ - Remove packaging for info files.
+ - Remove GFDL section from debian/copyright.
+ - Update README.Debian.
+ * Correct control.in to also use libreadline5-dev.
+ * Update type-handling usage.
+ * Update copyright file with the new FSF address.
+ * Update gcj build dependency (allow mips and mipsel, skip kfreebsd)
+ (Closes: #343199).
+
+ -- Daniel Jacobowitz <dan@debian.org> Tue, 6 Jun 2006 09:23:45 -0400
+
+gdb (6.4-1) unstable; urgency=low
+
+ * New upstream release.
+ * Reset core ulimit before running the testsuite (Closes: #342343).
+ * Ignore cancellation signal for NPTL by default (Closes: #324683).
+ * Include a description of the front cover texts, et cetera for the
+ manual in the copyright file (Closes: #321803).
+ * Set the default name of main to MAIN__ for Fortran programs
+ (Closes: #319520).
+ * Handle PowerPC PIC prologues a little better (Closes: #312059).
+ * Cope with attaching to threaded programs after the exit of a threaded
+ program (Closes: #303736).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 11 Dec 2005 13:14:04 -0500
+
+gdb (6.3.90.20051119-1) unstable; urgency=low
+
+ * New upstream snapshot (6.4 branch prerelease).
+ - Many Debian patches merged.
+ - Selected frame and C++ pass-by-reference patches updated.
+ - Fixes segfault when executing malformed TUI window commands
+ (Closes: #317317).
+ - Behaves more gracefully when the executable disappears, et cetera
+ (Closes: #293637, #323217, #332184).
+ - Handle vfork from threaded programs using NPTL (Closes: #320391).
+ * Do not rebuild bfd.info.
+ * Build depend on a version of debhelper which will put menu fils
+ in /usr/share.
+ * Don't build depend on gcj on the Hurd (Closes: #298088).
+ * Prevent unnecessary SIGTTOU when resolving pending breakpoints
+ (Closes: #306267).
+ * Enable the testsuite on amd64.
+ * Use libreadline5 instead of libreadline4 (Closes: #309538, #326358).
+ * Install gdb_gcore.sh as gcore (Closes: #328580).
+ * Add GPC support (Closes: #261330).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 20 Nov 2005 13:40:44 -0500
+
+gdb (6.3-6) unstable; urgency=high
+
+ * Do not crash on certain malformed input files [CAN-2005-1704]
+ (Closes: #308624, #310972).
+ * Do not load untrusted .gdbinit files [CAN-2005-1705] (Closes: #310728).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 29 May 2005 18:55:44 -0400
+
+gdb (6.3-5) unstable; urgency=low
+
+ * Fix NPTL debugging using gdbserver.
+ * Disable the "Incomplete CFI data" warning.
+ * Really include the menu file this time (Closes: #80010).
+ * Include a patch to handle strange binaries produced by Kylix
+ (Closes: #249008).
+ * Fix printing of fork status messages, and disable them by default
+ (Closes: #254039).
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 8 Dec 2004 18:35:02 -0500
+
+gdb (6.3-4) unstable; urgency=low
+
+ * Backport a patch for a warning about the vsyscall DSO.
+ * Backport a spelling fix for PTRACE_EVENT_VFORK_DONE to fix S/390
+ build failure.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 15 Nov 2004 11:52:13 -0500
+
+gdb (6.3-3) unstable; urgency=low
+
+ * Add flex to build dependencies for ada-lex.l.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 14 Nov 2004 00:28:18 -0500
+
+gdb (6.3-2) unstable; urgency=low
+
+ * Backport a patch for a C++ / stabs debug info crash (Closes: #251322).
+ * Correct build dependency for gcj (missed a !).
+ * Correct build dependency for libunwind (it's libunwind7-dev now).
+ * Update fix for fork tracing. This removes a warning on 2.4 kernels,
+ and fixes UML debugging (Closes: #271069).
+ * Fix single-stepping through a call to NULL on SPARC (Closes: #256012).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 13 Nov 2004 16:50:55 -0500
+
+gdb (6.3-1) unstable; urgency=low
+
+ * New upstream release (Closes: #259219).
+ - Give an error for division by 0 (Closes: #280051).
+ - Includes support for -feliminate-dwarf2-dups.
+ - Limited support for Ada is included; more to come
+ (Closes: #39516, #46470, #57876, #85947).
+ * Update build dependency on texinfo; 4.7-1 could not build GDB.
+ * Build depend on gcj on all architectures other than mips and mipsel
+ (Closes: #272327).
+ * Build depend on libkvm-dev for kfreebsd-gnu (Closes: #264103).
+ * Add libunwind support on ia64 (Closes: #279596).
+ * Make the fork tracing checks more robust. Prevents stray processes
+ on 2.6.10-rc1.
+ * Add a Debian menu entry for GDB (Closes: #80010).
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 12 Nov 2004 18:45:46 -0500
+
+gdb (6.1-3) unstable; urgency=low
+
+ * Fix passing and returning of non-trivial C++ objects (Closes: #160459).
+ * Update hppa patches (Closes: #247948).
+ * Add a patch for finding C++ member variables in base classes
+ (Closes: #239535).
+ * Replace versions of insight which contain gdbtui. Partial fix for
+ #242498.
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 27 May 2004 11:30:23 -0400
+
+gdb (6.1-2) unstable; urgency=low
+
+ * Add an NPTL thread-exit patch. Short-lived threads could cause GDB
+ to leave unattached threads, which would crash as soon as they hit
+ a breakpoint.
+ * Testsuite patches - no unexpected FAILs on i386-linux.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 19 Apr 2004 11:43:07 -0400
+
+gdb (6.1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Re-add the -debian suffix to GDB's version number. This got lost in the
+ transition to CDBS.
+ * Revised HPPA port. Thanks to Randolph Chung, as usual.
+ * Run the testsuite on SPARC again. The SPARC port is much improved
+ (it has been basically rewritten from scratch).
+
+ -- Daniel Jacobowitz <dan@debian.org> Tue, 6 Apr 2004 00:13:00 -0400
+
+gdb (6.0-6) unstable; urgency=low
+
+ * Also add DESTDIR to the ranlib invocation.
+ * Fix typo in moving run.1 manpage.
+ * Link linux-nat.o on HPPA.
+
+ -- Daniel Jacobowitz <dan@debian.org> Tue, 3 Feb 2004 11:07:27 -0500
+
+gdb (6.0-5) unstable; urgency=low
+
+ * Add DESTDIR support to sim/, to fix build failures on targets with a
+ simulator.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 2 Feb 2004 15:32:23 -0500
+
+gdb (6.0-4) unstable; urgency=low
+
+ * Switch to CDBS and quilt.
+ * Suppress warning about "<in-memory>" on re-run with a vsyscall DSO.
+ * Import gdb 6.0 CVS branch; fixes a segfault with development GCC
+ and frequent segfaults when rereading changed binaries
+ (Closes: #230550).
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 2 Feb 2004 10:03:19 -0500
+
+gdb (6.0-3) unstable; urgency=low
+
+ * Include <asm/offsets.h> instead of <asm/offset.h> on HPPA
+ (Closes: #208928).
+ * Support backtraces through the vsyscall DSO on i386.
+ * Do not run testsuite on hurd-i386 (Closes: #221956).
+ * Fix up texinfo files so that dh_installinfo puts them in the right
+ section.
+ * Update build dependency on texinfo (Closes: #219337).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 25 Jan 2004 18:04:24 -0500
+
+gdb (6.0-2) unstable; urgency=low
+
+ * Add build dependency on mig for hurd-i386 (Closes: #216428).
+ * Don't paginate symbol file progress messages. In combination
+ with recent changes to dwarf2-frame.c this fixes some potential
+ internal errors (Closes: #199889).
+ - 28.symfile-unfiltered.patch
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 27 Oct 2003 23:32:39 -0500
+
+gdb (6.0-1) unstable; urgency=low
+
+ * New upstream release
+ - 11.read-var-value.patch merged upstream.
+ - 12.dwarf-loc-register.patch merged upstream.
+ - -data-list-changed-registers no longer segfaults (Closes: #204561).
+ * Include the text of the GFDL in the copyright file (Closes: #212890).
+ * Include a threading patch which may fix #212949.
+ - 26.lin-lwp-assert.patch
+ * Include a patch which should improve Control-C handling for LinuxThreads
+ on 2.6 kernels.
+ - 27.lin-lwp-2.6.patch
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 4 Oct 2003 17:47:35 -0400
+
+gdb (5.3.20030824-1) unstable; urgency=low
+
+ * New upstream CVS snapshot, from the GDB 6.0 branch.
+ - 27.tui-paginate-backtrace.patch merged upstream.
+ - 28.minsym-section.patch merged upstream.
+ - Watchpoint handling bug for ia64 fixed (Closes: #205241).
+ * Squash some warnings for HPPA.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 24 Aug 2003 14:26:52 -0400
+
+gdb (5.3.20030801-1) unstable; urgency=low
+
+ * New upstream CVS snapshot, from the GDB 6.0 branch.
+ - 26.fix-sparc-build-two.patch merged upstream.
+ - Includes a fix for backtracing from noreturn functions like abort ().
+ - Insert a space between the address and code when disassembling,
+ even if we don't have a function name (Closes: #199672).
+ * Update HPPA patch again; is anyone ever going to submit this
+ upstream? Better do it soon. (Closes: #200980).
+ * Make filtered output paginate correctly again.
+ - 27.tui-paginate-backtrace.patch
+ * Fix an internal error on -data-list-changed-registers, and possibly
+ many others (Closes: #203553).
+ - 10.selected-frame.patch
+ * Add two patches for watchpoints in optimized programs (Closes: #203000).
+ - 11.read-var-value.patch
+ - 12.dwarf-loc-register.patch
+ * Add a patch for several shared library single-stepping bugs.
+ - 28.minsym-section.patch
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 3 Aug 2003 23:09:56 -0400
+
+gdb (5.3.20030629-2) unstable; urgency=low
+
+ * Yet another sparc build fix.
+ - 26.fix-sparc-build-two.patch
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 29 Jun 2003 17:11:12 -0400
+
+gdb (5.3.20030629-1) unstable; urgency=low
+
+ * New upstream CVS snapshot, from the GDB 6.0 branch.
+ - Remote debugging isn't totally broken any more.
+ * Remove merge or obsoleted patches.
+ - Parts of 23.static-thread-apps.patch
+ - 26.fix-tui-build.patch
+ - 27.fix-sparc-build-two.patch
+ - 28.dwarf2-reread-segv.patch
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 28 Jun 2003 21:17:13 -0400
+
+gdb (5.3.20030606-3) unstable; urgency=low
+
+ * Fix build failure on HPPA.
+ * Fix a segfault when reread applications (Closes: #197226).
+ - 28.dwarf2-reread-segv.patch
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 22 Jun 2003 14:30:49 -0400
+
+gdb (5.3.20030606-2) unstable; urgency=low
+
+ * Add 27.fix-sparc-build-two.patch to fix build failure on sparc.
+ * Disable the testsuite on sparc, since it's completely broken.
+ * Conditionalize gcj build dependency for architectures which both
+ have gcj and run the testsuite.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 14 Jun 2003 12:30:33 -0400
+
+gdb (5.3.20030606-1) unstable; urgency=low
+
+ * New upstream snapshot, with lots of nice features.
+ - Improved prologue analyzer and DWARF-2 frame unwind support for i386.
+ - Overhauled Alpha support.
+ - More C++ namespace support (still not complete).
+ - DW_AT_ranges support - if you've noticed local variables in your code
+ being missing in GDB, this is the most likely cause.
+ - Integrated Objective C support, finally! It's got some rough edges
+ but it works (Closes: #62081, #24598, #57824, #86506).
+ - "set cp-abi" command for debugging combined v2 and v3 C++ code.
+ - Some bug fixes in the parsing for gdb --args (Closes: #33361, #193413).
+ - Support for debug info in separate files, coming soon to a Debian
+ near you.
+ * Removed integrated or obsoleted patches:
+ - 01.const-tilde_expand.patch
+ - 05.i386-backtrace-to-main.patch
+ - 08.max-ui-out.patch
+ - 12.tui-readline.patch
+ - 15.m68k-build.patch
+ - 16.use-rl-prefixed-function.patch
+ - 19.alpha-doublest-correction.patch
+ - 21.lin-lwp-schedlock.patch
+ * Disabled some patches which I hope are no longer needed:
+ - 06.java-testsuite-jmisc.patch
+ - 11.thread-confused-exit.patch
+ - 20.alpha-testsuite.patch
+ - 22.alpha-proc-desc-stack.patch
+ * Updated HPPA patches for this snapshot.
+ - 02.gdb-hppa.patch
+ - 03.hppa-core.patch
+ - 04.hppa-func-returns.patch
+ * Add some build fixes for TUI.
+ - 26.fix-tui-build.patch
+ * Build with an absolute path to configure, to work around three failing
+ MI tests.
+ * Don't bother running the testsuite for two debug formats any more.
+ * Add build-dependencies for gcj and gobjc, for the testsuite.
+ * Adjust configure --mandir argument to match more stupid quoting.
+ * Re-enable thread testsuite on Alpha.
+ * Enable the testsuite on ia64, hppa, and s390.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 8 Jun 2003 20:15:55 -0400
+
+gdb (5.3-2) unstable; urgency=low
+
+ * Fix build on SPARC.
+ * Fix buid on HPPA.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 4 Jan 2003 01:02:36 -0500
+
+gdb (5.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * Patches updated for new release.
+ - Patch 14.gdb-maint-its-typo.patch included.
+ - Patch 17.tui-fixes.patch included.
+ - Patch 18.threads-much-faster.patch included.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 16 Dec 2002 14:43:03 -0500
+
+gdb (5.2.debian90.cvs20021120-4) unstable; urgency=low
+
+ * Fix thread debugging for statically linked applications
+ (Closes: #170107).
+ * Prevent a segfault when entering tracepoint actions if you hit EOF
+ (Closes: #167997).
+
+ -- Daniel Jacobowitz <dan@debian.org> Tue, 3 Dec 2002 14:46:07 -0500
+
+gdb (5.2.debian90.cvs20021120-3) unstable; urgency=low
+
+ * Add another Alpha patch for setting breakpoints after the process exits.
+ * Disable running the thread tests on Alpha (ew). It hangs the build
+ daemon; the problem appears to be in glibc. It returns nonexistant
+ and duplicate threads.
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 24 Nov 2002 23:16:36 -0500
+
+gdb (5.2.debian90.cvs20021120-2) unstable; urgency=low
+
+ * Add patch for testsuite false failures on Alpha.
+ * Add patch for floating point support on Alpha.
+ * Add a patch from the CVS HEAD for schedule-lock mode and for software
+ single step platforms.
+ * Correct the testsuite to match "help maint dump-me".
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 24 Nov 2002 18:11:26 -0500
+
+gdb (5.2.debian90.cvs20021120-1) unstable; urgency=low
+
+ * New upstream CVS snapshot from 5.3 CVS branch.
+ - Builds with new bison (Closes: #169656).
+ - Fixes crashes without SSE support or when loading core files without
+ applications.
+ - TUI no longer crashes if there is no debugging information for main
+ (Closes: #141491).
+ - GDB no longer crashes on "info win" if there are no windows
+ (Closes: #158186).
+ - Setting some C++ breakpoints works the first time instead of having
+ to do it twice (Closes: #110684).
+ * Patches updated for new release.
+ - Patch 07.manual-vector.dpatch included in CVS.
+ - Patch 09.mips-linux-buildfixes-aug02.patch included in CVS.
+ - Patch 10.no-readline-docs.patch removed - we still use readline,
+ I believe that leaving it as an appendix to the GDB manual is
+ appropriate.
+ - Patch 12.tui-readline.patch updated.
+ - Patch 17.tui-fixes.patch added to fix a TUI problem with -i=mi.
+ * Remove useless --enable-shared.
+ * Fix a typo in "help maint dump-me" (Closes: #168495).
+ * Add a patch to fix build on m68k, from Michael Fedrowitz
+ <michaelf@debian.org> (Closes: #163543).
+ * Added a patch to call rl_filename_completion_function instead of
+ filename_completion_function, from Matt Chapman
+ <matthewc@cse.unsw.edu.au> (Closes: #165366).
+ * Tag GDB version with "-debian" because we apply patches.
+ * Add a patch which makes debugging threaded applications drastically
+ (5x - 10x) faster. Whee!
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 22 Nov 2002 17:30:26 -0500
+
+gdb (5.2.cvs20020818-3) unstable; urgency=low
+
+ * HPPA fix from Randolph Chung (Closes: #158055).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 25 Aug 2002 00:37:34 -0400
+
+gdb (5.2.cvs20020818-2) unstable; urgency=low
+
+ * MIPS and MIPSel build fixes.
+ * Apply and remove patches in numbered order.
+ * HPPA build fixes.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 19 Aug 2002 10:49:40 -0400
+
+gdb (5.2.cvs20020818-1) unstable; urgency=low
+
+ * New upstream CVS snapshot.
+ - Don't include <termio.h> in TUI (Closes: #145040).
+ - Don't use libthread_db with core files (Closes: #133778).
+ * Recompile against current readline package (Closes: #153972).
+ * Reduce some thread-db errors to warnings
+ (Closes: #123675, #126614, #134693).
+ * Bump MAX_UI_OUT_LEVELS for the Hurd (Closes: #145630).
+ * Include patch from Richard Hirst to improve function return printing
+ on HPPA. It looks like there's finally a little progress on getting
+ the HPPA code in upstream... (Closes: #148672).
+ * Mention Peter Jay Salzman's GDB tutorial in the documentation
+ (Closes: #151128).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 18 Aug 2002 23:09:46 -0400
+
+gdb (5.2.cvs20020401-6) unstable; urgency=medium
+
+ * More HPPA build fixes - I forgot linux-proc.o again
+ (Closes: #143707).
+ * Add support for HPPA core files, patch from Randolph Chung
+ (Closes: #137316).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 21 Apr 2002 10:29:40 -0400
+
+gdb (5.2.cvs20020401-5) unstable; urgency=low
+
+ * More HPPA build fixes.
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 19 Apr 2002 12:43:56 -0400
+
+gdb (5.2.cvs20020401-4) unstable; urgency=medium
+
+ * Add linux-proc.o to NATDEPFILES for S/390; should fix S/390 build.
+ * Change `value_ptr' to `struct value *' in HPPA patch. Should fix
+ HPPA build in combination with libc6 2.2.5-4.0.2.
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 17 Apr 2002 00:43:32 -0400
+
+gdb (5.2.cvs20020401-3) unstable; urgency=low
+
+ * Add a patch to fix initialization on non-multi-arch targets
+ (particularly Alpha and Sparc).
+ * Enable testsuite on Alpha and Sparc.
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 4 Apr 2002 21:49:24 -0500
+
+gdb (5.2.cvs20020401-2) unstable; urgency=low
+
+ * My apologies to all you autobuilders out there. Results were worse than
+ I feared. Testsuite is now run only on PowerPC and i386 until I can
+ clean up the results everywhere else.
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 3 Apr 2002 17:24:17 -0500
+
+gdb (5.2.cvs20020401-1) unstable; urgency=low
+
+ * The "Ahhhhhhhhhhhhhhhhhh!" Release.
+ * New snapshot from CVS (post-5.2) (yes, I know 5.2 isn't out yet).
+ - Fixes crash on printing large types
+ (Closes: #111017, #130592, #131033).
+ - In one upstream patch and one pending patch, greatly improve
+ debugging with GCC 2.95. If you've ever breakpointed the
+ beginning of a function and been frustrated when arguments
+ printed incorrectly, this release is for you! It should fix most
+ occurances of that problem.
+ * Patches from J.H.M. Dassen to use system readline. Slightly tweaked.
+ - [debian/rules] Build the refcard; figure out patches automatically.
+ - [debian/use-dynamic-readline.patch] Link against dynamic readline again.
+ - [debian/no-readline-docs.patch] Remove readline documentation.
+ - [debian/const-tilde_expand.patch] Bring extern declaration of tilde_expand
+ in sync with current readline headers.
+ - [debian/rules] Ensure we don't build against the local readline copy by
+ mistake; remove generated config.status files.
+ * Include gdbserver if it is built.
+ * Include a version of GDB with the TUI interface enabled
+ (Closes: #137503).
+ * Run 'make check' during build, for stabs and DWARF-2.
+ * Add --disable-gdbtk (Closes: #115429).
+ * Add a patch to prevent a hang while running the Java testsuite if
+ gcj-3.0 is installed.
+ * Include simulator in the binary package if one is built (PPC, ARM,
+ MIPS) (Closes: #123185).
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 1 Apr 2002 17:17:30 -0500
+
+gdb (5.1.1-1) unstable; urgency=low
+
+ * New upstream release (Closes: #132314).
+ - Corrected manual licenses (Closes: #129311).
+ * Apply HPPA patch (Closes: #127301).
+ * Add <stdbool.h> patch to fix conflict with new ncurses.
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 13 Feb 2002 16:39:32 -0500
+
+gdb (5.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * All patches merged upstream, including (hopefully) everything needed
+ for S/390.
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 7 Dec 2001 13:04:15 -0500
+
+gdb (5.0.cvs20011007-3) unstable; urgency=low
+
+ * Add ARM patch (committed to upstream CVS).
+
+ -- Daniel Jacobowitz <dan@debian.org> Wed, 31 Oct 2001 10:59:21 -0500
+
+gdb (5.0.cvs20011007-2) unstable; urgency=low
+
+ * Updated S/390 patch from Gerhard Tonn.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 8 Oct 2001 13:55:06 -0400
+
+gdb (5.0.cvs20011007-1) unstable; urgency=low
+
+ * New upstream release.
+ * Remove obsolete patches (gdb-docs, gdb-ppc-core).
+ * Add S/390 support patch.
+ * Configure for $(DEB_HOST_GNU_TYPE) (Closes: #109715).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sun, 7 Oct 2001 14:06:20 -0400
+
+gdb (5.0.cvs20010729-2) unstable; urgency=low
+
+ * Fix m68k build. Again. (Closes: #107807).
+
+ -- Daniel Jacobowitz <dan@debian.org> Sat, 25 Aug 2001 15:32:16 -0700
+
+gdb (5.0.cvs20010729-1) unstable; urgency=low
+
+ * Call dh_installinfo from rules file (Closes: #107119).
+ * Put info files in "Development" to match other Debian development tools.
+ * Fix malformed gdbint.info file.
+ * Use DH_COMPAT=3 to make dh_installinfo work better with wildcards,
+ and bump debhelper build dependency.
+ * Update to 5.1 release branch (Closes: #103992).
+ * Fix PowerPC core files (Re: bug #107072).
+ * Fix up patch handling in rules file a little bit.
+
+ -- Daniel Jacobowitz <dan@debian.org> Mon, 30 Jul 2001 13:48:27 -0700
+
+gdb (5.0.cvs20010704-1) unstable; urgency=low
+
+ * The "Independence Day" release - CVS snapshot from July 4th.
+ * New maintainer.
+ * Update build-depends (Closes: #96835, #96897).
+ * New version includes thread support - for some platforms. I'm not going
+ to close the related bugs until I've verified it on a few more targets.
+ * Debhelperize (Closes: #97715, #97593).
+ * Add Replaces: gdb-arm for upgrades (Closes: #79992).
+
+ -- Daniel Jacobowitz <dan@debian.org> Thu, 5 Jul 2001 12:46:06 -0700
+
+gdb (5.0-4) unstable; urgency=low
+
+ * Made almost lintian clean:
+ - added Section: and Priority: fields in gdb binary package
+ - info files are now installed in /usr/share/info
+ - binaries get now stripped
+ - debian/copyright now refers to '/usr/share/common-licenses' for
+ full GPL license text
+ (patch by Domenico Andreoli <cavok@debian.org>)
+ * added texinfo & tetex-bin to the build-dependencies.
+
+ -- Vincent Renardias <vincent@debian.org> Sun, 6 May 2001 21:19:16 +0200
+
+gdb (5.0-3) unstable; urgency=low
+
+ * Include upstream README & NEWS files.
+ closes: #37978 gdb documentation.
+ * s|usr/doc|usr/share/doc|g.
+ closes: #69272: gdb: docs should be in /usr/share/doc according policy.
+ * Fix description.
+
+ -- Vincent Renardias <vincent@debian.org> Wed, 16 Aug 2000 21:58:45 +0200
+
+gdb (5.0-2) unstable; urgency=low
+
+ * Include patch to get it to work on m68k.
+ closes: #69185: gdb doesn't build on m68k.
+
+ -- Vincent Renardias <vincent@debian.org> Wed, 16 Aug 2000 19:33:16 +0200
+
+gdb (5.0-1) unstable; urgency=low
+
+ * New upstream code.
+ (Foreign patches not re-applied for now. Will see if they
+ are necessary)
+ closes: #66221 New major upstream version (5.0) out.
+ closes: #63337 gdb: Recompilation with libncurse5 needed.
+ closes: #58450 gdb: Won't compile on PowerPC.
+ closes: #54738 gdb does not compile on i386 under current glibc.
+
+ -- Vincent Renardias <vincent@debian.org> Sun, 13 Aug 2000 01:27:40 +0200
+
+gdb (4.18.19990928-1) unstable; urgency=low
+
+ * New upstream code.
+ Fixes some problems related to the C++ code:
+ closes: #46125: gdb seg faults calling C++ functions.
+ closes: #46195: gdb is broken for C++
+ closes: #43955: gdb can't resolve virtual methods with new g++
+ closes: #36341: gdb: Gives a parse error when casting an expression
+ * Include patch from David N. Welton <davidw@linuxcare.com>:
+ closes: #45308: gdb: Patch for gdb debian/rules
+ * ACK NMU:
+ closes: #39661: gdb is broken on ppc arch.
+ * Now compiles on non-i386 archs:
+ closes: #32267
+ * Updated my email address.
+
+ -- Vincent Renardias <vincent@debian.org> Wed, 29 Sep 1999 17:39:17 +0200
+
+gdb (4.18-1.1) unstable; urgency=low
+
+ * Applied some ppc patch i got from the linuxppc gdb.
+
+ -- Sven LUTHER <luther@debian.org> Mon, 14 Jun 1999 19:54:49 +0200
+
+gdb (4.18-1) unstable; urgency=low
+
+ * New upstream version!
+
+ -- Vincent Renardias <vincent@waw.com> Thu, 22 Apr 1999 17:35:41 +0200
+
+gdb (4.17.19981224-3.m68k.objc.threads.hwwp.fpu.gnat) unstable; urgency=low
+
+ * Upgrade to new code.
+ * Apply HJL's 4.17.0.4 -> 4.17.0.8 patch.
+ * Fix #30463.
+
+ -- Vincent Renardias <vincent@waw.com> Mon, 18 Jan 1999 23:38:36 +0100
+
+gdb (4.17-4.m68k.objc.threads.hwwp.fpu.gnat.3) frozen unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Apply threads patch (dynamically) only if building on i386; the patch
+ works currently only correct on i386 and breaks compilation at least
+ on m68k and sparc.
+
+ -- Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> Fri, 11 Dec 1998 13:56:00 +0100
+
+gdb (4.17-4.m68k.objc.threads.hwwp.fpu.gnat.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/rules (checkroot): use tab not spaces, thanks to Roman Hodek
+ <Roman.Hodek@informatik.uni-erlangen.de>. [#26798]
+
+ -- James Troup <james@nocrew.org> Tue, 20 Oct 1998 02:41:26 +0100
+
+gdb (4.17-4.m68k.objc.threads.hwwp.fpu.gnat.1) unstable; urgency=low
+
+ * NMU with yet more hideous revision.
+ * PowerPC support via Matt McLean.
+ * Clean up corrupted m68k files a little bit - move config/m68k/* to
+ gdb/config/m68k/* and remove literal ^L's.
+
+ -- Daniel Jacobowitz <dan@debian.org> Fri, 11 Sep 1998 22:40:22 -0400
+
+gdb (4.17-4.m68k.objc.threads.hwwp.fpu.gnat) unstable; urgency=low
+
+ * Apply yet another patch to improve Objective-C support (Fix #24599).
+
+ -- Vincent Renardias <vincent@waw.com> Wed, 15 Jul 1998 12:34:47 +0200
+
+gdb (4.17-3.m68k.objc.threads.hwwp.fpu.gnat) unstable; urgency=low
+
+ * re-integrated gnat support.
+ (Was repported as a bug against 4.16, patch had been integrated then,
+ but dropped while switching to version 4.17).
+ (NB: Not being an ADA expert, I'd appreciate if s/o could confirm
+ it now works properly, thanx)
+
+ -- Vincent Renardias <vincent@waw.com> Fri, 3 Jul 1998 18:46:28 +0200
+
+gdb (4.17-2.m68k.objc.threads.hwwp.fpu) unstable; urgency=low
+
+ * Include patch to support debugging of multithreaded programs
+ (Bug #23823)
+ Note: Needs a patch to libc6 to work (submitted as #24213).
+ * Include JH Lu patch to have hardware watchpoint and FPU support
+ (Fix bug #660!! (40 months old!!!) & bug #16435)
+ * Bug #8861 also appears to be fixed... Isn't that great? :)
+ * Now provide the reference card (Bug #20772).
+
+ -- Vincent Renardias <vincent@waw.com> Fri, 3 Jul 1998 18:46:28 +0200
+
+gdb (4.17-1) unstable; urgency=low
+
+ * Fix #22555 (enable building on sparc)
+ * Fix #21932 (acknowledge NMU)
+
+ -- Vincent Renardias <vincent@waw.com> Mon, 18 May 1998 17:56:10 +0200
+
+gdb (4.17-0.1) frozen unstable; urgency=low
+
+ * New upstream release (differences with upstream 4.16.98 are negligable).
+ * Non-maintainer upload.
+ * Disabled linking -rpath:
+ * bfd/configure.in, opcodes/configure.in: applied libtool-rpath-workaround
+ * gdb/configure.in, gdb/configure: don't use -rpath on Linux.
+ * regenerate "configure" scripts involved.
+
+ -- J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl> Thu, 30 Apr 1998 19:47:34 +0200
+
+gdb (4.16.98-1) frozen unstable; urgency=low
+
+ * New upstream code. Only change relevant on Linux: Patch by
+ H.J. Lu so debugging of shared library works properly (That was
+ the important patch motivating this upload).
+ This release _is_ supposed to be the final gdb-4.17 (from the announce:
+ 'I wanted to make a "this is the release unless something is
+ very wrong" release and then kick 4.17 out').
+
+ -- Vincent Renardias <vincent@waw.com> Thu, 23 Apr 1998 20:44:36 +0200
+
+gdb (4.16.86-1) unstable; urgency=low
+
+ * New upstream code. (still unreleased).
+ * Re-added the m68k stuff that didn't make it upstream (Bug #19539, #19635).
+ * Re-added the Objective-C stuff (Bug #19630)
+
+ -- Vincent Renardias <vincent@waw.com> Sat, 14 Mar 1998 23:40:06 +0100
+
+gdb (4.16.85-2) unstable; urgency=low
+
+ * debian/rules: Also remove gdb/doc/GDBvn.texi and config.log when cleaning up.
+ * The following has been done by <jdassen@wi.LeidenUniv.nl>:
+ * TODO: this version of gdb uses an evil new version of libtool which
+ forces -rpath. With lesstif, I got around this by replacing the libtool
+ scripts with those from the Debian libtool package.
+ * Use dynamic readline library.
+ * Install with preserved timestamps.
+ * Clean out .tab.c files missed by "make distclean", so the .diff.gz is
+ smaller.
+ * Clean out symlinks, so dpkg-source works after debian/rules build clean.
+ * Several other minor clean-ups of the rules file.
+ * Updated FSF address (lintian).
+ * Bumped Standards-Version.
+
+ -- Vincent Renardias <vincent@waw.com> Fri, 6 Mar 1998 20:49:54 +0100
+
+gdb (4.16.85-1) unstable; urgency=low
+
+ * New upstream code (Although not released yet).
+
+ -- Vincent Renardias <vincent@waw.com> Thu, 5 Mar 1998 20:19:14 +0100
+
+gdb (4.16-12) unstable; urgency=low
+
+ * Applied alpha patches (#11841).
+
+ -- Vincent Renardias <vincent@waw.com> Mon, 4 Aug 1997 22:28:54 +0200
+
+gdb (4.16-11) unstable; urgency=low
+
+ * Included patch to fix bugs (#11552,#11324).
+
+ -- Vincent Renardias <vincent@waw.com> Wed, 30 Jul 1997 20:40:01 +0200
+
+gdb (4.16-10) unstable; urgency=low
+
+ * Fixed #11136 (support for Ada;
+ Thanx to Marc Eichin for pointing this patch).
+
+ -- Vincent Renardias <vincent@waw.com> Thu, 10 Jul 1997 19:38:07 +0200
+
+gdb (4.16-9) unstable; urgency=low
+
+ * Fixed #11037 (compilation on m68k).
+
+ -- Vincent Renardias <vincent@waw.com> Sat, 5 Jul 1997 16:14:39 +0200
+
+gdb (4.16-8) unstable; urgency=low
+
+ * Compiled with libc6/ncurses3.4/libreadline2.1.
+ * Fixed #9654 (cosmetic fix).
+ * Updated debian/control file (now supports Objective-C).
+
+ -- Vincent Renardias <vincent@waw.com> Sat, 21 Jun 1997 15:15:13 +0200
+
+gdb (4.16-7) unstable; urgency=low
+
+ * Fixed typo. in documentation (Fixes bug #5477).
+
+ -- Vincent Renardias <vincent@waw.com> Mon, 7 Apr 1997 16:35:53 +0200
+
+gdb (4.16-6) unstable; urgency=low
+
+ * Corrected texinfo documentation (Fixes bug #3823).
+ * Added upstream ChangeLog file.
+
+ -- Vincent Renardias <vincent@waw.com> Sun, 16 Mar 1997 18:32:23 +0100
+
+gdb (4.16-5) unstable; urgency=low
+
+ * Included patch for glibc-2.0 support.
+
+ -- Vincent Renardias <vincent@waw.com> Sun, 16 Mar 1997 07:46:29 +0100
+
+gdb (4.16-4) unstable; urgency=low
+
+ * Included patch for Objective-C support (Fixes bug #7063).
+
+ -- Vincent Renardias <vincent@waw.com> Sun, 16 Mar 1997 03:12:13 +0100
+
+gdb (4.16-3) unstable; urgency=low
+
+ * New maintainer.
+ * Included patches for m68k support.
+
+ -- Vincent Renardias <vincent@waw.com> Fri, 14 Mar 1997 22:07:58 +0100
+
+gdb (4.16-2) unstable; urgency=MEDIUM
+
+ * New caretaker: Stuart Lamble (note: this package is still up
+ for adoption, as I would prefer not to be maintaining it
+ full-time.)
+ * Upgraded to the 2.1.1.0 source format.
+ * Recompiled, with a corrected procfs.h, to correct problems with
+ ELF coredumps.
+ * Reformatted the changelog :-)
+
+ -- Stuart Lamble <lamble@yoyo.cc.monash.edu.au> Sun, 20 Oct 1996 18:48:40 +1000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f8b9068
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,123 @@
+Source: gdb
+Maintainer: Héctor Orón Martínez <zumbi@debian.org>
+Uploaders: Riku Voipio <riku.voipio@linaro.org>
+Section: devel
+Priority: optional
+Standards-Version: 4.4.1
+Rules-Requires-Root: binary-targets
+Build-Depends:
+# Packaging deps
+ cdbs (>= 0.4.90),
+ debhelper (>= 9),
+ lsb-release,
+ bzip2,
+# Other tool deps
+ autoconf,
+ libtool,
+ gettext,
+ bison,
+ dejagnu,
+ flex,
+ procps,
+# Do we really care that much about running the Java tests?
+# gcj-jdk | gcj,
+ gobjc,
+ mig [hurd-any],
+# GNU/kFreeBSD deps
+ libutil-freebsd-dev [kfreebsd-any],
+# TeX[info] deps
+ texinfo (>= 4.7-2.2),
+ texlive-base,
+# Libdev deps
+ libexpat1-dev,
+ libncurses5-dev,
+ libreadline-dev,
+ zlib1g-dev,
+ liblzma-dev,
+ libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel mips64el powerpc s390x],
+ libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel mips64el powerpc s390x],
+ libipt-dev [amd64 i386 x32],
+ python-dev,
+# Python3 build
+ python3-dev,
+ libkvm-dev [kfreebsd-any],
+ libunwind-dev [ia64],
+Vcs-Git: https://salsa.debian.org/gdb-team/gdb.git
+Vcs-Browser: https://salsa.debian.org/gdb-team/gdb
+Homepage: http://www.gnu.org/s/gdb/
+
+Package: gdb
+Architecture: any
+Depends: ${misc:Depends},
+ ${shlibs:Depends},
+ ${python3:Depends}
+Recommends: libc-dbg
+Suggests: gdb-doc,
+ gdbserver [amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel mips64el powerpc powerpcspe ppc64 ppc64el s390 s390x x32]
+Conflicts: gdb
+Replaces: gdb
+Description: GNU Debugger
+ 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)
+ 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.
+
+Package: gdb-multiarch
+Architecture: any
+Depends: gdb (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Conflicts: gdb-arm-none-eabi
+Breaks: gdb-arm-none-eabi
+Provides: gdb-arm-none-eabi
+Description: GNU Debugger (with support for multiple architectures)
+ 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 version of GDB which supports multiple
+ target architectures.
+
+Package: gdbserver
+Architecture: amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel mips64el powerpc powerpcspe ppc64 ppc64el s390 s390x x32
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Replaces: gdb (<< 7.0.1-1)
+Description: GNU Debugger (remote server)
+ 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 gdbserver. Install this to debug remotely
+ from another system where GDB is installed.
+
+Package: gdb-source
+Architecture: all
+Depends: ${misc:Depends}
+Description: GNU Debugger (source)
+ 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 the sources and patches which are needed
+ to build GDB.
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..05bbaff
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,123 @@
+Source: gdb
+Maintainer: Héctor Orón Martínez <zumbi@debian.org>
+Uploaders: Riku Voipio <riku.voipio@linaro.org>
+Section: devel
+Priority: optional
+Standards-Version: 4.4.1
+Rules-Requires-Root: binary-targets
+Build-Depends:
+# Packaging deps
+ cdbs (>= 0.4.90),
+ debhelper (>= 9),
+ lsb-release,
+ bzip2,
+# Other tool deps
+ autoconf,
+ libtool,
+ gettext,
+ bison,
+ dejagnu,
+ flex,
+ procps,
+# Do we really care that much about running the Java tests?
+# gcj-jdk | gcj,
+ gobjc,
+ mig [hurd-any],
+# GNU/kFreeBSD deps
+ libutil-freebsd-dev [kfreebsd-any],
+# TeX[info] deps
+ texinfo (>= 4.7-2.2),
+ texlive-base,
+# Libdev deps
+ libexpat1-dev,
+ libncurses5-dev,
+ libreadline-dev,
+ zlib1g-dev,
+ liblzma-dev,
+ libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel mips64el powerpc s390x],
+ libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel mips64el powerpc s390x],
+ libipt-dev [amd64 i386 x32],
+ python-dev,
+# Python3 build
+ python3-dev,
+ libkvm-dev [kfreebsd-any],
+ libunwind-dev [ia64],
+Vcs-Git: https://salsa.debian.org/gdb-team/gdb.git
+Vcs-Browser: https://salsa.debian.org/gdb-team/gdb
+Homepage: http://www.gnu.org/s/gdb/
+
+Package: gdb@TS@
+Architecture: any
+Depends: ${misc:Depends},
+ ${shlibs:Depends},
+ ${python3:Depends}
+Recommends: libc-dbg
+Suggests: gdb-doc,
+ gdbserver [amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel mips64el powerpc powerpcspe ppc64 ppc64el s390 s390x x32]
+Conflicts: gdb
+Replaces: gdb
+Description: GNU Debugger
+ 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)
+ 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.
+
+Package: gdb-multiarch
+Architecture: any
+Depends: gdb (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Conflicts: gdb-arm-none-eabi
+Breaks: gdb-arm-none-eabi
+Provides: gdb-arm-none-eabi
+Description: GNU Debugger (with support for multiple architectures)
+ 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 version of GDB which supports multiple
+ target architectures.
+
+Package: gdbserver
+Architecture: amd64 armel armhf arm64 i386 ia64 m32r m68k mips mipsel mips64el powerpc powerpcspe ppc64 ppc64el s390 s390x x32
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Replaces: gdb (<< 7.0.1-1)
+Description: GNU Debugger (remote server)
+ 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 gdbserver. Install this to debug remotely
+ from another system where GDB is installed.
+
+Package: gdb-source
+Architecture: all
+Depends: ${misc:Depends}
+Description: GNU Debugger (source)
+ 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 the sources and patches which are needed
+ to build GDB.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1fdb8c7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,480 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: GDB: The GNU Project Debugger
+Upstream-Contact: gdb@sourceware.org
+Source: https://www.gnu.org/software/gdb/download/ w/ GFDL'd files stripped
+Disclaimer: Autogenerated by CDBS
+ Some gross errors corrected, but not yet checked in detail
+
+Files: debian/*
+Copyright: 2011-2014, Héctor Orón Martínez
+ 2013-2014, Samuel Bronson
+ 2002-2010, Daniel Jacobowitz
+License: LGPL-2.1+
+
+Files: *
+Copyright: 1984-2014, Free Software Foundation, Inc
+License: GPL-3+
+
+Files: include/leb128.h
+ include/safe-ctype.h
+ include/timeval-utils.h
+ include/demangle.h
+ intl/bindtextdom.c
+ intl/dcgettext.c
+ intl/dcigettext.c
+ intl/dcngettext.c
+ intl/dgettext.c
+ intl/dngettext.c
+ intl/eval-plural.h
+ intl/explodename.c
+ intl/finddomain.c
+ intl/gettext.c
+ intl/gettextP.h
+ intl/gmo.h
+ intl/hash-string.h
+ intl/l10nflist.c
+ intl/libgnuintl.h
+ intl/loadinfo.h
+ intl/loadmsgcat.c
+ intl/localcharset.c
+ intl/localcharset.h
+ intl/localealias.c
+ intl/localename.c
+ intl/log.c
+ intl/ngettext.c
+ intl/osdep.c
+ intl/plural-exp.c
+ intl/plural-exp.h
+ intl/plural.c
+ intl/relocatable.c
+ intl/relocatable.h
+ intl/textdomain.c
+ libiberty/argv.c
+ libiberty/asprintf.c
+ libiberty/choose-temp.c
+ libiberty/concat.c
+ libiberty/fdmatch.c
+ libiberty/fopen_unlocked.c
+ libiberty/getruntime.c
+ libiberty/hex.c
+ libiberty/lbasename.c
+ libiberty/mempcpy.c
+ libiberty/mkstemps.c
+ libiberty/pex-common.c
+ libiberty/pex-one.c
+ libiberty/pexecute.c
+ libiberty/putenv.c
+ libiberty/setproctitle.c
+ libiberty/simple-object-common.h
+ libiberty/spaces.c
+ libiberty/stpcpy.c
+ libiberty/stpncpy.c
+ libiberty/strndup.c
+ libiberty/timeval-utils.c
+ libiberty/vasprintf.c
+ libiberty/xexit.c
+ libiberty/xmalloc.c
+ libiberty/xstrndup.c
+ libiberty/cplus-dem.c
+ libiberty/hashtab.c
+ libiberty/make-temp-file.c
+ libiberty/pex-common.h
+ libiberty/pex-djgpp.c
+ libiberty/pex-msdos.c
+ libiberty/pex-unix.c
+ libiberty/pex-win32.c
+ libiberty/safe-ctype.c
+Copyright: 1989-2011 Free Software Foundation, Inc
+License: LGPL-2+
+
+Files: bfd/xtensa-modules.c
+ etc/texi2pod.pl
+ include/elf/xgate.h
+ include/fnmatch.h
+ include/fopen-bin.h
+ include/fopen-same.h
+ include/fopen-vms.h
+ include/gdbm.h
+ include/ieee.h
+ include/md5.h
+ include/objalloc.h
+ include/os9k.h
+ include/partition.h
+ include/simple-object.h
+ include/sort.h
+ include/symcat.h
+ include/libiberty.h
+ include/filenames.h
+ include/ansidecl.h
+ include/dyn-string.h
+ include/fibheap.h
+ include/floatformat.h
+ include/getopt.h
+ include/hashtab.h
+ include/obstack.h
+ include/splay-tree.h
+ include/xtensa-config.h
+ intl/intl-compat.c
+ libiberty/_doprnt.c
+ libiberty/clock.c
+ libiberty/cp-demint.c
+ libiberty/crc32.c
+ libiberty/dwarfnames.c
+ libiberty/dyn-string.c
+ libiberty/fibheap.c
+ libiberty/filename_cmp.c
+ libiberty/fnmatch.c
+ libiberty/lrealpath.c
+ libiberty/md5.c
+ libiberty/memmem.c
+ libiberty/objalloc.c
+ libiberty/obstack.c
+ libiberty/partition.c
+ libiberty/physmem.c
+ libiberty/simple-object-coff.c
+ libiberty/simple-object-elf.c
+ libiberty/simple-object-mach-o.c
+ libiberty/simple-object-xcoff.c
+ libiberty/simple-object.c
+ libiberty/snprintf.c
+ libiberty/sort.c
+ libiberty/stack-limit.c
+ libiberty/strtod.c
+ libiberty/testsuite/test-demangle.c
+ libiberty/testsuite/test-expandargv.c
+ libiberty/testsuite/test-pexecute.c
+ libiberty/unlink-if-ordinary.c
+ libiberty/vsnprintf.c
+ libiberty/vsprintf.c
+ libiberty/cp-demangle.c
+ libiberty/cp-demangle.h
+ libiberty/floatformat.c
+ libiberty/getopt.c
+ libiberty/getopt1.c
+ libiberty/make-relative-prefix.c
+ libiberty/splay-tree.c
+ libiberty/sha1.c
+ libiberty/setenv.c
+ ltmain.sh
+Copyright: 1997-2011 Free Software Foundation, Inc
+License: GPL-2+
+
+Files: gdb/common/i386-gcc-cpuid.h
+ libdecnumber/bid/bid-dpd.h
+ libdecnumber/bid/bid2dpd_dpd2bid.c
+ libdecnumber/bid/bid2dpd_dpd2bid.h
+ libdecnumber/bid/decimal128.c
+ libdecnumber/bid/decimal32.c
+ libdecnumber/bid/decimal64.c
+ libdecnumber/bid/host-ieee128.c
+ libdecnumber/bid/host-ieee32.c
+ libdecnumber/bid/host-ieee64.c
+ libdecnumber/dconfig.h
+ libdecnumber/decBasic.c
+ libdecnumber/decCommon.c
+ libdecnumber/decContext.c
+ libdecnumber/decContext.h
+ libdecnumber/decDPD.h
+ libdecnumber/decDouble.c
+ libdecnumber/decDouble.h
+ libdecnumber/decExcept.c
+ libdecnumber/decExcept.h
+ libdecnumber/decLibrary.c
+ libdecnumber/decNumber.c
+ libdecnumber/decNumber.h
+ libdecnumber/decNumberLocal.h
+ libdecnumber/decPacked.c
+ libdecnumber/decPacked.h
+ libdecnumber/decQuad.c
+ libdecnumber/decQuad.h
+ libdecnumber/decRound.c
+ libdecnumber/decRound.h
+ libdecnumber/decSingle.c
+ libdecnumber/decSingle.h
+ libdecnumber/dpd/decimal128.c
+ libdecnumber/dpd/decimal128.h
+ libdecnumber/dpd/decimal128Local.h
+ libdecnumber/dpd/decimal32.c
+ libdecnumber/dpd/decimal32.h
+ libdecnumber/dpd/decimal64.c
+ libdecnumber/dpd/decimal64.h
+ include/dwarf2.h
+Copyright: 2005-2014, Free Software Foundation, Inc
+License: GPL-3+ with GCC-Runtime-3.1 exception
+
+Files: sim/arm/armcopro.c
+ sim/arm/armdefs.h
+ sim/arm/armemu.c
+ sim/arm/armemu.h
+ sim/arm/armfpe.h
+ sim/arm/arminit.c
+ sim/arm/armopts.h
+ sim/arm/armos.c
+ sim/arm/armos.h
+ sim/arm/armrdi.c
+ sim/arm/armsupp.c
+ sim/arm/armvirt.c
+ sim/arm/bag.c
+ sim/arm/bag.h
+ sim/arm/communicate.c
+ sim/arm/communicate.h
+ sim/arm/dbg_conf.h
+ sim/arm/dbg_cp.h
+ sim/arm/dbg_hif.h
+ sim/arm/dbg_rdi.h
+ sim/arm/gdbhost.c
+ sim/arm/gdbhost.h
+ sim/arm/kid.c
+ sim/arm/main.c
+ sim/arm/parent.c
+Copyright: 1994, 2000 Advanced RISC Machines Ltd
+License: GPL-3+
+
+Files: sim/erc32/erc32.c
+ sim/erc32/exec.c
+ sim/erc32/func.c
+ sim/erc32/interf.c
+ sim/erc32/sis.h
+Copyright: 1995, Jiri Gaisler
+License: GPL-3+
+
+Files: libiberty/bsearch.c
+ libiberty/random.c
+ libiberty/strtoul.c
+Copyright: 1983, 1990, Regents of the University of California
+License: BSD-3-clause
+
+Files: readline/examples/rlfe/extern.h
+ readline/examples/rlfe/os.h
+ readline/examples/rlfe/pty.c
+Copyright: 1987, 1993-2002 Oliver Laumann
+License: GPL-2+
+
+Files: bfd/hosts/x86-64linux.h
+ include/xregex2.h
+ libiberty/regex.c
+ gdb/common/glibc_thread_db.h
+ include/longlong.h
+ libiberty/strverscmp.c
+Copyright: 1985-2013, Free Software Foundation, Inc
+License: LGPL-2.1+
+
+Files: libiberty/strtol.c
+Copyright: 1990, The Regents of the University of California
+License: BSD-3-clause
+
+Files: readline/examples/readlinebuf.h
+Copyright: 2001, Dimitris Vyzovitis [vyzo@media.mit.edu]
+License: GPL-2+
+
+Files: readline/examples/rlfe/rlfe.c
+Copyright: 2004, 1999 Per Bothner
+License: GPL-2+
+
+Files: gdb/gdb_proc_service.h
+Copyright: 1999-2014, Free Software Foundation, Inc
+License: GPL-3+ and LGPL-2.1+
+Comment: XXX shouldn't this just be LGPL'd? Only a few lines seem GPL'd ...
+ ... and those lines are just boilerplate anyway!
+
+License: BSD-3-clause
+ Copyright (c) The Regents of the University of California.
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: LGPL-2+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+ .
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU Library General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/LGPL-2'.
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
+License: GPL-3+ with GCC-Runtime-3.1 exception
+ This file is part of GCC.
+ .
+ GCC is free software; you can redistribute it and/or modify it under
+ the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 3, or (at your option) any later
+ version.
+ .
+ GCC is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ License for more details.
+ .
+ Under Section 7 of GPL version 3, you are granted additional
+ permissions described in the GCC Runtime Library Exception, version
+ 3.1, as published by the Free Software Foundation.
+ .
+ You should have received a copy of the GNU General Public License and
+ a copy of the GCC Runtime Library Exception along with this program;
+ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+ <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+ .
+ GCC RUNTIME LIBRARY EXCEPTION
+ .
+ Version 3.1, 31 March 2009
+ .
+ Copyright (C) 2009 Free Software Foundation, Inc. <https://fsf.org/>
+ .
+ Everyone is permitted to copy and distribute verbatim copies of this
+ license document, but changing it is not allowed.
+ .
+ This GCC Runtime Library Exception ("Exception") is an additional
+ permission under section 7 of the GNU General Public License, version
+ 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
+ bears a notice placed by the copyright holder of the file stating that
+ the file is governed by GPLv3 along with this Exception.
+ .
+ When you use GCC to compile a program, GCC may combine portions of
+ certain GCC header files and runtime libraries with the compiled
+ program. The purpose of this Exception is to allow compilation of
+ non-GPL (including proprietary) programs to use, in this way, the
+ header files and runtime libraries covered by this Exception.
+ .
+ 0. Definitions.
+ .
+ A file is an "Independent Module" if it either requires the Runtime
+ Library for execution after a Compilation Process, or makes use of an
+ interface provided by the Runtime Library, but is not otherwise based
+ on the Runtime Library.
+ .
+ "GCC" means a version of the GNU Compiler Collection, with or without
+ modifications, governed by version 3 (or a specified later version) of
+ the GNU General Public License (GPL) with the option of using any
+ subsequent versions published by the FSF.
+ .
+ "GPL-compatible Software" is software whose conditions of propagation,
+ modification and use would permit combination with GCC in accord with
+ the license of GCC.
+ .
+ "Target Code" refers to output from any compiler for a real or virtual
+ target processor architecture, in executable form or suitable for
+ input to an assembler, loader, linker and/or execution
+ phase. Notwithstanding that, Target Code does not include data in any
+ format that is used as a compiler intermediate representation, or used
+ for producing a compiler intermediate representation.
+ .
+ The "Compilation Process" transforms code entirely represented in
+ non-intermediate languages designed for human-written code, and/or in
+ Java Virtual Machine byte code, into Target Code. Thus, for example,
+ use of source code generators and preprocessors need not be considered
+ part of the Compilation Process, since the Compilation Process can be
+ understood as starting with the output of the generators or
+ preprocessors.
+ .
+ A Compilation Process is "Eligible" if it is done using GCC, alone or
+ with other GPL-compatible software, or if it is done without using any
+ work based on GCC. For example, using non-GPL-compatible Software to
+ optimize any GCC intermediate representations would not qualify as an
+ Eligible Compilation Process.
+ .
+ 1. Grant of Additional Permission.
+ .
+ You have permission to propagate a work of Target Code formed by
+ combining the Runtime Library with Independent Modules, even if such
+ propagation would otherwise violate the terms of GPLv3, provided that
+ all Target Code was generated by Eligible Compilation Processes. You
+ may then convey such a combination under terms of your choice,
+ consistent with the licensing of the Independent Modules.
+ .
+ 2. No Weakening of GCC Copyleft.
+ .
+ The availability of this Exception does not imply any general
+ presumption that third-party software is unaffected by the copyleft
+ requirements of the license of GCC.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..baeb168
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,4 @@
+[DEFAULT]
+debian-branch=debian/unstable
+upstream-branch=upstream
+pristine-tar = True
diff --git a/debian/gcore.1 b/debian/gcore.1
new file mode 100644
index 0000000..39aca0b
--- /dev/null
+++ b/debian/gcore.1
@@ -0,0 +1,34 @@
+.TH gcore "1" "May 2007" "gdb 6.8" "GNU Tools"
+.SH NAME
+gcore \- Generate a core file for a running process
+.SH SYNOPSIS
+.B gcore
+[-o \fIfilename\fR] \fIpid\fR
+.SH DESCRIPTION
+.\" Add any additional description here
+.PP
+gcore generates a core file for the process specified by its process ID,
+\fIpid\fR. By default, the core file is written to core.\fIpid\fR, in the
+current directory.
+.TP
+\fB\-o\fR \fIfilename\fR
+write core file to \fIfilename\fR instead of core.\fIpid\fR
+.SH COPYING
+Copyright \(co 2003, 2005, 2007, 2008 Free Software Foundation, Inc.
+.PP
+Permission is granted to make and distribute verbatim copies of this manual
+provided the copyright notice and this permission notice are preserved on
+all copies.
+.PP
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided that the entire
+resulting derived work is distributed under the terms of a permission
+notice identical to this one.
+.PP
+Permission is granted to copy and distribute translations of this manual
+into another language, under the above conditions for modified versions,
+except that this permission notice may be included in translations approved
+by the Free Software Foundation instead of in the original English.
+.SH "SEE ALSO"
+.BR gdb (1),
+.BR core (5)
diff --git a/debian/gdb-multiarch.postinst b/debian/gdb-multiarch.postinst
new file mode 100755
index 0000000..6bad4b8
--- /dev/null
+++ b/debian/gdb-multiarch.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Replace documentation directory with symlink
+if [ -d /usr/share/doc/gdb-multiarch ] && [ ! -L /usr/share/doc/gdb-multiarch ]; then
+ if rmdir /usr/share/doc/gdb-multiarch 2>/dev/null; then
+ ln -sf gdb /usr/share/doc/gdb-multiarch
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/gdb-source.postinst b/debian/gdb-source.postinst
new file mode 100755
index 0000000..866ae56
--- /dev/null
+++ b/debian/gdb-source.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Replace documentation directory with symlink
+if [ -d /usr/share/doc/gdb-source ] && [ ! -L /usr/share/doc/gdb-source ]; then
+ if rmdir /usr/share/doc/gdb-source 2>/dev/null; then
+ ln -sf gdb /usr/share/doc/gdb-source
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/gdb-source.preinst b/debian/gdb-source.preinst
new file mode 100644
index 0000000..d35604d
--- /dev/null
+++ b/debian/gdb-source.preinst
@@ -0,0 +1,12 @@
+#! /bin/sh
+set -e
+
+# Delete symlink that will be replaced by a directory
+docdir="/usr/share/doc/gdb-source"
+if [ -L $docdir ]; then
+ rm $docdir 2>/dev/null
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/gdb.install b/debian/gdb.install
new file mode 100644
index 0000000..c6db416
--- /dev/null
+++ b/debian/gdb.install
@@ -0,0 +1,4 @@
+usr/bin/gdb
+usr/bin/gcore
+usr/share/gdb
+usr/include/gdb/jit-reader.h
diff --git a/debian/gdb.menu b/debian/gdb.menu
new file mode 100644
index 0000000..286d95a
--- /dev/null
+++ b/debian/gdb.menu
@@ -0,0 +1,3 @@
+?package(gdb):needs="text" title="GDB" section="Applications/Programming"\
+ hints="Debuggers" command="/usr/bin/gdb"
+
diff --git a/debian/gdbinit b/debian/gdbinit
new file mode 100644
index 0000000..ccb3b0d
--- /dev/null
+++ b/debian/gdbinit
@@ -0,0 +1 @@
+# System-wide GDB initialization file.
diff --git a/debian/gdbserver.install b/debian/gdbserver.install
new file mode 100644
index 0000000..87bfe2a
--- /dev/null
+++ b/debian/gdbserver.install
@@ -0,0 +1 @@
+usr/bin/gdbserver
diff --git a/debian/gdbtui b/debian/gdbtui
new file mode 100755
index 0000000..ec42c0a
--- /dev/null
+++ b/debian/gdbtui
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+prog=$(basename $0 tui)
+
+dir=$(dirname $0)
+if [ "$dir" != "." ]; then
+ prog=$dir/$prog
+fi
+
+exec $prog --tui "$@"
diff --git a/debian/patches/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch b/debian/patches/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
new file mode 100644
index 0000000..c8f97d3
--- /dev/null
+++ b/debian/patches/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
@@ -0,0 +1,286 @@
+From: Jan Kratochvil <jan.kratochvil@redhat.com>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2
+
+Bug-Debian: http://bugs.debian.org/581707
+Bug-Redhat: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185337
+Origin: vendor, http://pkgs.fedoraproject.org/cgit/gdb.git/tree/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
+
+https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185337
+
+2008-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Port to GDB-6.8pre.
+
+currently for trivial nonthreaded helloworld with no debug info up to -ggdb2 you
+will get:
+ (gdb) p errno
+ [some error]
+
+* with -ggdb2 and less "errno" in fact does not exist anywhere as it was
+ compiled to "(*__errno_location ())" and the macro definition is not present.
+ Unfortunately gdb will find the TLS symbol and it will try to access it but
+ as the program has been compiled without -lpthread the TLS base register
+ (%gs on i386) is not setup and it will result in:
+ Cannot access memory at address 0x8
+
+Attached suggestion patch how to deal with the most common "errno" symbol
+for the most common under-ggdb3 compiled programs.
+
+Original patch hooked into target_translate_tls_address. But its inferior
+call invalidates `struct frame *' in the callers - RH BZ 690908.
+
+https://bugzilla.redhat.com/show_bug.cgi?id=1166549
+
+
+2007-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * ./gdb/dwarf2read.c (read_partial_die, dwarf2_linkage_name): Prefer
+ DW_AT_MIPS_linkage_name over DW_AT_name now only for non-C.
+
+glibc-debuginfo-2.7-2.x86_64: /usr/lib/debug/lib64/libc.so.6.debug:
+ <81a2> DW_AT_name : (indirect string, offset: 0x280e): __errno_location
+ <81a8> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x2808): *__GI___errno_location
+---
+ gdb/printcmd.c | 6 ++-
+ gdb/testsuite/gdb.dwarf2/dw2-errno.c | 28 +++++++++++++
+ gdb/testsuite/gdb.dwarf2/dw2-errno.exp | 60 ++++++++++++++++++++++++++++
+ gdb/testsuite/gdb.dwarf2/dw2-errno2.c | 28 +++++++++++++
+ gdb/testsuite/gdb.dwarf2/dw2-errno2.exp | 71 +++++++++++++++++++++++++++++++++
+ 5 files changed, 192 insertions(+), 1 deletion(-)
+ create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-errno.c
+ create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-errno.exp
+ create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-errno2.c
+ create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-errno2.exp
+
+Index: gdb/gdb/printcmd.c
+===================================================================
+--- gdb.orig/gdb/printcmd.c 2019-02-22 11:22:04.575563176 +0100
++++ gdb/gdb/printcmd.c 2019-02-22 11:22:04.571563128 +0100
+@@ -1183,6 +1183,10 @@
+
+ if (exp && *exp)
+ {
++ /* '*((int *(*) (void)) __errno_location) ()' is incompatible with
++ function descriptors. */
++ if (target_has_execution && strcmp (exp, "errno") == 0)
++ exp = "*(*(int *(*)(void)) __errno_location) ()";
+ expression_up expr = parse_expression (exp);
+ val = evaluate_expression (expr.get ());
+ }
+@@ -1190,7 +1194,7 @@
+ val = access_value_history (0);
+
+ if (voidprint || (val && value_type (val) &&
+- TYPE_CODE (value_type (val)) != TYPE_CODE_VOID))
++ TYPE_CODE (value_type (val)) != TYPE_CODE_VOID))
+ print_value (val, &fmt);
+ }
+
+Index: gdb/gdb/testsuite/gdb.dwarf2/dw2-errno.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb/gdb/testsuite/gdb.dwarf2/dw2-errno.c 2019-02-22 11:22:04.571563128 +0100
+@@ -0,0 +1,28 @@
++/* This testcase is part of GDB, the GNU debugger.
++
++ Copyright 2005, 2007 Free Software Foundation, Inc.
++
++ This program is free software; you can redistribute it and/or modify
++ it under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 3 of the License, or
++ (at your option) any later version.
++
++ This program is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with this program. If not, see <http://www.gnu.org/licenses/>.
++
++ Please email any bugs, comments, and/or additions to this file to:
++ bug-gdb@prep.ai.mit.edu */
++
++#include <errno.h>
++
++int main()
++{
++ errno = 42;
++
++ return 0; /* breakpoint */
++}
+Index: gdb/gdb/testsuite/gdb.dwarf2/dw2-errno.exp
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb/gdb/testsuite/gdb.dwarf2/dw2-errno.exp 2019-02-22 11:22:04.571563128 +0100
+@@ -0,0 +1,60 @@
++# Copyright 2007 Free Software Foundation, Inc.
++
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program. If not, see <http://www.gnu.org/licenses/>.
++
++set testfile dw2-errno
++set srcfile ${testfile}.c
++set binfile [standard_output_file ${testfile}]
++
++proc prep {} {
++ global srcdir subdir binfile
++ gdb_exit
++ gdb_start
++ gdb_reinitialize_dir $srcdir/$subdir
++ gdb_load ${binfile}
++
++ runto_main
++
++ gdb_breakpoint [gdb_get_line_number "breakpoint"]
++ gdb_continue_to_breakpoint "breakpoint"
++}
++
++if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "additional_flags=-g2"] != "" } {
++ untested "Couldn't compile test program"
++ return -1
++}
++prep
++gdb_test "print errno" ".* = 42" "errno with macros=N threads=N"
++
++if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "additional_flags=-g3"] != "" } {
++ untested "Couldn't compile test program"
++ return -1
++}
++prep
++gdb_test "print errno" ".* = 42" "errno with macros=Y threads=N"
++
++if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "additional_flags=-g2"] != "" } {
++ return -1
++}
++prep
++gdb_test "print errno" ".* = 42" "errno with macros=N threads=Y"
++
++if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "additional_flags=-g3"] != "" } {
++ return -1
++}
++prep
++gdb_test "print errno" ".* = 42" "errno with macros=Y threads=Y"
++
++# TODO: Test the error on resolving ERRNO with only libc loaded.
++# Just how to find the current libc filename?
+Index: gdb/gdb/testsuite/gdb.dwarf2/dw2-errno2.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb/gdb/testsuite/gdb.dwarf2/dw2-errno2.c 2019-02-22 11:22:04.571563128 +0100
+@@ -0,0 +1,28 @@
++/* This testcase is part of GDB, the GNU debugger.
++
++ Copyright 2005, 2007 Free Software Foundation, Inc.
++
++ This program is free software; you can redistribute it and/or modify
++ it under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 3 of the License, or
++ (at your option) any later version.
++
++ This program is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with this program. If not, see <http://www.gnu.org/licenses/>.
++
++ Please email any bugs, comments, and/or additions to this file to:
++ bug-gdb@prep.ai.mit.edu */
++
++#include <errno.h>
++
++int main()
++{
++ errno = 42;
++
++ return 0; /* breakpoint */
++}
+Index: gdb/gdb/testsuite/gdb.dwarf2/dw2-errno2.exp
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb/gdb/testsuite/gdb.dwarf2/dw2-errno2.exp 2019-02-22 11:22:04.571563128 +0100
+@@ -0,0 +1,71 @@
++# Copyright 2007 Free Software Foundation, Inc.
++
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program. If not, see <http://www.gnu.org/licenses/>.
++
++set testfile dw2-errno2
++set srcfile ${testfile}.c
++set binfile [standard_output_file ${testfile}]
++
++proc prep { message {do_xfail 0} } { with_test_prefix $message {
++ global srcdir subdir binfile variant
++ gdb_exit
++ gdb_start
++ gdb_reinitialize_dir $srcdir/$subdir
++ gdb_load ${binfile}${variant}
++
++ runto_main
++
++ gdb_breakpoint [gdb_get_line_number "breakpoint"]
++ gdb_continue_to_breakpoint "breakpoint"
++
++ gdb_test "gcore ${binfile}${variant}.core" "\r\nSaved corefile .*" "gcore $variant"
++
++ gdb_test "print errno" ".* = 42"
++
++ gdb_test "kill" ".*" "kill" {Kill the program being debugged\? \(y or n\) } "y"
++ gdb_test "core-file ${binfile}${variant}.core" "\r\nCore was generated by .*" "core-file"
++ if $do_xfail {
++ setup_xfail "*-*-*"
++ }
++ gdb_test "print errno" ".* = 42" "print errno for core"
++}}
++
++set variant g2thrN
++if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}${variant}" executable "additional_flags=-g2"] != "" } {
++ untested "Couldn't compile test program"
++ return -1
++}
++prep "macros=N threads=N" 1
++
++set variant g3thrN
++if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}${variant}" executable "additional_flags=-g3"] != "" } {
++ untested "Couldn't compile test program"
++ return -1
++}
++prep "macros=Y threads=N" 1
++
++set variant g2thrY
++if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}${variant}" executable "additional_flags=-g2"] != "" } {
++ return -1
++}
++prep "macros=N threads=Y"
++
++set variant g3thrY
++if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}${variant}" executable "additional_flags=-g3"] != "" } {
++ return -1
++}
++prep "macros=Y threads=Y" 1
++
++# TODO: Test the error on resolving ERRNO with only libc loaded.
++# Just how to find the current libc filename?
diff --git a/debian/patches/gdb-PATH_MAX.patch b/debian/patches/gdb-PATH_MAX.patch
new file mode 100644
index 0000000..a547472
--- /dev/null
+++ b/debian/patches/gdb-PATH_MAX.patch
@@ -0,0 +1,21 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: gdb-PATH_MAX
+
+===================================================================
+---
+ gdb/remote.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+Index: gdb/gdb/remote.c
+===================================================================
+--- gdb.orig/gdb/remote.c 2019-02-22 11:26:21.254851487 +0100
++++ gdb/gdb/remote.c 2019-02-22 11:27:05.303425518 +0100
+@@ -7355,6 +7355,7 @@
+ /* This is freed during event handling. */
+ event->ws.value.execd_pathname = pathname;
+ event->ws.kind = TARGET_WAITKIND_EXECD;
++ xfree (pathname);
+
+ /* Skip the registers included in this packet, since
+ they may be for an architecture different from the
diff --git a/debian/patches/gdb-fortran-main.patch b/debian/patches/gdb-fortran-main.patch
new file mode 100644
index 0000000..38380de
--- /dev/null
+++ b/debian/patches/gdb-fortran-main.patch
@@ -0,0 +1,91 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: gdb-fortran-main
+
+Daniel,
+
+Although the proper way of adding case insensitivity to symbol lookup is
+still under discussion, I think it might be desirable to set the main
+function of Fortran programs to "MAIN__" first. Because it can at least
+let GDB recognize that the language is Fortran after loading a Fortran
+executable only. What is your idea on this? Please comments. TIA!
+
+Here is the patch to set the main function in Fortran programs to
+"MAIN__". And followed is a patch to verify this. Tested with g77 and
+gfortran on x86, and g77 on ppc64. With the first patch, it reported
+PASS; without, report FAIL. No regression is found in gdb.fortran
+testcases.
+
+P.S: if there is a symbol named "MAIN__" in sources of other languages, it
+might disturb the debugging. But I am not sure how much it is.
+---
+ gdb/symtab.c | 9 +++++++--
+ gdb/testsuite/gdb.fortran/lang.exp | 40 ++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 47 insertions(+), 2 deletions(-)
+ create mode 100644 gdb/testsuite/gdb.fortran/lang.exp
+
+Index: gdb/gdb/symtab.c
+===================================================================
+--- gdb.orig/gdb/symtab.c 2019-02-22 11:21:51.583408077 +0100
++++ gdb/gdb/symtab.c 2019-02-22 11:21:51.579408029 +0100
+@@ -5795,8 +5795,13 @@
+ }
+
+ /* The languages above didn't identify the name of the main procedure.
+- Fallback to "main". */
+- set_main_name ("main", language_unknown);
++ Fallback to "MAIN__" (g77 and gfortran) if we can find it in the
++ minimal symtab, to "main" otherwise. */
++ struct bound_minimal_symbol msym = lookup_minimal_symbol ("MAIN__", NULL, NULL);
++ if (msym.minsym)
++ set_main_name ("MAIN__", language_fortran);
++ else
++ set_main_name ("main", language_unknown);
+ }
+
+ char *
+Index: gdb/gdb/testsuite/gdb.fortran/lang.exp
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb/gdb/testsuite/gdb.fortran/lang.exp 2019-02-22 11:21:51.579408029 +0100
+@@ -0,0 +1,40 @@
++# Copyright 2005 Free Software Foundation, Inc.
++
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 2 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++
++# This file was written by Wu Zhou. (woodzltc@cn.ibm.com)
++
++# This file is part of the gdb testsuite. It is intended to test that gdb
++# could recognize the Fortran language after loading the binary
++
++if $tracelevel then {
++ strace $tracelevel
++}
++
++set testfile "array-element"
++set srcfile ${srcdir}/${subdir}/${testfile}.f
++set binfile ${objdir}/${subdir}/${testfile}
++
++if { [gdb_compile "${srcfile}" "${binfile}" executable {debug f77}] != "" } {
++ untested "Couldn't compile ${srcfile}"
++ return -1
++}
++
++gdb_exit
++gdb_start
++gdb_reinitialize_dir $srcdir/$subdir
++gdb_load ${binfile}
++
++gdb_test "show language" ".*currently fortran.*" "show language(fortran)"
diff --git a/debian/patches/gdb-glibc-vdso-workaround.patch b/debian/patches/gdb-glibc-vdso-workaround.patch
new file mode 100644
index 0000000..e4f06df
--- /dev/null
+++ b/debian/patches/gdb-glibc-vdso-workaround.patch
@@ -0,0 +1,35 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: [RFC] Work around PR libc/13097 "linux-vdso.so.1" #2
+
+Hi,
+
+missed the x86_64-m32 case:
+
+gdb/
+2011-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Work around PR libc/13097.
+ * solib.c (update_solib_list): Ignore "linux-vdso.so.1".
+---
+ gdb/solib.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+Index: gdb/gdb/solib.c
+===================================================================
+--- gdb.orig/gdb/solib.c 2019-02-22 11:22:10.271631170 +0100
++++ gdb/gdb/solib.c 2019-02-22 11:22:10.267631123 +0100
+@@ -870,8 +870,11 @@
+
+ TRY
+ {
+- /* Fill in the rest of the `struct so_list' node. */
+- if (!solib_map_sections (i))
++ /* Fill in the rest of the `struct so_list' node.
++ Work around PR libc/13097. */
++ if (!solib_map_sections (i)
++ && strcmp (i->so_original_name, "linux-vdso.so.1") != 0
++ && strcmp (i->so_original_name, "linux-gate.so.1") != 0)
+ {
+ not_found++;
+ if (not_found_filename == NULL)
diff --git a/debian/patches/gdb_bsd-kvm.c.diff b/debian/patches/gdb_bsd-kvm.c.diff
new file mode 100644
index 0000000..e0bac78
--- /dev/null
+++ b/debian/patches/gdb_bsd-kvm.c.diff
@@ -0,0 +1,31 @@
+Index: gdb/gdb/bsd-kvm.c
+===================================================================
+--- gdb.orig/gdb/bsd-kvm.c 2019-02-22 11:36:33.514594292 +0100
++++ gdb/gdb/bsd-kvm.c 2019-02-22 11:36:33.514594292 +0100
+@@ -238,7 +238,7 @@
+ /* On dumping core, BSD kernels store the faulting context (PCB)
+ in the variable "dumppcb". */
+ memset (nl, 0, sizeof nl);
+- nl[0].n_name = "_dumppcb";
++ nl[0].n_un.n_name = (char *)"_dumppcb";
+
+ if (kvm_nlist (core_kd, nl) == -1)
+ error (("%s"), kvm_geterr (core_kd));
+@@ -256,7 +256,7 @@
+ "proc0paddr". */
+
+ memset (nl, 0, sizeof nl);
+- nl[0].n_name = "_proc0paddr";
++ nl[0].n_un.n_name = (char *)"_proc0paddr";
+
+ if (kvm_nlist (core_kd, nl) == -1)
+ error (("%s"), kvm_geterr (core_kd));
+@@ -280,7 +280,7 @@
+ variable "thread0". */
+
+ memset (nl, 0, sizeof nl);
+- nl[0].n_name = "_thread0";
++ nl[0].n_un.n_name = (char *)"_thread0";
+
+ if (kvm_nlist (core_kd, nl) == -1)
+ error (("%s"), kvm_geterr (core_kd));
diff --git a/debian/patches/gdb_configure.nat.patch b/debian/patches/gdb_configure.nat.patch
new file mode 100644
index 0000000..12bab39
--- /dev/null
+++ b/debian/patches/gdb_configure.nat.patch
@@ -0,0 +1,22 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: gdb_configure.nat
+
+===================================================================
+---
+ gdb/configure.nat | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: gdb/gdb/configure.nat
+===================================================================
+--- gdb.orig/gdb/configure.nat 2019-02-22 11:22:25.383811537 +0100
++++ gdb/gdb/configure.nat 2019-02-22 11:23:41.284731325 +0100
+@@ -214,7 +214,7 @@
+ i386)
+ # Host: Intel 386 running the GNU Hurd
+ NATDEPFILES='i386-gnu-nat.o gnu-nat.o \
+- x86-nat.o nat/x86-dregs.o fork-child.o \
++ x86-nat.o nat/x86-dregs.o fork-child.o fork-inferior.o \
+ nat/fork-inferior.o \
+ notify_S.o process_reply_S.o msg_reply_S.o \
+ msg_U.o exc_request_U.o exc_request_S.o'
diff --git a/debian/patches/load-versioned-libcc1.patch b/debian/patches/load-versioned-libcc1.patch
new file mode 100644
index 0000000..0696b66
--- /dev/null
+++ b/debian/patches/load-versioned-libcc1.patch
@@ -0,0 +1,27 @@
+From: Hector Oron <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: load-versioned-libcc1
+
+* d/p/load-versioned-libcc1.patch:
+ - load libcc1.so.0 instead unversioned file.
+
+* d/p/load-versioned-libcc1.patch:
+ - load libcc1.so.0 instead unversioned file.
+Author: Hector Oron <zumbi@debian.org>
+---
+ include/gcc-c-interface.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/gcc-c-interface.h b/include/gcc-c-interface.h
+index d14472a..dae2f0a 100644
+--- a/include/gcc-c-interface.h
++++ b/include/gcc-c-interface.h
+@@ -188,7 +188,7 @@ struct gcc_c_context
+ /* The name of the .so that the compiler builds. We dlopen this
+ later. */
+
+-#define GCC_C_FE_LIBCC libcc1.so
++#define GCC_C_FE_LIBCC libcc1.so.0
+
+ /* The compiler exports a single initialization function. This macro
+ holds its name as a symbol. */
diff --git a/debian/patches/python-config.patch b/debian/patches/python-config.patch
new file mode 100644
index 0000000..baf4954
--- /dev/null
+++ b/debian/patches/python-config.patch
@@ -0,0 +1,193 @@
+From: Matthias Klose <doko@ubuntu.com>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: Use system python-config if available
+
+Forwarded: https://sourceware.org/ml/gdb-patches/2012-12/msg00751.html
+---
+ gdb/configure | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++----
+ gdb/configure.ac | 14 ++++----
+ 2 files changed, 108 insertions(+), 12 deletions(-)
+
+Index: gdb/gdb/configure
+===================================================================
+--- gdb.orig/gdb/configure 2019-02-22 11:22:07.547598653 +0100
++++ gdb/gdb/configure 2019-02-22 11:22:07.543598605 +0100
+@@ -715,6 +715,7 @@
+ PYTHON_LIBS
+ PYTHON_CPPFLAGS
+ PYTHON_CFLAGS
++python_config
+ python_prog_path
+ LTLIBMPFR
+ LIBMPFR
+@@ -10478,29 +10479,122 @@
+ esac
+ esac
+
++ python_config=
+ if test "${python_prog}" != missing; then
++ if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}${python_prog}-config", so it can be a program name with args.
++set dummy ${ac_tool_prefix}${python_prog}-config; ac_word=$2
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if test "${ac_cv_prog_python_config+set}" = set; then :
++ $as_echo_n "(cached) " >&6
++else
++ if test -n "$python_config"; then
++ ac_cv_prog_python_config="$python_config" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ ac_cv_prog_python_config="${ac_tool_prefix}${python_prog}-config"
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++ done
++IFS=$as_save_IFS
++
++fi
++fi
++python_config=$ac_cv_prog_python_config
++if test -n "$python_config"; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_config" >&5
++$as_echo "$python_config" >&6; }
++else
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
++
++
++fi
++if test -z "$ac_cv_prog_python_config"; then
++ ac_ct_python_config=$python_config
++ # Extract the first word of "${python_prog}-config", so it can be a program name with args.
++set dummy ${python_prog}-config; ac_word=$2
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if test "${ac_cv_prog_ac_ct_python_config+set}" = set; then :
++ $as_echo_n "(cached) " >&6
++else
++ if test -n "$ac_ct_python_config"; then
++ ac_cv_prog_ac_ct_python_config="$ac_ct_python_config" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ ac_cv_prog_ac_ct_python_config="${python_prog}-config"
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++ done
++IFS=$as_save_IFS
++
++fi
++fi
++ac_ct_python_config=$ac_cv_prog_ac_ct_python_config
++if test -n "$ac_ct_python_config"; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_python_config" >&5
++$as_echo "$ac_ct_python_config" >&6; }
++else
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
++
++ if test "x$ac_ct_python_config" = x; then
++ python_config="${python_prog} ${srcdir}/python/python-config.py"
++ else
++ case $cross_compiling:$ac_tool_warned in
++yes:)
++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
++ac_tool_warned=yes ;;
++esac
++ python_config=$ac_ct_python_config
++ fi
++else
++ python_config="$ac_cv_prog_python_config"
++fi
++
+ # We have a python program to use, but it may be too old.
+ # Don't flag an error for --with-python=auto (the default).
+ have_python_config=yes
+- python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
++ python_includes=`${python_config} --includes`
+ if test $? != 0; then
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+- as_fn_error $? "failure running python-config --includes" "$LINENO" 5
++ as_fn_error $? "failure running ${python-config} --includes" "$LINENO" 5
+ fi
+ fi
+- python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
++ python_libs=`${python_config} --ldflags`
+ if test $? != 0; then
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+- as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
++ as_fn_error $? "failure running ${python-config} --ldflags" "$LINENO" 5
+ fi
+ fi
+- python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
++ python_prefix=`${python_config} --exec-prefix`
+ if test $? != 0; then
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+- as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
++ as_fn_error $? "failure running ${python-config} --exec-prefix" "$LINENO" 5
+ fi
+ fi
+ else
+Index: gdb/gdb/configure.ac
+===================================================================
+--- gdb.orig/gdb/configure.ac 2019-02-22 11:22:07.547598653 +0100
++++ gdb/gdb/configure.ac 2019-02-22 11:22:07.547598653 +0100
+@@ -834,29 +834,31 @@
+ esac
+ esac
+
++ python_config=
+ if test "${python_prog}" != missing; then
++ AC_CHECK_TOOL(python_config,[${python_prog}-config],[${python_prog} ${srcdir}/python/python-config.py])
+ # We have a python program to use, but it may be too old.
+ # Don't flag an error for --with-python=auto (the default).
+ have_python_config=yes
+- python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
++ python_includes=`${python_config} --includes`
+ if test $? != 0; then
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+- AC_ERROR(failure running python-config --includes)
++ AC_ERROR(failure running ${python_config} --includes)
+ fi
+ fi
+- python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
++ python_libs=`${python_config} --ldflags`
+ if test $? != 0; then
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+- AC_ERROR(failure running python-config --ldflags)
++ AC_ERROR(failure running ${python_config} --ldflags)
+ fi
+ fi
+- python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
++ python_prefix=`${python_config} --exec-prefix`
+ if test $? != 0; then
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+- AC_ERROR(failure running python-config --exec-prefix)
++ AC_ERROR(failure running ${python_config} --exec-prefix)
+ fi
+ fi
+ else
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..858f648
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,10 @@
+gdb-fortran-main.patch
+solve_PATH_MAX_issue.patch
+gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
+python-config.patch
+gdb-glibc-vdso-workaround.patch
+load-versioned-libcc1.patch
+gdb_configure.nat.patch
+gdb-PATH_MAX.patch
+struct-thread_info.patch
+gdb_bsd-kvm.c.diff
diff --git a/debian/patches/solve_PATH_MAX_issue.patch b/debian/patches/solve_PATH_MAX_issue.patch
new file mode 100644
index 0000000..4f860e9
--- /dev/null
+++ b/debian/patches/solve_PATH_MAX_issue.patch
@@ -0,0 +1,50 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: Patch out a PATH_MAX usage, for Hurd's benefit
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+Author: Svante Signell <svante.signell@gmail.com>
+Bug-Debian: http://bugs.debian.org/709508
+Forwarded: http://sourceware.org/ml/gdb-patches/2013-05/msg00878.html
+Reviewed-By: Héctor Orón Martínez <zumbi@debian.org>
+Last-Update: 2013-06-08
+---
+ gdb/nto-tdep.c | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
+index 82a4fcb..12923fc 100644
+--- a/gdb/nto-tdep.c
++++ b/gdb/nto-tdep.c
+@@ -155,10 +155,12 @@ nto_find_and_open_solib (const char *solib, unsigned o_flags,
+ void
+ nto_init_solib_absolute_prefix (void)
+ {
+- char buf[PATH_MAX * 2], arch_path[PATH_MAX];
++ char *buf, *arch_path;
+ char *nto_root;
+ const char *endian;
+ const char *arch;
++ int arch_len, len;
++#define FMT "set solib-absolute-prefix %s"
+
+ nto_root = nto_target ();
+ if (strcmp (gdbarch_bfd_arch_info (target_gdbarch ())->arch_name, "i386") == 0)
+@@ -181,9 +183,13 @@ nto_init_solib_absolute_prefix (void)
+ == BFD_ENDIAN_BIG ? "be" : "le";
+ }
+
+- xsnprintf (arch_path, sizeof (arch_path), "%s/%s%s", nto_root, arch, endian);
++ arch_len = strlen (nto_root) + 1 + strlen (arch) + strlen (endian) + 1;
++ arch_path = alloca (arch_len);
++ xsnprintf (arch_path, arch_len, "%s/%s%s", nto_root, arch, endian);
+
+- xsnprintf (buf, sizeof (buf), "set solib-absolute-prefix %s", arch_path);
++ len = strlen (FMT) - 2 + strlen (arch_path) + 1;
++ buf = alloca (len);
++ xsnprintf (buf, len, FMT, arch_path);
+ execute_command (buf, 0);
+ }
+
diff --git a/debian/patches/struct-thread_info.patch b/debian/patches/struct-thread_info.patch
new file mode 100644
index 0000000..e9583b5
--- /dev/null
+++ b/debian/patches/struct-thread_info.patch
@@ -0,0 +1,249 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: struct-thread_info
+
+===================================================================
+---
+ gdb/breakpoint.c | 2 +-
+ gdb/infcmd.c | 4 ++--
+ gdb/linux-tdep.c | 2 +-
+ gdb/mi/mi-main.c | 2 +-
+ gdb/progspace-and-thread.c | 2 +-
+ gdb/python/py-record-btrace.c | 8 ++++----
+ gdb/remote.c | 6 +++---
+ gdb/thread.c | 22 +++++++++++-----------
+ 8 files changed, 24 insertions(+), 24 deletions(-)
+
+Index: gdb/gdb/breakpoint.c
+===================================================================
+--- gdb.orig/gdb/breakpoint.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/breakpoint.c 2019-02-22 11:33:07.552034296 +0100
+@@ -12682,7 +12682,7 @@
+
+ longjmp_breakpoint::~longjmp_breakpoint ()
+ {
+- thread_info *tp = find_thread_global_id (this->thread);
++ struct thread_info *tp = find_thread_global_id (this->thread);
+
+ if (tp != NULL)
+ tp->initiating_frame = null_frame_id;
+Index: gdb/gdb/infcmd.c
+===================================================================
+--- gdb.orig/gdb/infcmd.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/infcmd.c 2019-02-22 11:33:07.552034296 +0100
+@@ -663,7 +663,7 @@
+ /* Queue a pending event so that the program stops immediately. */
+ if (run_how == RUN_STOP_AT_FIRST_INSN)
+ {
+- thread_info *thr = inferior_thread ();
++ struct thread_info *thr = inferior_thread ();
+ thr->suspend.waitstatus_pending_p = 1;
+ thr->suspend.waitstatus.kind = TARGET_WAITKIND_STOPPED;
+ thr->suspend.waitstatus.value.sig = GDB_SIGNAL_0;
+@@ -913,7 +913,7 @@
+ set_step_info (frame, sal);
+
+ CORE_ADDR pc = get_frame_pc (frame);
+- thread_info *tp = inferior_thread ();
++ struct thread_info *tp = inferior_thread ();
+ tp->control.step_start_function = find_pc_function (pc);
+ }
+
+Index: gdb/gdb/linux-tdep.c
+===================================================================
+--- gdb.orig/gdb/linux-tdep.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/linux-tdep.c 2019-02-22 11:33:07.552034296 +0100
+@@ -1654,7 +1654,7 @@
+ buffer. */
+
+ static gdb::byte_vector
+-linux_get_siginfo_data (thread_info *thread, struct gdbarch *gdbarch)
++linux_get_siginfo_data (struct thread_info *thread, struct gdbarch *gdbarch)
+ {
+ struct type *siginfo_type;
+ LONGEST bytes_read;
+Index: gdb/gdb/mi/mi-main.c
+===================================================================
+--- gdb.orig/gdb/mi/mi-main.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/mi/mi-main.c 2019-02-22 11:33:07.556034345 +0100
+@@ -553,7 +553,7 @@
+ error (_("-thread-select: USAGE: threadnum."));
+
+ int num = value_as_long (parse_and_eval (argv[0]));
+- thread_info *thr = find_thread_global_id (num);
++ struct thread_info *thr = find_thread_global_id (num);
+ if (thr == NULL)
+ error (_("Thread ID %d not known."), num);
+
+Index: gdb/gdb/progspace-and-thread.c
+===================================================================
+--- gdb.orig/gdb/progspace-and-thread.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/progspace-and-thread.c 2019-02-22 11:33:07.556034345 +0100
+@@ -28,7 +28,7 @@
+
+ if (inf != NULL && inf->pid != 0)
+ {
+- thread_info *tp = any_live_thread_of_inferior (inf);
++ struct thread_info *tp = any_live_thread_of_inferior (inf);
+
+ if (tp != NULL)
+ {
+Index: gdb/gdb/python/py-record-btrace.c
+===================================================================
+--- gdb.orig/gdb/python/py-record-btrace.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/python/py-record-btrace.c 2019-02-22 11:33:07.556034345 +0100
+@@ -72,7 +72,7 @@
+ {
+ const btrace_insn *insn;
+ const recpy_element_object *obj;
+- thread_info *tinfo;
++ struct thread_info *tinfo;
+ btrace_insn_iterator iter;
+
+ if (Py_TYPE (pyobject) != &recpy_insn_type)
+@@ -115,7 +115,7 @@
+ {
+ const btrace_function *func;
+ const recpy_element_object *obj;
+- thread_info *tinfo;
++ struct thread_info *tinfo;
+ btrace_call_iterator iter;
+
+ if (Py_TYPE (pyobject) != &recpy_func_type)
+@@ -153,7 +153,7 @@
+ gdb.RecordInstruction or gdb.RecordGap object for it accordingly. */
+
+ static PyObject *
+-btpy_insn_or_gap_new (thread_info *tinfo, Py_ssize_t number)
++btpy_insn_or_gap_new (struct thread_info *tinfo, Py_ssize_t number)
+ {
+ btrace_insn_iterator iter;
+ int err_code;
+@@ -338,7 +338,7 @@
+ recpy_bt_func_level (PyObject *self, void *closure)
+ {
+ const btrace_function * const func = btrace_func_from_recpy_func (self);
+- thread_info *tinfo;
++ struct thread_info *tinfo;
+
+ if (func == NULL)
+ return NULL;
+Index: gdb/gdb/remote.c
+===================================================================
+--- gdb.orig/gdb/remote.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/remote.c 2019-02-22 11:33:07.556034345 +0100
+@@ -2403,7 +2403,7 @@
+ return inf;
+ }
+
+-static remote_thread_info *get_remote_thread_info (thread_info *thread);
++static remote_thread_info *get_remote_thread_info (struct thread_info *thread);
+ static remote_thread_info *get_remote_thread_info (ptid_t ptid);
+
+ /* Add thread PTID to GDB's thread list. Tag it as executing/running
+@@ -2528,7 +2528,7 @@
+ /* Return THREAD's private thread data, creating it if necessary. */
+
+ static remote_thread_info *
+-get_remote_thread_info (thread_info *thread)
++get_remote_thread_info (struct thread_info *thread)
+ {
+ gdb_assert (thread != NULL);
+
+@@ -4344,7 +4344,7 @@
+ /* Add the main thread and switch to it. Don't try reading
+ registers yet, since we haven't fetched the target description
+ yet. */
+- thread_info *tp = add_thread_silent (curr_ptid);
++ struct thread_info *tp = add_thread_silent (curr_ptid);
+ switch_to_thread_no_regs (tp);
+ }
+
+Index: gdb/gdb/thread.c
+===================================================================
+--- gdb.orig/gdb/thread.c 2019-02-22 11:33:07.560034396 +0100
++++ gdb/gdb/thread.c 2019-02-22 11:35:39.389924517 +0100
+@@ -68,21 +68,21 @@
+ class scoped_inc_dec_ref
+ {
+ public:
+- explicit scoped_inc_dec_ref (const std::vector<thread_info *> &thrds)
++ explicit scoped_inc_dec_ref (const std::vector<struct thread_info *> &thrds)
+ : m_thrds (thrds)
+ {
+- for (thread_info *thr : m_thrds)
++ for (struct thread_info *thr : m_thrds)
+ thr->incref ();
+ }
+
+ ~scoped_inc_dec_ref ()
+ {
+- for (thread_info *thr : m_thrds)
++ for (struct thread_info *thr : m_thrds)
+ thr->decref ();
+ }
+
+ private:
+- const std::vector<thread_info *> &m_thrds;
++ const std::vector<struct thread_info *> &m_thrds;
+ };
+
+
+@@ -201,7 +201,7 @@
+ /* Set the TP's state as exited. */
+
+ static void
+-set_thread_exited (thread_info *tp, int silent)
++set_thread_exited (struct thread_info *tp, int silent)
+ {
+ /* Dead threads don't need to step-over. Remove from queue. */
+ if (tp->step_over_next != NULL)
+@@ -243,7 +243,7 @@
+ static struct thread_info *
+ new_thread (struct inferior *inf, ptid_t ptid)
+ {
+- thread_info *tp = new thread_info (inf, ptid);
++ struct thread_info *tp = new struct thread_info (inf, ptid);
+
+ if (inf->thread_list == NULL)
+ inf->thread_list = tp;
+@@ -1433,7 +1433,7 @@
+ order is determined by TP_ARRAY_COMPAR_ASCENDING. */
+
+ static bool
+-tp_array_compar (const thread_info *a, const thread_info *b)
++tp_array_compar (const struct thread_info *a, const struct thread_info *b)
+ {
+ if (a->inf->num != b->inf->num)
+ {
+@@ -1530,10 +1530,10 @@
+ thread, in case the command is one that wipes threads. E.g.,
+ detach, kill, disconnect, etc., or even normally continuing
+ over an inferior or thread exit. */
+- std::vector<thread_info *> thr_list_cpy;
++ std::vector<struct thread_info *> thr_list_cpy;
+ thr_list_cpy.reserve (tc);
+
+- for (thread_info *tp : all_non_exited_threads ())
++ for (struct thread_info *tp : all_non_exited_threads ())
+ thr_list_cpy.push_back (tp);
+ gdb_assert (thr_list_cpy.size () == tc);
+
+@@ -1545,7 +1545,7 @@
+
+ scoped_restore_current_thread restore_thread;
+
+- for (thread_info *thr : thr_list_cpy)
++ for (struct thread_info *thr : thr_list_cpy)
+ if (thread_alive (thr))
+ thr_try_catch_cmd (thr, cmd, from_tty, flags);
+ }
+@@ -1790,7 +1790,7 @@
+ /* See gdbthread.h. */
+
+ void
+-thread_select (const char *tidstr, thread_info *tp)
++thread_select (const char *tidstr, struct thread_info *tp)
+ {
+ if (!thread_alive (tp))
+ error (_("Thread ID %s has terminated."), tidstr);
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a6ad6ac
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,321 @@
+#!/usr/bin/make -f
+
+ALL_BUILDDIR := $(shell pwd)/build
+
+DEB_BUILDDIR := $(ALL_BUILDDIR)/objdir
+DEB_DH_INSTALL_SOURCEDIR := $(shell pwd)/debian/tmp
+DEB_DH_STRIP_ARGS_gdb = --dbgsym-migration='gdb-dbg (<< 7.12-1~)'
+
+# Override CDBS's default CFLAGS, which also includes -Wall; gdb
+# does not handle -Wunused well with -Werror, but defaults to
+# -Werror.
+DEB_WARNING_FLAGS :=
+
+# This implements the .deb package creation using debhelper.
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+# This implements building using a configure script and Makefile.
+include /usr/share/cdbs/1/class/python-autotools.mk
+
+# The top-level configure script fails to pass these down properly ...
+export CPPFLAGS
+export LDFLAGS
+CPPFLAGS += -fPIC
+
+# Always install into debian/tmp, even if we are only building one package.
+DEB_DESTDIR := $(shell pwd)/debian/tmp
+
+install = /usr/bin/install -p
+
+# Rather paranoid than sorry. Make the shell exit with an error if an
+# untested command fails.
+SHELL += -e
+
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
+DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+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)
+
+# Cross configuration support. Check for an environment variable
+# $GDB_TARGET, or a file debian/target.
+ifndef GDB_TARGET
+DEBIAN_TARGET_FILE := $(strip $(shell cat debian/target 2>/dev/null))
+ifneq ($(DEBIAN_TARGET_FILE),)
+GDB_TARGET := $(DEBIAN_TARGET_FILE)
+endif
+endif
+
+DEB_TARGET_ALIAS ?= $(DEB_TARGET_GNU_TYPE)
+
+ifneq ($(GDB_TARGET),)
+DEB_CONFIGURE_GDB_DATADIR := "\$${prefix}/share/gdb-$(DEB_TARGET_GNU_TYPE)"
+DEB_CONFIGURE_PATH_ARGS += --with-gdb-datadir=$(DEB_CONFIGURE_GDB_DATADIR)
+endif
+
+ifeq ($(DEB_TARGET_ARCH),)
+$(error GDB_TARGET value "$(GDB_TARGET)" is not a valid Debian architecture)
+endif
+
+ifdef GDB_TARGET
+ DEB_CROSS = yes
+ # TP: Target Prefix. Used primarily as a prefix for cross tool
+ # names (e.g. powerpc-linux-gcc).
+ # TS: Target Suffix. Used primarily at the end of cross compiler
+ # package names (e.g. gcc-powerpc).
+ TP = $(DEB_TARGET_ALIAS)-
+ TS = -$(DEB_TARGET_ALIAS)
+ CROSS_FORCE = FORCE
+endif
+
+distribution := $(shell lsb_release -is)
+deb_version := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+
+BUILDDIRMULTIARCH = $(ALL_BUILDDIR)/objdir-multiarch
+
+run_tests := yes
+
+ifneq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
+ run_tests := no
+endif
+
+ifeq (,$(findstring linux, $(DEB_HOST_GNU_SYSTEM)))
+ run_tests := no
+endif
+
+ifeq ($(DEB_HOST_GNU_CPU),ia64)
+ arch_config_args := --with-libunwind-ia64
+endif
+
+ifneq (,$(filter $(DEB_HOST_ARCH),amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390x))
+ arch_config_args += --with-babeltrace
+endif
+
+# Enable Intel Processor Trace (PT) on Linux x86 platform
+ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
+ arch_config_args += --with-intel-pt
+endif
+
+ifdef GDB_TARGET
+ run_tests := no
+
+ arch_config_args += --program-prefix=$(TP) \
+ --target=$(DEB_TARGET_ALIAS) --with-sysroot=/usr/$(DEB_TARGET_ALIAS)
+else
+ # To avoid file conflicts, only enable the global gdbinit file for native
+ # debuggers.
+ arch_config_args += --with-system-gdbinit=/etc/gdb/gdbinit
+endif
+
+INSTALL = $(install)
+export INSTALL
+
+# We pass srcdir explicitly to avoid an extra '/.' at the end of it. That
+# causes a harmless, but ugly, testsuite failure in maint.exp.
+EXTRA_FLAGS := --disable-gdbtk --disable-shared \
+ --with-pkgversion='$(distribution) $(deb_version)' \
+ --srcdir=$(shell pwd) \
+ --disable-readline --with-system-readline --with-expat \
+ --with-system-zlib --without-lzma \
+ --without-guile --without-babeltrace \
+ $(arch_config_args) --build=$(DEB_BUILD_GNU_TYPE)
+
+# Debian does not include 64-bit Python packages, so --with-python
+# is here rather than in EXTRA_FLAGS.
+DEB_CONFIGURE_EXTRA_FLAGS := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \
+ --enable-tui --with-lzma --with-python=python3
+
+# 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
+MULTIARCH_TARGETS := \
+ aarch64-linux-gnu \
+ alpha-linux-gnu \
+ arm-linux-gnu \
+ arm-linux-gnueabi \
+ arm-linux-gnueabihf \
+ arm-none-eabi \
+ hppa-linux-gnu \
+ i686-linux-gnu \
+ ia64-linux-gnu \
+ m68k-linux-gnu \
+ m68k-rtems \
+ mips-linux-gnu \
+ mipsel-linux-gnu \
+ mips64-linux-gnu \
+ mips64el-linux-gnu \
+ powerpc-linux-gnu \
+ powerpc-linux-gnuspe \
+ powerpc64le-linux-gnu \
+ powerpc64-linux-gnu \
+ ppc64-linux-gnu \
+ riscv32-linux-gnu \
+ riscv64-linux-gnu \
+ s390-linux-gnu \
+ s390x-linux-gnu \
+ sh-linux-gnu \
+ sparc-linux-gnu \
+ sparc64-linux-gnu \
+ x86_64-linux-gnu \
+ m32r-linux-gnu
+
+# broken, see https://launchpad.net/bugs/1233185
+#MULTIARCH_TARGETS := all
+# --enable-targets=$(MULTIARCH_TARGETS) \
+# multiarch flags
+DEB_CONFIGURE_FLAGS_MULTIARCH := $(DEB_CONFIGURE_EXTRA_FLAGS) \
+ --enable-64-bit-bfd \
+ --enable-targets=`set -- $(MULTIARCH_TARGETS); IFS=,; echo "$$*"` \
+ --disable-sim
+
+# Minimal flags
+DEB_CONFIGURE_FLAGS_MIN := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \
+ --disable-tui --without-python --without-babeltrace
+
+# Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008)
+COMMA = ,
+ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+ NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+endif
+
+DEB_MAKE_BUILD_TARGET = $(NJOBS) all
+
+BUILDDIRSOURCE := $(ALL_BUILDDIR)/gdb
+BUILDDIRMIN := $(ALL_BUILDDIR)/gdb-minimal
+
+# This should probably be common-post-build-arch, but that runs during
+# install, under fakeroot, in CDBS 0.4.21.
+build/gdb$(TS):: check-stamp
+ $(MAKE) -C $(DEB_BUILDDIR) info
+ $(MAKE) -C $(DEB_BUILDDIR)/gdb/doc refcard.dvi refcard.ps
+
+build/gdb-multiarch:: build-multiarch-stamp
+build-multiarch-stamp:
+ mkdir -p $(BUILDDIRMULTIARCH)
+ cd $(BUILDDIRMULTIARCH) && CFLAGS="$(CFLAGS)" \
+ $(shell pwd)/configure $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_DEBUG_ARGS) $(DEB_CONFIGURE_FLAGS_MULTIARCH)
+ cd $(BUILDDIRMULTIARCH) && $(DEB_MAKE_ENVVARS) $(MAKE) $(NJOBS)
+ touch $@
+
+build/gdb-minimal:: build-minimal-stamp
+build-minimal-stamp:
+ mkdir -p $(BUILDDIRMIN)
+ cd $(BUILDDIRMIN) && CFLAGS="$(CFLAGS)" \
+ $(shell pwd)/configure $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_DEBUG_ARGS) $(DEB_CONFIGURE_FLAGS_MIN)
+ cd $(BUILDDIRMIN) && $(DEB_MAKE_ENVVARS) $(MAKE) $(NJOBS)
+ touch $@
+
+check-stamp:
+ifeq ($(run_tests),yes)
+ $(MAKE) $(NJOBS) -C $(DEB_BUILDDIR)/gdb check \
+ || echo "**Tests failed, of course.**"
+endif
+ touch $@
+
+clean::
+ rm -f check-stamp build-multiarch-stamp
+ rm -f debian/files
+ rm -rf $(ALL_BUILDDIR)
+
+ if test -f gdb/version.in.backup; then \
+ mv -f gdb/version.in.backup gdb/version.in; \
+ fi
+
+# # For snapshots this is appropriate; careful of release tarballs
+# # which include .gmo files.
+# find -type f -name '*.gmo' | xargs rm -f
+
+ # Prevent gratuitous rebuilds of the BFD documentation, since it
+ # updates the copy in the source directory.
+ find bfd -name bfd.info\* | xargs --no-run-if-empty touch
+
+binary-post-install/gdb$(TS) ::
+ 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 [ -r 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
+ifeq ($(run_tests),yes)
+ install -d debian/gdb$(TS)/usr/share/doc/gdb
+ install -m 644 $(DEB_BUILDDIR)/gdb/testsuite/gdb.sum \
+ debian/gdb$(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
+ install -m 644 debian/gdbinit debian/gdb$(TS)/etc/gdb/
+ # Likewise gdb-add-index
+ install -m 755 gdb/contrib/gdb-add-index.sh debian/gdb$(TS)/usr/bin/gdb-add-index
+endif
+
+ 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-multiarch ::
+ install -d debian/gdb-multiarch/usr/bin
+ install -s -m 755 $(BUILDDIRMULTIARCH)/gdb/gdb debian/gdb-multiarch/usr/bin/gdb-multiarch
+ rm -rf debian/gdb-multiarch/usr/share/doc/gdb-multiarch
+ ln -s gdb debian/gdb-multiarch/usr/share/doc/gdb-multiarch
+
+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/
+
+binary-post-install/gdb-minimal ::
+ install -d debian/gdb-minimal/usr/bin
+ $(INSTALL) -m 755 -o root -g root \
+ $(BUILDDIRMIN)/gdb/gdb debian/gdb-minimal/usr/bin/gdb
+
+ $(INSTALL) -m 755 -o root -g root \
+ $(BUILDDIRMIN)/gdb/gcore debian/gdb-minimal/usr/bin/gcore
+
+ # Only ship a global gdbinit for the native GDB.
+ install -d debian/gdb-minimal/etc/gdb
+ install -m 644 debian/gdbinit debian/gdb-minimal/etc/gdb/
+
+binary-post-install/gdb-source ::
+ install -d debian/gdb-source/usr/src
+ mkdir -p $(BUILDDIRSOURCE)
+ tar --exclude build --exclude .git -cf - . \
+ | (cd $(BUILDDIRSOURCE) && tar -xf -)
+ cd $(BUILDDIRSOURCE) && debian/rules clean
+ cd $(dir $(BUILDDIRSOURCE)) \
+ && tar -cjf $(shell pwd)/debian/gdb-source/usr/src/gdb.tar.bz2 \
+ $(notdir $(BUILDDIRSOURCE))
+
+debian/control:: debian/control.in $(CROSS_FORCE)
+ cat debian/control.in \
+ | sed "s/@TS@/$(TS)/g" \
+ > debian/control
+ifeq ($(DEB_CROSS),yes)
+ sed -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
+endif
+
+# The default changelog is the top level one, which is useless.
+DEB_INSTALL_CHANGELOGS_ALL =
+
+DEB_INSTALL_DOCS_gdb$(TS) = gdb/NEWS gdb/README gdb/doc/refcard.tex \
+ $(DEB_BUILDDIR)/gdb/doc/refcard.dvi \
+ $(DEB_BUILDDIR)/gdb/doc/refcard.ps \
+ 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_gdbserver = gdb/gdbserver/README
+DEB_INSTALL_CHANGELOGS_gdbserver = gdb/gdbserver/ChangeLog
+
+DEB_INSTALL_DOCS_gdb-minimal = $(DEB_INSTALL_DOCS_gdb$(TS))
+DEB_INSTALL_CHANGELOGS_gdb-minimal = -XChangeLog
+
+.PHONY: FORCE
+FORCE:
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..3cdb27f
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,7 @@
+---
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+variables:
+ DEB_BUILD_OPTIONS: 'nocheck'
diff --git a/debian/sanitize-gdb.sh b/debian/sanitize-gdb.sh
new file mode 100644
index 0000000..9526678
--- /dev/null
+++ b/debian/sanitize-gdb.sh
@@ -0,0 +1,84 @@
+#!/bin/bash
+
+set -e
+
+tarball=$1
+if ! test -f "$tarball"; then
+ echo "Could not open $tarball"
+ exit 1
+fi
+
+tardir=$(dirname "$tarball")
+tardir=$(cd "$tardir" && pwd)
+version=$(basename "$tarball" | sed "s/^gdb-//; s/\.tar\.\(gz\|xz\|bz2\)\$//")
+debversion=${version}
+tarball="$tardir"/$(basename "$tarball")
+dfsg="$tardir/gdb_$debversion.orig.tar.xz"
+doc="$tardir/gdb-doc_$version.orig.tar.xz"
+
+dir=`cd $(dirname "$0") && pwd`
+
+temp=$(mktemp -d)
+olddir=`pwd`
+
+cd "$temp"
+mkdir src
+cd src
+tar -xf "$tarball"
+cd ..
+
+src=src/gdb-$version
+dest=gdb-$debversion
+destdoc=gdb-doc-$debversion
+
+if ! test -d "$src"; then
+ echo "Could not find source directory $src"
+ exit 1
+fi
+
+if test -z "$dest" || test -e "$dest"; then
+ echo "Could not create dest directory $dest"
+ exit 1
+fi
+
+src=`cd "$src" && pwd`
+
+cp -a "$src" "$dest"
+cp -a "$src" "$destdoc"
+
+pushd "$dest" > /dev/null
+
+# All of the gdb manpages are GFDL'd now
+rm -f $(find gdb \( -name '*.[1-9]' \))
+
+# Almost all of the texinfo documentation is GFDL. PSIM's is not, but
+# we don't need that manual especially anyway. Special care must be taken
+# with observer.texi, which is necessary for the build process. Remove
+# all pregenerated info files, then replace all texinfo files with dummy
+# versions.
+
+rm -f $(find . \( -name \*.info -o -name \*.info-\* \))
+rm -f $(find . \( -name \*.chm \))
+
+for f in $(find . \( -name \*.texinfo -o -name \*.texi \)); do
+ if test $(basename $f) = observer.texi; then
+ sed -ne '/@c This/,/@c any later/p; /@deftype/p' "$src/$f" > $f
+ continue
+ fi
+
+ echo > "$f"
+done
+
+popd > /dev/null
+
+tar --auto-compress -cf "$dfsg" gdb-$debversion
+
+pushd "$destdoc" > /dev/null
+rm -f $(find . \( -name \*.chm \))
+popd > /dev/null
+
+tar --auto-compress -cf "$doc" gdb-doc-$debversion
+
+# XXX maybe we should install this as an exit handler?
+cd "$olddir"
+rm -rf $temp
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..95a390b
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1 @@
+debian/upstream-signing-key.pgp
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..cf3f5c4
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,3 @@
+# 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 *
diff --git a/debian/upstream-signing-key.pgp b/debian/upstream-signing-key.pgp
new file mode 100644
index 0000000..a13e4b2
--- /dev/null
+++ b/debian/upstream-signing-key.pgp
Binary files differ
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..7db1200
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,30 @@
+-----BEGIN PGP ARMORED FILE-----
+Comment: Use "gpg --dearmor" for unpacking
+
+mQGiBENhPS0RBACoqcuAmCbDDjWxpxdGc6Jgc4IEselZDipRXC1gH8ahJ0Z5xs8Y
+b8oD/mp3RkE3vM9Q4GfhPTWmcqHonIYXZdn4//eZm20D7m2hAhIMrwBSSGA/EBZT
+UNqT7qXkWk/71JHJHmVx2GbTfIripzssQ//uoB0DhXaZNFaXI283yp5pwwCgrZH/
+M+10BH2QmQfbcERSEvYpSLkD/RWh3clEnckDTLMCqLWyzr67YOvGMzgv4W+hxa8A
+EmMBsCqSUmgHp4jwnJmGEKUoPFgU/16+TahaOG2g5YQ4efCSSolQUzJ7laK2QZff
+wCCgemz2tjeyJh+OwVo13Uq7x53KOmwCaMZzACVjPbW00U986agXrvj/GIy55+0S
+/AJsA/9aw+K9BJ9HPIPAZwryP6kksOQwXfnDerla1Xwe0C1xr8BUOHUzTk23ioK+
+t9G6u6bcXF7Gz/dHzi/8D6HcxEK6bt4P+O9Rju1f/a3qcQr17KZokEI+L5Yb3Qvx
+DcRfQnkEMOzgcZnVnIrWLPLe655EhrGRTYADA9t5vask7qF0abQmSm9lbCBCcm9i
+ZWNrZXIgPGJyb2JlY2tlckBhZGFjb3JlLmNvbT6IXgQTEQIAHgUCQ2E9LQIbAwYL
+CQgHAwIDFQIDAxYCAQIeAQIXgAAKCRCS7bBL/zJc81VRAKCodhMgu1Qg/PEZ5XLA
+HSqdIhRFWACeI2X+ZmeWUF3oGXhfRi/iZpMsxfq5Ag0EQ2E9NhAIAIVJxexoQ4S7
+3FMpd6niMh8ASbxd0ZfcgZOAH55r0YEKN0WBEsrECnF0ntCbiwDSJGFU/jO/TCOE
+xGAhW/ogRMSqitqiLl9t7lB0pDmHZ7AAeOF1iYODP6/em3AHTMyEQZYEqEq9LrGl
+kXyZWm15WLZEfxYPDrTHUP0D6yOR66Kkm2dsQfkIHO/EuDaKtoqtLLz5xBcTHJPV
+mP6mY4Gi8RDh3XwsHzKn4LZe6GLbXLGYFRy3gNSQqgadWzXm9P+avzaCn1arbn1B
+ZHdq9ZjE0OFt9gbC/ZhPEj8609py1+j16IRGiQlFOt5O9jQ31WyEDx3FGK1ja+9G
+vX2OdAPv+hcAAwcH/jUXmRczmM9QAPGpT/rhSEokVqfH7ZWthkA9R+4cLIw4Eeyx
+yNz4PUc53GYDfAgp2lFdxOb6Z/ODmMowDC/cHBWO4/UbnlbK8c2Z9jDIPsaXSjMS
+ea0ugp11GCuBvlMbm7Hr/kqzIWCgHPfs2IjJQuzbUhUv8vLzbnaJF46h3A9ZdYih
+VcMpIRaxp5og2zB/FZYTKXjmkby5CIOFc0rP2M9lpGLZUSFRFn3/kc4TULKoBMth
+UhcTsfQ8U5KIF/R/rFFypuWRRZhnMr2wLrJmoMu3+zeKsrkOnn5S/gljFIMDqMaG
+AScFcUkFflc7sk+3eWvxrw0Mj+7Brm+R3AMPVQWISQQYEQIACQUCQ2E9NgIbDAAK
+CRCS7bBL/zJc87q8AJ98YZ0C4dERrs3wdVCAu2lQjDg+vACeKigwTyMS8NQctwHH
+sbhLkW5Yfyk=
+=teew
+-----END PGP ARMORED FILE-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..53f4945
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+# See uscan(1) for format
+version=3
+opts=pgpsigurlmangle=s/$/.sig/ http://ftp.gnu.org/gnu/gdb/gdb-(.*)\.tar\.(?:gz|bz2|xz)