--- gdb-6.8.50.20090116.python.orig/debian/gdb.install +++ gdb-6.8.50.20090116.python/debian/gdb.install @@ -0,0 +1,3 @@ +usr/bin/*gdb* +usr/share/man/man1/*gdb*.1 +usr/share/gdb --- gdb-6.8.50.20090116.python.orig/debian/gdb.menu +++ gdb-6.8.50.20090116.python/debian/gdb.menu @@ -0,0 +1,3 @@ +?package(gdb):needs="text" title="GDB" section="Applications/Programming"\ + hints="Debuggers" command="/usr/bin/gdb" + --- gdb-6.8.50.20090116.python.orig/debian/control +++ gdb-6.8.50.20090116.python/debian/control @@ -0,0 +1,44 @@ +Source: gdb +Maintainer: Daniel Jacobowitz +Section: devel +Priority: optional +Standards-Version: 3.7.3 +Build-Depends: autoconf, libtool, texinfo (>= 4.7-2.2), texlive-base, libncurses5-dev, libreadline5-dev, bison, gettext, debhelper (>= 4.9.0), dejagnu, gcj [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386 !alpha !arm !hppa], gobjc [!armel], mig [hurd-alpha hurd-amd64 hurd-arm hurd-armeb hurd-hppa hurd-i386 hurd-ia64 hurd-m32r hurd-m68k hurd-mips hurd-mipsel hurd-powerpc hurd-ppc64 hurd-s390 hurd-s390x hurd-sh3 hurd-sh3eb hurd-sh4 hurd-sh4eb hurd-sparc], cdbs (>= 0.4.17), quilt (>= 0.30), libkvm-dev [kfreebsd-alpha kfreebsd-amd64 kfreebsd-arm kfreebsd-armeb kfreebsd-hppa kfreebsd-i386 kfreebsd-ia64 kfreebsd-m32r kfreebsd-m68k kfreebsd-mips kfreebsd-mipsel kfreebsd-powerpc kfreebsd-ppc64 kfreebsd-s390 kfreebsd-s390x kfreebsd-sh3 kfreebsd-sh3eb kfreebsd-sh4 kfreebsd-sh4eb kfreebsd-sparc], type-handling (>= 0.2.1), libunwind7-dev [ia64], flex | flex-old, libexpat1-dev, g++-multilib [i386 powerpc s390 sparc], lib64readline5-dev [i386 powerpc s390 sparc], python-dev, zlib1g-dev, procps + +Package: gdb +Architecture: any +Section: devel +Depends: ${shlibs:Depends} +Suggests: gdb-doc +Description: The 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, it works for C, C++, Fortran, + Modula 2 and Java programs. A must-have for any serious + programmer. + +Package: gdb64 +Architecture: i386 powerpc s390 sparc +Section: devel +Depends: ${shlibs:Depends}, gdb +Description: The GNU Debugger (64-bit) + GDB is a source-level debugger, capable of breaking programs at + any specific line, displaying variable values, and determining + where errors occurred. Currently, it works for C, C++, Fortran + Modula 2 and Java programs. A must-have for any serious + programmer. + +Package: libgdb-dev +Architecture: any +Section: libdevel +Priority: extra +Description: The GNU Debugger (libgdb.a) + GDB is a source-level debugger, capable of breaking programs at + any specific line, displaying variable values, and determining + where errors occurred. Currently, it works for C, C++, Fortran + Modula 2 and Java programs. A must-have for any serious + programmer. + . + This package contains libgdb.a, the bulk of GDB as a linkable + library. It is provided for an IDE which links to libgdb.a. Please + do not use libgdb.a for new projects. --- gdb-6.8.50.20090116.python.orig/debian/control.in +++ gdb-6.8.50.20090116.python/debian/control.in @@ -0,0 +1,44 @@ +Source: gdb +Maintainer: Daniel Jacobowitz +Section: devel +Priority: optional +Standards-Version: 3.7.3 +Build-Depends: autoconf, libtool, texinfo (>= 4.7-2.2), texlive-base, libncurses5-dev, libreadline5-dev, bison, gettext, debhelper (>= 4.9.0), dejagnu, gcj [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386 !alpha !arm !hppa], gobjc [!armel], mig [@gnu@], cdbs (>= 0.4.17), quilt (>= 0.30), libkvm-dev [@kfreebsd@], type-handling (>= 0.2.1), libunwind7-dev [ia64], flex | flex-old, libexpat1-dev, g++-multilib [i386 powerpc s390 sparc], lib64readline5-dev [i386 powerpc s390 sparc], python-dev, zlib1g-dev, procps + +Package: gdb@TS@ +Architecture: any +Section: devel +Depends: ${shlibs:Depends} +Suggests: gdb-doc +Description: The 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, it works for C, C++, Fortran, + Modula 2 and Java programs. A must-have for any serious + programmer. + +Package: gdb64 +Architecture: i386 powerpc s390 sparc +Section: devel +Depends: ${shlibs:Depends}, gdb +Description: The GNU Debugger (64-bit) + GDB is a source-level debugger, capable of breaking programs at + any specific line, displaying variable values, and determining + where errors occurred. Currently, it works for C, C++, Fortran + Modula 2 and Java programs. A must-have for any serious + programmer. + +Package: libgdb-dev +Architecture: any +Section: libdevel +Priority: extra +Description: The GNU Debugger (libgdb.a) + GDB is a source-level debugger, capable of breaking programs at + any specific line, displaying variable values, and determining + where errors occurred. Currently, it works for C, C++, Fortran + Modula 2 and Java programs. A must-have for any serious + programmer. + . + This package contains libgdb.a, the bulk of GDB as a linkable + library. It is provided for an IDE which links to libgdb.a. Please + do not use libgdb.a for new projects. --- gdb-6.8.50.20090116.python.orig/debian/compat +++ gdb-6.8.50.20090116.python/debian/compat @@ -0,0 +1 @@ +4 --- gdb-6.8.50.20090116.python.orig/debian/libgdb-dev.install +++ gdb-6.8.50.20090116.python/debian/libgdb-dev.install @@ -0,0 +1 @@ +usr/lib/lib*.a --- gdb-6.8.50.20090116.python.orig/debian/changelog.old +++ gdb-6.8.50.20090116.python/debian/changelog.old @@ -0,0 +1,6 @@ +gdb (4.16-1) unstable; urgency=low + + * Updated to new upstream version (Bug#4373) + * Added a simple extended description (Bug#3599) + + -- David Engel --- gdb-6.8.50.20090116.python.orig/debian/README.Debian +++ gdb-6.8.50.20090116.python/debian/README.Debian @@ -0,0 +1,8 @@ +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). + +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/ --- gdb-6.8.50.20090116.python.orig/debian/changelog +++ gdb-6.8.50.20090116.python/debian/changelog @@ -0,0 +1,1009 @@ +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 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 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. + * 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Mon, 2 Feb 2004 15:32:23 -0500 + +gdb (6.0-4) unstable; urgency=low + + * Switch to CDBS and quilt. + * Suppress warning about "" 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 Mon, 2 Feb 2004 10:03:19 -0500 + +gdb (6.0-3) unstable; urgency=low + + * Include instead of 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 + (Closes: #163543). + * Added a patch to call rl_filename_completion_function instead of + filename_completion_function, from Matt Chapman + (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 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 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 Mon, 19 Aug 2002 10:49:40 -0400 + +gdb (5.2.cvs20020818-1) unstable; urgency=low + + * New upstream CVS snapshot. + - Don't include 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 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 Sun, 21 Apr 2002 10:29:40 -0400 + +gdb (5.2.cvs20020401-5) unstable; urgency=low + + * More HPPA build fixes. + + -- Daniel Jacobowitz 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 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 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 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 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 patch to fix conflict with new ncurses. + + -- Daniel Jacobowitz 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 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 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 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 Sun, 7 Oct 2001 14:06:20 -0400 + +gdb (5.0.cvs20010729-2) unstable; urgency=low + + * Fix m68k build. Again. (Closes: #107807). + + -- Daniel Jacobowitz 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 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 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 ) + * added texinfo & tetex-bin to the build-dependencies. + + -- Vincent Renardias 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 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 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 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 : + 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 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 Mon, 14 Jun 1999 19:54:49 +0200 + +gdb (4.18-1) unstable; urgency=low + + * New upstream version! + + -- Vincent Renardias 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 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 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 + . [#26798] + + -- James Troup 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 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 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 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 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 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) 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 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 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 : + * 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 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 Thu, 5 Mar 1998 20:19:14 +0100 + +gdb (4.16-12) unstable; urgency=low + + * Applied alpha patches (#11841). + + -- Vincent Renardias Mon, 4 Aug 1997 22:28:54 +0200 + +gdb (4.16-11) unstable; urgency=low + + * Included patch to fix bugs (#11552,#11324). + + -- Vincent Renardias 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 Thu, 10 Jul 1997 19:38:07 +0200 + +gdb (4.16-9) unstable; urgency=low + + * Fixed #11037 (compilation on m68k). + + -- Vincent Renardias 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 Sat, 21 Jun 1997 15:15:13 +0200 + +gdb (4.16-7) unstable; urgency=low + + * Fixed typo. in documentation (Fixes bug #5477). + + -- Vincent Renardias 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 Sun, 16 Mar 1997 18:32:23 +0100 + +gdb (4.16-5) unstable; urgency=low + + * Included patch for glibc-2.0 support. + + -- Vincent Renardias 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 Sun, 16 Mar 1997 03:12:13 +0100 + +gdb (4.16-3) unstable; urgency=low + + * New maintainer. + * Included patches for m68k support. + + -- Vincent Renardias 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 Sun, 20 Oct 1996 18:48:40 +1000 --- gdb-6.8.50.20090116.python.orig/debian/copyright +++ gdb-6.8.50.20090116.python/debian/copyright @@ -0,0 +1,27 @@ +This is the Debian GNU/Linux packaged version of the GNU debugger, GDB. + +Earlier versions of this package were assembled by David Engel +, Stuart Lamble , and others. + +GDB is Copyright (C) 2008 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 . + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses'. + +The file `gdb/doc/observer.texi' is normally distributed under the +GNU Free Documentation License, but certain lines from it are also +permitted to be distributed under the GPL. Only those lines are included in +this package. --- gdb-6.8.50.20090116.python.orig/debian/rules +++ gdb-6.8.50.20090116.python/debian/rules @@ -0,0 +1,224 @@ +#!/usr/bin/make -f + +DEB_BUILDDIR := $(shell pwd)/objdir +DEB_DH_INSTALL_SOURCEDIR := $(shell pwd)/debian/tmp + +# 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/autotools.mk + +# Quilt-based patches in debian/patches. +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +# Override CDBS's default CFLAGS, which also includes -Wall; gdb +# does not handle -Wunused well with -Werror, but defaults to +# -Werror. +CFLAGS = -g $(DEB_OPT_FLAG) + +# 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_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) + +# 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_ARCH := $(shell dpkg-architecture -f \ + -a$(GDB_TARGET) -qDEB_HOST_ARCH 2>/dev/null) +DEB_TARGET_GNU_TYPE := $(shell dpkg-architecture -f \ + -a$(DEB_TARGET_ARCH) -qDEB_HOST_GNU_TYPE 2>/dev/null) +DEB_TARGET_ALIAS ?= $(DEB_TARGET_GNU_TYPE) + +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 +else +ifneq (,$(filter $(DEB_HOST_ARCH),i386 powerpc sparc s390)) + build64 = yes + CC64 = gcc -m64 + CFLAGS64 = $(CFLAGS) + BUILDDIR64 = objdir64 + ifeq ($(DEB_HOST_ARCH),i386) + HOST64 = x86_64-linux-gnu + endif + ifeq ($(DEB_HOST_ARCH),powerpc) + HOST64 = powerpc64-linux-gnu + endif + ifeq ($(DEB_HOST_ARCH),sparc) + HOST64 = sparc64-linux-gnu + endif + ifeq ($(DEB_HOST_ARCH),s390) + HOST64 = s390x-linux-gnu + endif +endif +endif + +run_tests := yes + +ifneq ($(DEB_HOST_GNU_SYSTEM),linux-gnu) + run_tests := no +endif + +ifeq ($(DEB_HOST_GNU_CPU),ia64) + arch_config_args := --with-libunwind +endif + +ifdef GDB_TARGET + run_tests := no + + arch_config_args += --program-prefix=$(TP) \ + --target=$(DEB_TARGET_ALIAS) --with-sysroot=/usr/$(DEB_TARGET_ALIAS) +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 --enable-tui \ + --srcdir=$(shell pwd) --with-system-readline \ + $(arch_config_args) --build=$(DEB_HOST_GNU_TYPE) + +# Debian does not include 64-bit expat packages yet, so --with-expat +# is here rather than in EXTRA_FLAGS. Similarly Python. +DEB_CONFIGURE_EXTRA_FLAGS := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \ + --with-expat --with-python + +DEB_MAKE_BUILD_TARGET = all info + +post-patches:: + if ! test -f gdb/version.in.backup; then \ + mv -f gdb/version.in gdb/version.in.backup; \ + sed -e 's/$$/-debian/' < gdb/version.in.backup > gdb/version.in; \ + fi + +# 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 objdir/gdb/doc refcard.dvi refcard.ps + +build/gdb64:: build64-stamp + +build64-stamp: + mkdir -p $(BUILDDIR64) + cd $(BUILDDIR64) && CC="$(CC64)" CFLAGS="$(CFLAGS64)" AR=ar \ + ../configure $(EXTRA_FLAGS) --host=$(HOST64) + cd $(BUILDDIR64) && $(MAKE) + touch $@ + +check-stamp: +ifeq ($(run_tests),yes) + -ulimit -c unlimited; \ + $(MAKE) -C objdir/gdb check \ + 2>&1 | tee objdir/check.log +endif + touch $@ + +clean:: + rm -f check-stamp build64-stamp + rm -rf objdir $(BUILDDIR64) + + 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; \ + 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 objdir/check.log \ + debian/gdb$(TS)/usr/share/doc/gdb/check.log +endif + +ifneq ($(DEB_CROSS),yes) + # Gcore is only useful for native GDB. + $(INSTALL) -m 755 -o root -g root \ + gdb/gdb_gcore.sh debian/gdb$(TS)/usr/bin/$(TP)gcore +endif + +ifeq ($(build64),yes) + install -d debian/gdb64/usr/bin + install -s -m 755 $(BUILDDIR64)/gdb/gdb debian/gdb64/usr/bin/gdb64 + dh_link -pgdb64 usr/share/man/man1/gdb.1 usr/share/man/man1/gdb64.1 +endif + + rm -rf debian/tmp/usr/include \ + debian/tmp/usr/lib/lib*.* \ + debian/tmp/usr/share/locale + + # Remove the entire info directory; it only contains dummy files, + # not the real manuals. + rm -rf debian/tmp/usr/share/info + +ifneq ($(DEB_CROSS),yes) + # libgdb-dev is only required for native GDB. + install -d debian/tmp/usr/lib + install -m 644 $(DEB_BUILDDIR)/gdb/libgdb.a debian/tmp/usr/lib/ + if test -e $(DEB_BUILDDIR)/sim/*/libsim.a; then \ + install -m 644 $(DEB_BUILDDIR)/sim/*/libsim.a debian/tmp/usr/lib/; \ + fi +endif + +debian/control:: debian/control.in $(CROSS_FORCE) + cat debian/control.in \ + | sed "s/@kfreebsd@/`type-handling any kfreebsd`/g" \ + | sed "s/@gnu@/`type-handling any gnu`/g" \ + | sed "s/@TS@/$(TS)/g" \ + > debian/control +ifeq ($(DEB_CROSS),yes) + sed -i "/Package: gdb64/,\$$ d" debian/control + cp debian/gdb.install debian/gdb$(TS).install +endif + +DEB_INSTALL_DOCS_gdb$(TS) = gdb/NEWS gdb/README gdb/doc/refcard.tex \ + objdir/gdb/doc/refcard.dvi objdir/gdb/doc/refcard.ps +DEB_INSTALL_CHANGELOGS_gdb$(TS) = gdb/ChangeLog +DEB_INSTALL_MANPAGES_gdb$(TS) = gdb/gdb.1 +ifneq ($(DEB_CROSS),yes) +DEB_INSTALL_MANPAGES_gdb$(TS) += debian/gcore.1 +endif + +DEB_INSTALL_DOCS_libgdb-dev = gdb/NEWS gdb/README +DEB_INSTALL_CHANGELOGS_libgdb-dev = gdb/ChangeLog + +.PHONY: FORCE +FORCE: --- gdb-6.8.50.20090116.python.orig/debian/gcore.1 +++ gdb-6.8.50.20090116.python/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) --- gdb-6.8.50.20090116.python.orig/debian/patches/series +++ gdb-6.8.50.20090116.python/debian/patches/series @@ -0,0 +1,8 @@ +member-field-symtab.patch +thread-db-multiple-libraries.patch +dwarf2-cfi-warning.patch +gdbinit-ownership.patch +gdb-pascal-support.patch +gdb-fortran-main.patch +linux-clear-thread-list.patch +man-page-args.patch --- gdb-6.8.50.20090116.python.orig/debian/patches/linux-clear-thread-list.patch +++ gdb-6.8.50.20090116.python/debian/patches/linux-clear-thread-list.patch @@ -0,0 +1,23 @@ +Status: unsubmitted + +This patch was for Debian bug #303736. I now believe it's in the wrong +place; the generic mourn inferior should do this, perhaps. + +--- + gdb/linux-thread-db.c | 3 +++ + 1 file changed, 3 insertions(+) + +Index: gdb-6.7.1/gdb/linux-thread-db.c +=================================================================== +--- gdb-6.7.1.orig/gdb/linux-thread-db.c 2007-12-03 09:38:14.000000000 -0500 ++++ gdb-6.7.1/gdb/linux-thread-db.c 2007-12-03 09:38:18.000000000 -0500 +@@ -965,6 +965,9 @@ thread_db_mourn_inferior (void) + + target_beneath->to_mourn_inferior (); + ++ /* Destroy thread info; it's no longer valid. */ ++ init_thread_list (); ++ + /* Delete the old thread event breakpoints. Do this after mourning + the inferior, so that we don't try to uninsert them. */ + remove_thread_event_breakpoints (); --- gdb-6.8.50.20090116.python.orig/debian/patches/member-field-symtab.patch +++ gdb-6.8.50.20090116.python/debian/patches/member-field-symtab.patch @@ -0,0 +1,40 @@ +Status: unsubmitted + +This patch was for Debian bug #239535. It needs to be tested, and +submitted. + +--- + gdb/dwarf2read.c | 2 +- + gdb/valops.c | 4 +++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +Index: gdb-6.8.50.20081120.python/gdb/valops.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/valops.c 2008-11-25 16:16:41.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/valops.c 2008-11-26 17:14:38.000000000 -0500 +@@ -2472,8 +2472,10 @@ check_field (struct type *type, const ch + return 1; + } + ++ /* Check each baseclass. Call check_typedef, which will follow typedefs ++ and do opaque/stub type resolution. */ + for (i = TYPE_N_BASECLASSES (type) - 1; i >= 0; i--) +- if (check_field (TYPE_BASECLASS (type, i), name)) ++ if (check_field (check_typedef (TYPE_BASECLASS (type, i)), name)) + return 1; + + return 0; +Index: gdb-6.8.50.20081120.python/gdb/dwarf2read.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/dwarf2read.c 2008-11-25 16:16:41.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/dwarf2read.c 2008-11-26 17:14:06.000000000 -0500 +@@ -2273,8 +2273,8 @@ guess_structure_name (struct partial_die + strlen (actual_class_name), + &cu->comp_unit_obstack); + xfree (actual_class_name); ++ break; + } +- break; + } + + child_pdi = child_pdi->die_sibling; --- gdb-6.8.50.20090116.python.orig/debian/patches/dwarf2-cfi-warning.patch +++ gdb-6.8.50.20090116.python/debian/patches/dwarf2-cfi-warning.patch @@ -0,0 +1,36 @@ +Status: Unsuitable for upstream (at least, without a lot of arguing). + +GCC does not specify the state of every last register in the CIE. Since +GCC's focus is on correctness of runtime unwinding, any registers which +have to be unwound will be specified; but unmodified registers will not +be explicitly marked. (How about modified, call-clobbered registers? +I'm not sure if they are marked as unavailable.) + +GDB issues a noisy warning about this. The warning is generally not useful, +and we can get it extremely frequently (any time we load a new CIE). + +This patch disables the warning. Alternately we could set the complaints +threshold to zero, or implement a default frame init-register method for +every architecture. But someday the compiler will support using different +calling conventions for internal functions, so that's not much of a stopgap. +ARM has a complex algorithm for handling this, involving scanning all CIEs - +benefit not completely clear outside of the ARM context of flexible register +sets. + +--- + gdb/dwarf2-frame.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: gdb-6.7.1/gdb/dwarf2-frame.c +=================================================================== +--- gdb-6.7.1.orig/gdb/dwarf2-frame.c 2007-12-03 09:37:03.000000000 -0500 ++++ gdb-6.7.1/gdb/dwarf2-frame.c 2007-12-03 09:37:39.000000000 -0500 +@@ -928,7 +928,7 @@ dwarf2_frame_cache (struct frame_info *n + DWARF2 register numbers. */ + if (fs->regs.reg[column].how == DWARF2_FRAME_REG_UNSPECIFIED) + { +- if (cache->reg[regnum].how == DWARF2_FRAME_REG_UNSPECIFIED) ++ if (0 && cache->reg[regnum].how == DWARF2_FRAME_REG_UNSPECIFIED) + complaint (&symfile_complaints, _("\ + incomplete CFI data; unspecified registers (e.g., %s) at 0x%s"), + gdbarch_register_name (gdbarch, regnum), --- gdb-6.8.50.20090116.python.orig/debian/patches/gdb-fortran-main.patch +++ gdb-6.8.50.20090116.python/debian/patches/gdb-fortran-main.patch @@ -0,0 +1,86 @@ +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 | 8 +++++-- + gdb/testsuite/gdb.fortran/lang.exp | 40 +++++++++++++++++++++++++++++++++++++ + 2 files changed, 46 insertions(+), 2 deletions(-) + +Index: gdb-6.8.50.20081120.python/gdb/symtab.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/symtab.c 2008-11-28 12:09:40.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/symtab.c 2008-11-28 12:11:22.000000000 -0500 +@@ -4418,8 +4418,12 @@ find_main_name (void) + } + + /* The languages above didn't identify the name of the main procedure. +- Fallback to "main". */ +- set_main_name ("main"); ++ Fallback to "MAIN__" (g77 and gfortran) if we can find it in the ++ minimal symtab, to "main" otherwise. */ ++ if (lookup_minimal_symbol ("MAIN__", NULL, NULL)) ++ set_main_name ("MAIN__"); ++ else ++ set_main_name ("main"); + } + + char * +Index: gdb-6.8.50.20081120.python/gdb/testsuite/gdb.fortran/lang.exp +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ gdb-6.8.50.20081120.python/gdb/testsuite/gdb.fortran/lang.exp 2008-11-28 12:11:22.000000000 -0500 +@@ -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)" --- gdb-6.8.50.20090116.python.orig/debian/patches/gdb-pascal-support.patch +++ gdb-6.8.50.20090116.python/debian/patches/gdb-pascal-support.patch @@ -0,0 +1,25 @@ +Originally from: + http://www.math.uni.wroc.pl/~hebisch/gpc/ + +I believe this patch was posted to gdb-patches and never reviewed. +But M2 support added set types just before GDB 6.5, and now there's +not much left of this. + +--- + gdb/dwarf2read.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Index: gdb-6.8.50.20081120.python/gdb/dwarf2read.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/dwarf2read.c 2008-11-26 17:14:06.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/dwarf2read.c 2008-11-27 17:01:20.000000000 -0500 +@@ -8037,7 +8037,8 @@ determine_prefix (struct die_info *die, + struct type *parent_type; + + if (cu->language != language_cplus +- && cu->language != language_java) ++ && cu->language != language_java ++ && cu->language != language_pascal) + return ""; + + /* We have to be careful in the presence of DW_AT_specification. --- gdb-6.8.50.20090116.python.orig/debian/patches/gdbinit-ownership.patch +++ gdb-6.8.50.20090116.python/debian/patches/gdbinit-ownership.patch @@ -0,0 +1,112 @@ +This patch was not popular upstream; there was no fundamental objection, but +several problems with the implementation. It needs to be revisited. + +--- + gdb/cli/cli-cmds.c | 43 +++++++++++++++++++++++++++++++++++++++---- + gdb/main.c | 4 ++-- + 2 files changed, 41 insertions(+), 6 deletions(-) + +Index: gdb-6.8.50.20081120.python/gdb/cli/cli-cmds.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/cli/cli-cmds.c 2008-11-25 16:16:41.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/cli/cli-cmds.c 2008-11-27 16:58:08.000000000 -0500 +@@ -36,6 +36,7 @@ + #include "objfiles.h" + #include "source.h" + #include "disasm.h" ++#include "gdb_stat.h" + + #include "ui-out.h" + +@@ -433,6 +434,10 @@ cd_command (char *dir, int from_tty) + pwd_command ((char *) 0, 1); + } + ++/* Load a GDB command file whose name is given in ARGS. FROM_TTY may ++ be -1, in which case we are loading a gdbinit file; in that case, ++ be paranoid about unsafe files. */ ++ + void + source_script (char *file, int from_tty) + { +@@ -443,9 +448,7 @@ source_script (char *file, int from_tty) + int is_python; + + if (file == NULL || *file == 0) +- { +- error (_("source command requires file name of file to source.")); +- } ++ error (_("source command requires file name of file to source.")); + + file = tilde_expand (file); + old_cleanups = make_cleanup (xfree, file); +@@ -464,7 +467,7 @@ source_script (char *file, int from_tty) + + if (fd == -1) + { +- if (from_tty) ++ if (from_tty > 0) + perror_with_name (file); + else + { +@@ -479,6 +482,38 @@ source_script (char *file, int from_tty) + + stream = fdopen (fd, FOPEN_RT); + ++ if (stream == NULL) ++ { ++ if (from_tty) ++ perror_with_name (file); ++ else ++ { ++ do_cleanups (old_cleanups); ++ return; ++ } ++ } ++ ++#ifdef HAVE_GETUID ++ if (from_tty == -1) ++ { ++ struct stat statbuf; ++ if (fstat (fd, &statbuf) < 0) ++ { ++ perror_with_name (file); ++ fclose (stream); ++ do_cleanups (old_cleanups); ++ return; ++ } ++ if (statbuf.st_uid != getuid () || (statbuf.st_mode & S_IWOTH)) ++ { ++ warning ("not using untrusted file \"%s\"", file); ++ fclose (stream); ++ do_cleanups (old_cleanups); ++ return; ++ } ++ } ++#endif ++ + if (is_python) + source_python_script (stream, file); + else +Index: gdb-6.8.50.20081120.python/gdb/main.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/main.c 2008-11-25 16:16:41.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/main.c 2008-11-27 16:54:37.000000000 -0500 +@@ -762,7 +762,7 @@ Excess command line arguments ignored. ( + + if (!inhibit_gdbinit) + { +- catch_command_errors (source_script, homeinit, 0, RETURN_MASK_ALL); ++ catch_command_errors (source_script, homeinit, -1, RETURN_MASK_ALL); + } + + /* Do stats; no need to do them elsewhere since we'll only +@@ -850,7 +850,7 @@ Can't attach to process and specify a co + || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) + if (!inhibit_gdbinit) + { +- catch_command_errors (source_script, gdbinit, 0, RETURN_MASK_ALL); ++ catch_command_errors (source_script, gdbinit, -1, RETURN_MASK_ALL); + } + + for (i = 0; i < ncmd; i++) --- gdb-6.8.50.20090116.python.orig/debian/patches/thread-db-multiple-libraries.patch +++ gdb-6.8.50.20090116.python/debian/patches/thread-db-multiple-libraries.patch @@ -0,0 +1,510 @@ +Support loading two libthread_db DSOs. In this case, the LinuxThreads +and NPTL ones. + +--- + gdb/linux-thread-db.c | 295 ++++++++++++++++++++++++++++++-------------------- + 1 file changed, 177 insertions(+), 118 deletions(-) + +Index: gdb-6.8.50.20081120.python/gdb/linux-thread-db.c +=================================================================== +--- gdb-6.8.50.20081120.python.orig/gdb/linux-thread-db.c 2008-11-25 16:16:41.000000000 -0500 ++++ gdb-6.8.50.20081120.python/gdb/linux-thread-db.c 2008-11-26 17:23:45.000000000 -0500 +@@ -101,45 +101,61 @@ static td_thragent_t *thread_agent; + + /* Pointers to the libthread_db functions. */ + +-static td_err_e (*td_init_p) (void); ++struct thread_db_pointers ++{ ++ const char *filename; ++ ++ td_err_e (*td_init_p) (void); + +-static td_err_e (*td_ta_new_p) (struct ps_prochandle * ps, +- td_thragent_t **ta); +-static td_err_e (*td_ta_map_id2thr_p) (const td_thragent_t *ta, thread_t pt, +- td_thrhandle_t *__th); +-static td_err_e (*td_ta_map_lwp2thr_p) (const td_thragent_t *ta, +- lwpid_t lwpid, td_thrhandle_t *th); +-static td_err_e (*td_ta_thr_iter_p) (const td_thragent_t *ta, +- td_thr_iter_f *callback, void *cbdata_p, +- td_thr_state_e state, int ti_pri, +- sigset_t *ti_sigmask_p, +- unsigned int ti_user_flags); +-static td_err_e (*td_ta_event_addr_p) (const td_thragent_t *ta, +- td_event_e event, td_notify_t *ptr); +-static td_err_e (*td_ta_set_event_p) (const td_thragent_t *ta, +- td_thr_events_t *event); +-static td_err_e (*td_ta_event_getmsg_p) (const td_thragent_t *ta, +- td_event_msg_t *msg); +- +-static td_err_e (*td_thr_validate_p) (const td_thrhandle_t *th); +-static td_err_e (*td_thr_get_info_p) (const td_thrhandle_t *th, +- td_thrinfo_t *infop); +-static td_err_e (*td_thr_event_enable_p) (const td_thrhandle_t *th, +- int event); +- +-static td_err_e (*td_thr_tls_get_addr_p) (const td_thrhandle_t *th, +- void *map_address, +- size_t offset, void **address); ++ td_err_e (*td_ta_new_p) (struct ps_prochandle * ps, ++ td_thragent_t **ta); ++ td_err_e (*td_ta_map_lwp2thr_p) (const td_thragent_t *ta, ++ lwpid_t lwpid, td_thrhandle_t *th); ++ ++ td_err_e (*td_ta_thr_iter_p) (const td_thragent_t *ta, ++ td_thr_iter_f *callback, void *cbdata_p, ++ td_thr_state_e state, int ti_pri, ++ sigset_t *ti_sigmask_p, ++ unsigned int ti_user_flags); ++ td_err_e (*td_ta_event_addr_p) (const td_thragent_t *ta, ++ td_event_e event, td_notify_t *ptr); ++ td_err_e (*td_ta_set_event_p) (const td_thragent_t *ta, ++ td_thr_events_t *event); ++ td_err_e (*td_ta_event_getmsg_p) (const td_thragent_t *ta, ++ td_event_msg_t *msg); ++ ++ td_err_e (*td_thr_validate_p) (const td_thrhandle_t *th); ++ td_err_e (*td_thr_get_info_p) (const td_thrhandle_t *th, ++ td_thrinfo_t *infop); ++ td_err_e (*td_thr_getfpregs_p) (const td_thrhandle_t *th, ++ gdb_prfpregset_t *regset); ++ td_err_e (*td_thr_getgregs_p) (const td_thrhandle_t *th, ++ prgregset_t gregs); ++ td_err_e (*td_thr_setfpregs_p) (const td_thrhandle_t *th, ++ const gdb_prfpregset_t *fpregs); ++ td_err_e (*td_thr_setgregs_p) (const td_thrhandle_t *th, ++ prgregset_t gregs); ++ td_err_e (*td_thr_event_enable_p) (const td_thrhandle_t *th, ++ int event); ++ ++ td_err_e (*td_thr_tls_get_addr_p) (const td_thrhandle_t *th, ++ void *map_address, ++ size_t offset, void **address); ++ ++ struct thread_db_pointers *next; ++}; + + /* Location of the thread creation event breakpoint. The code at this + location in the child process will be called by the pthread library + whenever a new thread is created. By setting a special breakpoint + at this location, GDB can detect when a new thread is created. We + obtain this location via the td_ta_event_addr call. */ +-static CORE_ADDR td_create_bp_addr; ++CORE_ADDR td_create_bp_addr; + + /* Location of the thread death event breakpoint. */ +-static CORE_ADDR td_death_bp_addr; ++CORE_ADDR td_death_bp_addr; ++ ++static struct thread_db_pointers *current_pointers, *all_pointers; + + /* Prototypes for local functions. */ + static void thread_db_find_new_threads (void); +@@ -262,7 +278,7 @@ thread_get_info_callback (const td_thrha + struct thread_info *thread_info; + ptid_t thread_ptid; + +- err = td_thr_get_info_p (thp, &ti); ++ err = current_pointers->td_thr_get_info_p (thp, &ti); + if (err != TD_OK) + error (_("thread_get_info_callback: cannot get thread info: %s"), + thread_db_err_str (err)); +@@ -313,7 +329,8 @@ thread_from_lwp (ptid_t ptid) + + /* Access an lwp we know is stopped. */ + proc_handle.pid = GET_LWP (ptid); +- err = td_ta_map_lwp2thr_p (thread_agent, GET_LWP (ptid), &th); ++ err = current_pointers->td_ta_map_lwp2thr_p (thread_agent, GET_LWP (ptid), ++ &th); + if (err != TD_OK) + error (_("Cannot find user-level thread for LWP %ld: %s"), + GET_LWP (ptid), thread_db_err_str (err)); +@@ -363,12 +380,13 @@ thread_db_attach_lwp (ptid_t ptid) + if (!have_threads ()) + thread_db_find_new_threads (); + +- err = td_ta_map_lwp2thr_p (thread_agent, GET_LWP (ptid), &th); ++ err = current_pointers->td_ta_map_lwp2thr_p (thread_agent, GET_LWP (ptid), ++ &th); + if (err != TD_OK) + /* Cannot find user-level thread. */ + return 0; + +- err = td_thr_get_info_p (&th, &ti); ++ err = current_pointers->td_thr_get_info_p (&th, &ti); + if (err != TD_OK) + { + warning (_("Cannot get thread info: %s"), thread_db_err_str (err)); +@@ -394,69 +412,82 @@ verbose_dlsym (void *handle, const char + return sym; + } + +-static int +-thread_db_load (void) ++static struct thread_db_pointers * ++thread_db_load (const char *name) + { ++ struct thread_db_pointers *ptrs; ++ Dl_info info; + void *handle; + td_err_e err; + +- handle = dlopen (LIBTHREAD_DB_SO, RTLD_NOW); ++ ptrs = xcalloc (1, sizeof (struct thread_db_pointers)); ++ ++ handle = dlopen (name, RTLD_NOW); + if (handle == NULL) + { +- fprintf_filtered (gdb_stderr, "\n\ndlopen failed on '%s' - %s\n", +- LIBTHREAD_DB_SO, dlerror ()); +- fprintf_filtered (gdb_stderr, +- "GDB will not be able to debug pthreads.\n\n"); ++ if (all_pointers == NULL) ++ { ++ fprintf_filtered (gdb_stderr, "\n\ndlopen failed on '%s' - %s\n", ++ name, dlerror ()); ++ fprintf_filtered (gdb_stderr, ++ "GDB will not be able to debug pthreads.\n\n"); ++ } + return 0; + } + + /* Initialize pointers to the dynamic library functions we will use. + Essential functions first. */ + +- td_init_p = verbose_dlsym (handle, "td_init"); +- if (td_init_p == NULL) ++ ptrs->td_init_p = verbose_dlsym (handle, "td_init"); ++ if (ptrs->td_init_p == NULL) + return 0; + +- td_ta_new_p = verbose_dlsym (handle, "td_ta_new"); +- if (td_ta_new_p == NULL) ++ ptrs->td_ta_new_p = verbose_dlsym (handle, "td_ta_new"); ++ if (ptrs->td_ta_new_p == NULL) + return 0; + +- td_ta_map_id2thr_p = verbose_dlsym (handle, "td_ta_map_id2thr"); +- if (td_ta_map_id2thr_p == NULL) ++ ptrs->td_ta_map_lwp2thr_p = verbose_dlsym (handle, "td_ta_map_lwp2thr"); ++ if (ptrs->td_ta_map_lwp2thr_p == NULL) + return 0; + +- td_ta_map_lwp2thr_p = verbose_dlsym (handle, "td_ta_map_lwp2thr"); +- if (td_ta_map_lwp2thr_p == NULL) ++ ptrs->td_ta_thr_iter_p = verbose_dlsym (handle, "td_ta_thr_iter"); ++ if (ptrs->td_ta_thr_iter_p == NULL) + return 0; + +- td_ta_thr_iter_p = verbose_dlsym (handle, "td_ta_thr_iter"); +- if (td_ta_thr_iter_p == NULL) ++ ptrs->td_thr_validate_p = verbose_dlsym (handle, "td_thr_validate"); ++ if (ptrs->td_thr_validate_p == NULL) + return 0; + +- td_thr_validate_p = verbose_dlsym (handle, "td_thr_validate"); +- if (td_thr_validate_p == NULL) +- return 0; +- +- td_thr_get_info_p = verbose_dlsym (handle, "td_thr_get_info"); +- if (td_thr_get_info_p == NULL) ++ ptrs->td_thr_get_info_p = verbose_dlsym (handle, "td_thr_get_info"); ++ if (ptrs->td_thr_get_info_p == NULL) + return 0; + + /* Initialize the library. */ +- err = td_init_p (); ++ err = ptrs->td_init_p (); + if (err != TD_OK) + { + warning (_("Cannot initialize libthread_db: %s"), thread_db_err_str (err)); ++ xfree (ptrs); + return 0; + } + + /* These are not essential. */ +- td_ta_event_addr_p = dlsym (handle, "td_ta_event_addr"); +- td_ta_set_event_p = dlsym (handle, "td_ta_set_event"); +- td_ta_event_getmsg_p = dlsym (handle, "td_ta_event_getmsg"); +- td_thr_event_enable_p = dlsym (handle, "td_thr_event_enable"); +- td_thr_tls_get_addr_p = dlsym (handle, "td_thr_tls_get_addr"); ++ ptrs->td_ta_event_addr_p = dlsym (handle, "td_ta_event_addr"); ++ ptrs->td_ta_set_event_p = dlsym (handle, "td_ta_set_event"); ++ ptrs->td_ta_event_getmsg_p = dlsym (handle, "td_ta_event_getmsg"); ++ ptrs->td_thr_event_enable_p = dlsym (handle, "td_thr_event_enable"); ++ ptrs->td_thr_tls_get_addr_p = dlsym (handle, "td_thr_tls_get_addr"); ++ ++ if (dladdr (ptrs->td_ta_new_p, &info) != 0) ++ ptrs->filename = info.dli_fname; ++ ++ /* Try dlinfo? */ ++ ++ if (ptrs->filename == NULL) ++ /* Paranoid - don't let a NULL path slip through. */ ++ ptrs->filename = name; + +- return 1; ++ return ptrs; + } + + static td_err_e +@@ -469,7 +500,7 @@ enable_thread_event (td_thragent_t *thre + proc_handle.pid = GET_LWP (inferior_ptid); + + /* Get the breakpoint address for thread EVENT. */ +- err = td_ta_event_addr_p (thread_agent, event, ¬ify); ++ err = current_pointers->td_ta_event_addr_p (thread_agent, event, ¬ify); + if (err != TD_OK) + return err; + +@@ -500,8 +531,10 @@ enable_thread_event_reporting (void) + + /* We cannot use the thread event reporting facility if these + functions aren't available. */ +- if (td_ta_event_addr_p == NULL || td_ta_set_event_p == NULL +- || td_ta_event_getmsg_p == NULL || td_thr_event_enable_p == NULL) ++ if (current_pointers->td_ta_event_addr_p == NULL ++ || current_pointers->td_ta_set_event_p == NULL ++ || current_pointers->td_ta_event_getmsg_p == NULL ++ || current_pointers->td_thr_event_enable_p == NULL) + return; + + /* Set the process wide mask saying which events we're interested in. */ +@@ -518,7 +551,7 @@ enable_thread_event_reporting (void) + #endif + td_event_addset (&events, TD_DEATH); + +- err = td_ta_set_event_p (thread_agent, &events); ++ err = current_pointers->td_ta_set_event_p (thread_agent, &events); + if (err != TD_OK) + { + warning (_("Unable to set global thread event mask: %s"), +@@ -558,7 +591,7 @@ disable_thread_event_reporting (void) + /* Set the process wide mask saying we aren't interested in any + events anymore. */ + td_event_emptyset (&events); +- td_ta_set_event_p (thread_agent, &events); ++ current_pointers->td_ta_set_event_p (thread_agent, &events); + + /* Delete thread event breakpoints, if any. */ + remove_thread_event_breakpoints (); +@@ -601,11 +634,10 @@ check_thread_signals (void) + void + check_for_thread_db (void) + { +- td_err_e err; + static int already_loaded; + + /* Do nothing if we couldn't load libthread_db.so.1. */ +- if (td_ta_new_p == NULL) ++ if (all_pointers == NULL) + return; + + /* First time through, report that libthread_db was successfuly +@@ -614,20 +646,9 @@ check_for_thread_db (void) + + if (!already_loaded) + { +- Dl_info info; +- const char *library = NULL; +- if (dladdr ((*td_ta_new_p), &info) != 0) +- library = info.dli_fname; +- +- /* Try dlinfo? */ +- +- if (library == NULL) +- /* Paranoid - don't let a NULL path slip through. */ +- library = LIBTHREAD_DB_SO; +- + if (info_verbose) + printf_unfiltered (_("Using host libthread_db library \"%s\".\n"), +- library); ++ all_pointers->filename); + already_loaded = 1; + } + +@@ -649,28 +670,34 @@ check_for_thread_db (void) + proc_handle.pid = GET_PID (inferior_ptid); + + /* Now attempt to open a connection to the thread library. */ +- err = td_ta_new_p (&proc_handle, &thread_agent); +- switch (err) ++ for (current_pointers = all_pointers; ++ current_pointers != NULL; ++ current_pointers = current_pointers->next) + { +- case TD_NOLIBTHREAD: +- /* No thread library was detected. */ +- break; +- +- case TD_OK: +- printf_unfiltered (_("[Thread debugging using libthread_db enabled]\n")); ++ td_err_e err; ++ err = current_pointers->td_ta_new_p (&proc_handle, &thread_agent); ++ switch (err) ++ { ++ case TD_NOLIBTHREAD: ++ /* No thread library was detected. */ ++ break; + +- /* The thread library was detected. Activate the thread_db target. */ +- push_target (&thread_db_ops); +- using_thread_db = 1; ++ case TD_OK: ++ printf_unfiltered (_("[Thread debugging using libthread_db enabled]\n")); + +- enable_thread_event_reporting (); +- thread_db_find_new_threads (); +- break; ++ /* The thread library was detected. Activate the thread_db target. */ ++ push_target (&thread_db_ops); ++ using_thread_db = 1; ++ ++ enable_thread_event_reporting (); ++ thread_db_find_new_threads (); ++ return; + +- default: +- warning (_("Cannot initialize thread debugging library: %s"), +- thread_db_err_str (err)); +- break; ++ default: ++ warning (_("Cannot initialize thread debugging library: %s"), ++ thread_db_err_str (err)); ++ break; ++ } + } + } + +@@ -755,7 +782,7 @@ attach_thread (ptid_t ptid, const td_thr + tp->private = private; + + /* Enable thread event reporting for this thread. */ +- err = td_thr_event_enable_p (th_p, 1); ++ err = current_pointers->td_thr_event_enable_p (th_p, 1); + if (err != TD_OK) + error (_("Cannot enable thread event reporting for %s: %s"), + target_pid_to_str (ptid), thread_db_err_str (err)); +@@ -838,7 +865,7 @@ check_event (ptid_t ptid) + + do + { +- err = td_ta_event_getmsg_p (thread_agent, &msg); ++ err = current_pointers->td_ta_event_getmsg_p (thread_agent, &msg); + if (err != TD_OK) + { + if (err == TD_NOMSG) +@@ -848,7 +875,7 @@ check_event (ptid_t ptid) + thread_db_err_str (err)); + } + +- err = td_thr_get_info_p (msg.th_p, &ti); ++ err = current_pointers->td_thr_get_info_p (msg.th_p, &ti); + if (err != TD_OK) + error (_("Cannot get thread info: %s"), thread_db_err_str (err)); + +@@ -977,7 +1004,7 @@ find_new_threads_callback (const td_thrh + ptid_t ptid; + struct thread_info *tp; + +- err = td_thr_get_info_p (th_p, &ti); ++ err = current_pointers->td_thr_get_info_p (th_p, &ti); + if (err != TD_OK) + error (_("find_new_threads_callback: cannot get thread info: %s"), + thread_db_err_str (err)); +@@ -995,7 +1022,7 @@ find_new_threads_callback (const td_thrh + be yet. Just enable event reporting and otherwise ignore + it. */ + +- err = td_thr_event_enable_p (th_p, 1); ++ err = current_pointers->td_thr_event_enable_p (th_p, 1); + if (err != TD_OK) + error (_("Cannot enable thread event reporting for %s: %s"), + target_pid_to_str (ptid), thread_db_err_str (err)); +@@ -1032,9 +1059,10 @@ thread_db_find_new_threads (void) + /* Access an lwp we know is stopped. */ + proc_handle.pid = GET_LWP (ptid); + /* Iterate over all user-space threads to discover new threads. */ +- err = td_ta_thr_iter_p (thread_agent, find_new_threads_callback, NULL, +- TD_THR_ANY_STATE, TD_THR_LOWEST_PRIORITY, +- TD_SIGNO_MASK, TD_THR_ANY_USER_FLAGS); ++ err = current_pointers->td_ta_thr_iter_p ++ (thread_agent, find_new_threads_callback, NULL, ++ TD_THR_ANY_STATE, TD_THR_LOWEST_PRIORITY, ++ TD_SIGNO_MASK, TD_THR_ANY_USER_FLAGS); + if (err != TD_OK) + error (_("Cannot find new threads: %s"), thread_db_err_str (err)); + } +@@ -1101,7 +1129,7 @@ thread_db_get_thread_local_address (ptid + void *address; + + /* glibc doesn't provide the needed interface. */ +- if (!td_thr_tls_get_addr_p) ++ if (!current_pointers->td_thr_tls_get_addr_p) + throw_error (TLS_NO_LIBRARY_SUPPORT_ERROR, + _("No TLS library support")); + +@@ -1109,9 +1137,8 @@ thread_db_get_thread_local_address (ptid + gdb_assert (lm != 0); + + /* Finally, get the address of the variable. */ +- err = td_thr_tls_get_addr_p (&thread_info->private->th, +- (void *)(size_t) lm, +- offset, &address); ++ err = current_pointers->td_thr_tls_get_addr_p ++ (&thread_info->private->th, (void *)(size_t) lm, offset, &address); + + #ifdef THREAD_DB_HAS_TD_NOTALLOC + /* The memory hasn't been allocated, yet. */ +@@ -1199,13 +1226,45 @@ init_thread_db_ops (void) + void + _initialize_thread_db (void) + { ++ struct thread_db_pointers *ptrs; ++ const char *p; ++ + /* Only initialize the module if we can load libthread_db. */ +- if (thread_db_load ()) ++ ptrs = thread_db_load (LIBTHREAD_DB_SO); ++ if (ptrs == NULL) ++ return; ++ ++ all_pointers = ptrs; ++ ++ /* Some GNU/Linux systems have more than one binary-compatible copy ++ of libthread_db. If we can find a second one, load that too. ++ The inferior may force the use of a different threading package ++ than we expect. Our guess for the location is somewhat hokey: ++ strip out anything between /lib (or /lib64) and LIBTHREAD_DB_SO. ++ If we loaded the NPTL libthread_db by default, this may find us ++ the LinuxThreads copy. */ ++ p = strrchr (ptrs->filename, '/'); ++ while (p != NULL && p > ptrs->filename) + { +- init_thread_db_ops (); +- add_target (&thread_db_ops); ++ const char *component; + +- /* Add ourselves to objfile event chain. */ +- observer_attach_new_objfile (thread_db_new_objfile); ++ component = memrchr (ptrs->filename, '/', p - ptrs->filename); ++ if (component != NULL && strncmp (component, "/lib", 4) == 0) ++ { ++ char *new_name = xmalloc (p - ptrs->filename + 2 ++ + strlen (LIBTHREAD_DB_SO)); ++ memcpy (new_name, ptrs->filename, p - ptrs->filename + 1); ++ strcpy (new_name + (p - ptrs->filename) + 1, LIBTHREAD_DB_SO); ++ ptrs->next = thread_db_load (new_name); ++ xfree (new_name); ++ break; ++ } ++ p = component; + } ++ ++ init_thread_db_ops (); ++ add_target (&thread_db_ops); ++ ++ /* Add ourselves to objfile event chain. */ ++ observer_attach_new_objfile (thread_db_new_objfile); + } --- gdb-6.8.50.20090116.python.orig/debian/patches/man-page-args.patch +++ gdb-6.8.50.20090116.python/debian/patches/man-page-args.patch @@ -0,0 +1,52 @@ +--- + gdb/gdb.1 | 27 ++++++++++++++++++++++++++- + 1 file changed, 26 insertions(+), 1 deletion(-) + +Index: gdb-6.6.dfsg/gdb/gdb.1 +=================================================================== +--- gdb-6.6.dfsg.orig/gdb/gdb.1 2007-01-27 20:35:18.000000000 -0500 ++++ gdb-6.6.dfsg/gdb/gdb.1 2007-01-27 20:35:35.000000000 -0500 +@@ -39,10 +39,25 @@ gdb \- The GNU Debugger + .I dir\c + \&\|] + .RB "[\|" \c +-.I prog\c ++.I prog + .RB "[\|" \c + .IR core \||\| procID\c + \&\|]\&\|] ++.TP ++.B gdb ++.RB "[\|" \c ++.I options\c ++.RB "\|]" ++.RB "--args" ++.I prog ++.RB "[\|" \c ++.I arguments\c ++.RB "\|]" ++.TP ++.B gdbtui ++.RB "[\|" \c ++.I options\c ++.RB "\|]" + .ad b + .SH DESCRIPTION + The purpose of a debugger such as GDB is to allow you to see what is +@@ -352,6 +367,16 @@ interface used by GDB for remote debuggi + Run using \c + .I device\c + \& for your program's standard input and output. ++ ++.TP ++.BI "\-\-args"\c ++Pass \c ++.I arguments\c ++\& after the program name to the program when it is run. ++ ++.TP ++.BI "\-tui"\c ++Run GDB using a text (console) user interface. + .PP + + .SH "SEE ALSO"