tizen 2.3.1 release tizen_2.3.1 submit/tizen_2.3.1/20150915.074324 tizen_2.3.1_release
authorjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 12:51:58 +0000 (21:51 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 12:51:58 +0000 (21:51 +0900)
31 files changed:
ChangeLog.linaro [new file with mode: 0644]
debian/README.Debian [new file with mode: 0644]
debian/README.source [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/changelog.old [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/gcore.1 [new file with mode: 0644]
debian/gdb-minimal.manpages [new file with mode: 0644]
debian/gdb.install [new file with mode: 0644]
debian/gdb.menu [new file with mode: 0644]
debian/gdbinit [new file with mode: 0644]
debian/gdbserver.install [new file with mode: 0644]
debian/gdbtui [new file with mode: 0755]
debian/libgdb-dev.install [new file with mode: 0644]
debian/patches/dwarf2-cfi-warning.patch [new file with mode: 0644]
debian/patches/gdb-fortran-main.patch [new file with mode: 0644]
debian/patches/gdbinit-ownership.patch [new file with mode: 0644]
debian/patches/linux-clear-thread-list.patch [new file with mode: 0644]
debian/patches/man-page-args.patch [new file with mode: 0644]
debian/patches/man-page-order.patch [new file with mode: 0644]
debian/patches/member-field-symtab.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/sanitize-gdb.sh [new file with mode: 0644]
debian/source.lintian-overrides [new file with mode: 0644]
debian/source/format [new file with mode: 0644]
packaging/gdb.manifest [new file with mode: 0644]
packaging/gdb.spec

diff --git a/ChangeLog.linaro b/ChangeLog.linaro
new file mode 100644 (file)
index 0000000..37d8c3b
--- /dev/null
@@ -0,0 +1,518 @@
+2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       GDB Linaro 7.2-2011.03-0 released.
+
+       gdb/
+       * version.in: Update.
+
+2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Backport from mainline:
+
+       2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
+       (terminal_save_ours): Remove misleading comment.
+       (inflow_inferior_data_cleanup): Free ttystate.
+       (inflow_inferior_exit): Likewise.
+       (copy_terminal_info): Copy ttystate.
+
+       * serial.c (serial_copy_tty_state): New function.
+       * serial.h (serial_copy_tty_state): Add prototype.
+       (struct serial_ops): Add copy_tty_state callback.
+       * ser-base.c (ser_base_copy_tty_state): New function.
+       * ser-base.h (ser_base_copy_tty_state): Add prototype.
+       * ser-go32.c (dos_copy_tty_state): New function.
+       (dos_ops): Install copy_tty_state callback.
+       * ser-mingw.c (_initialize_ser_windows): Likewise.
+       * ser-pipe.c (_initialize_ser_pipe): Likewise.
+       * ser-unix.c (hardwire_copy_tty_state): New function.
+       (_initialize_ser_hardwire): Install it.
+
+2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Fix LP #620611
+       Backport from mainline:
+
+       2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
+       (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
+       versions of the trampoline.  Handle Thumb vs. ARM addresses.
+       (arm_kernel_linux_restart_syscall_tramp_frame): New global.
+       (arm_linux_init_abi): Install it.
+
+2011-02-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Backport from mainline:
+
+       2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+                   Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/
+       * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
+       (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
+       (struct arm_linux_hwbp_cap): New type.
+       (arm_linux_get_hwbp_cap): New function.
+       (arm_linux_get_hw_breakpoint_count): Likewise.
+       (arm_linux_get_hw_watchpoint_count): Likewise.
+       (arm_linux_can_use_hw_breakpoint): Likewise.
+       (arm_hwbp_type): New type.
+       (arm_hwbp_control_t): Likewise.
+       (struct arm_linux_hw_breakpoint): Likewise.
+       (struct arm_linux_thread_points): Likewise.
+       (arm_threads): New global variable.
+       (arm_linux_find_breakpoints_by_tid): New function.
+       (arm_hwbp_control_initialize): Likewise.
+       (arm_hwbp_control_is_enabled): Likewise.
+       (arm_hwbp_control_disable): Likewise.
+       (arm_linux_hw_breakpoint_initialize): Likewise.
+       (arm_linux_get_hwbp_type): Likewise.
+       (arm_linux_hw_watchpoint_initialize): Likewise.
+       (arm_linux_hw_breakpoint_equal): Likewise.
+       (arm_linux_insert_hw_breakpoint1): Likewise.
+       (arm_linux_remove_hw_breakpoint1): Likewise.
+       (arm_linux_insert_hw_breakpoint): Likewise.
+       (arm_linux_remove_hw_breakpoint): Likewise.
+       (arm_linux_region_ok_for_hw_watchpoint): Likewise.
+       (arm_linux_insert_watchpoint): Likewise.
+       (arm_linux_remove_watchpoint): Likewise.
+       (arm_linux_stopped_data_address): Likewise.
+       (arm_linux_stopped_by_watchpoint): Likewise.
+       (arm_linux_watchpoint_addr_within_range): Likewise.
+       (arm_linux_new_thread): Likewise.
+       (arm_linux_thread_exit): Likewise.
+       (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
+       related target callbacks.  Register arm_linux_new_thread and
+       arm_linux_thread_exit.
+       * arm-tdep.h (arm_pc_is_thumb): Add prototype.
+       * arm-tdep.c (arm_pc_is_thumb): Make global.
+       (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
+
+       gdb/testsuite/
+       * lib/gdb.exp (skip_hw_breakpoint_tests): Add arm*-*-* target.
+       (skip_hw_watchpoint_tests): Likewise.
+       (skip_hw_watchpoint_multi_tests): Likewise.
+
+       2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/
+       * breakpoint.c (update_watchpoint): Do not attempt to recreate
+       per-frame locations while within a function epilogue.
+
+       2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/testsuite/
+       * lib/gdb.exp (skip_hw_breakpoint_tests): New procedure.
+       (skip_hw_watchpoint_tests): Likewise.
+       (skip_hw_watchpoint_multi_tests): Likewise.
+       (skip_hw_watchpoint_access_tests): Likewise.
+
+       * gdb.base/hbreak.exp: Use appropriate skip_hw_..._tests checks.
+       * gdb.base/pr11022.exp: Likewise.
+       * gdb.base/watch-read.exp: Likewise.
+       * gdb.base/watch_thread_num.exp: Likewise.
+       * gdb.base/watchpoint-hw-hit-once.exp: Likewise.
+       * gdb.base/watchpoint-hw.exp: Likewise.
+       * gdb.threads/local-watch-wrong-thread.exp: Likewise.
+       * gdb.threads/watchthreads-reorder.exp: Likewise.
+       * gdb.threads/watchthreads.exp: Likewise.
+       * gdb.threads/watchthreads2.exp: Likewise.
+
+2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * version.in: Bump version.
+
+2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       GDB Linaro 7.2-2011.02-0 released.
+
+       gdb/
+       * version.in: Update.
+
+2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Fix LP #711375
+       Backport from mainline:
+
+       2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
+       Complain about inverted range entries.
+       (dwarf2_record_block_ranges): Likewise.
+
+2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Fix LP #616000
+       Backport from mainline:
+
+       2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
+       starts with __stack_chk_guard as stack guard symbol.
+
+2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Fix LP #661253
+       Backport from mainline:
+
+       2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
+       arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
+       implementation even if no symbols are available.
+       (thumb_analyze_prologue): Update call to skip_prologue_function.
+       (arm_analyze_prologue): Likewise.
+
+       2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * arm-tdep.c: Include "observer.h".
+       (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
+       (arm_exidx_data_key): New static variable.
+       (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
+       (struct arm_exidx_data): Likewise.
+       (arm_exidx_data_free): New function.
+       (arm_compare_exidx_entries): Likewise.
+       (arm_obj_section_from_vma): Likewise.
+       (arm_exidx_new_objfile): Likewise.
+       (arm_find_exidx_entry): Likewise.
+       (arm_exidx_fill_cache): Likewise.
+       (arm_exidx_unwind_sniffer): Likewise.
+       (arm_exidx_unwind): New global variable.
+       (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
+       (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
+       observer.  Register arm_exidx_data_key as objfile data.
+
+2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Fix LP #685494
+       Backport from mainline:
+
+       2011-01-19  Yao Qi  <yao@codesourcery.com>
+
+       gdb/testsuite/
+       * lib/dwarf.exp (dwarf2_support): Change supported targets to a
+       positve list.
+
+       2011-01-19  Yao Qi  <yao@codesourcery.com>
+
+       gdb/testsuite/
+       * gdb.asm/asm-source.exp: Replace ARM target triplet with a
+       canonical form.
+       Remove "xscale-*-*"
+       * gdb.xml/tdesc-regs.exp: Likewise.
+       * gdb.python/py-section-script.exp: Replace ARM target triplet
+       with canonical form.
+       Match arm*-*-symbianelf*.
+       * gdb.base/dup-sect.exp: Likewise.
+       * lib/dwarf.exp: New.
+       * gdb.dwarf2/callframecfa.exp: Check dwarf2 support by routine
+       dwarf2_support.
+       * gdb.dwarf2/dup-psym.exp: Likewise.
+       * gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
+       * gdb.dwarf2/dw2-bad-parameter-type.exp: Likewise.
+       * gdb.dwarf2/dw2-basic.exp: Likewise.
+       * gdb.dwarf2/dw2-compressed.exp: Likewise.
+       * gdb.dwarf2/dw2-cu-size.exp: Likewise.
+       * gdb.dwarf2/dw2-empty-namespace.exp: Likewise.
+       * gdb.dwarf2/dw2-inheritance.exp: Likewise.
+       * gdb.dwarf2/dw2-intercu.exp: Likewise.
+       * gdb.dwarf2/dw2-intermix.exp: Likewise.
+       * gdb.dwarf2/dw2-modula2-self-type.exp: Likewise.
+       * gdb.dwarf2/dw2-noloc.exp: Likewise.
+       * gdb.dwarf2/dw2-op-call.exp: Likewise.
+       * gdb.dwarf2/dw2-producer.exp: Likewise.
+       * gdb.dwarf2/dw2-ranges.exp: Likewise.
+       * gdb.dwarf2/dw2-ref-missing-frame.exp: Likewise.
+       * gdb.dwarf2/dw2-strp.exp: Likewise.
+       * gdb.dwarf2/dw2-unresolved.exp: Likewise.
+       * gdb.dwarf2/mac-fileno.exp: Likewise.
+       * gdb.dwarf2/member-ptr-forwardref.exp: Likewise.
+       * gdb.dwarf2/pieces.exp: Likewise.
+       * gdb.dwarf2/valop.exp: Likewise.
+       * gdb.dwarf2/watch-notconst.exp: Likewise.
+
+2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       Backport from mainline:
+
+       2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       gdb/
+       * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
+       due to accessing uninitialized variable.  Fix indentation.
+
+2011-01-14  Yao Qi  <yao@codesourcery.com>
+
+       Fix the first fail in LP #615972
+       Backport from mainline:
+
+       2011-01-14  Yao Qi  <yao@codesourcery.com>
+
+       gdb/
+       * arm-tdep.c (arm_register_reggroup_p): FPS register is in
+       save_reggroup, restore_reggroup and all_reggroup.
+
+       2010-12-20  Yao Qi  <yao@codesourcery.com>
+
+       gdb/
+       * arm-tdep.c (arm_register_reggroup_p): New.
+       (arm_gdbarch_init): Set arm_register_reggroup_p for hook
+       register_reggroup_p.
+
+       2010-12-20  Yao Qi  <yao@codesourcery.com>
+
+       gdb/
+       * features/arm-core.xml:  Add attribute type to reg from r0 to r12.
+       * features/arm-with-iwmmxt.c: Regenerate.
+       * features/arm-with-neon.c: Regenerate.
+       * features/arm-with-vfpv2.c: Regenerate.
+       * features/arm-with-vfpv3.c: Regenerate.
+
+2010-12-29  Yao Qi  <yao@codesourcery.com>
+
+       Backport from mainline.  Fix LP:616003.
+
+       gdb/
+       2010-12-23  Yao Qi  <yao@codesourcery.com>
+       * arm-tdep.c (arm_gdbarch_init): Remove invoke to
+       set_gdbarch_deprecated_fp_regnum.
+
+2010-12-27  Yao Qi  <yao@codesourcery.com>
+
+       Handle -fstack-protector prologue code.  Fix LP:616000
+       Backport from mainline:
+
+       2010-12-23  Yao Qi  <yao@codesourcery.com>
+
+       gdb/
+       * arm-tdep.c (thumb_analyze_prologue): Move some code ...
+       (EXTRACT_MOVW_MOVT_IMM_T): ... here.  New macro.
+       (EXTRACT_MOVW_MOVT_IMM_A): New macro.
+       (arm_analyze_load_stack_chk_guard): New.
+       (arm_skip_stack_protector): New.
+       (arm_skip_prologue): Adjust post_prologue_pc by
+       arm_skip_stack_protector.
+
+2010-12-14  Yao Qi  <yao@codesourcery.com>
+
+       Merge from FSF GDB 7.2.  Fix LP:685702.
+
+       gdb/testsuite/
+       2010-12-14  Yao Qi  <yao@codesourcery.com>
+       Backport from mainline:
+
+       2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+       * gdb.base/printcmds.exp (test_float_accepted): Import gdb_prompt.
+       Move here, negate and extend by XFAIL the "p 0x1.1" test from ... 
+       * (test_float_rejected): ... here.
+
+2010-11-08  Michael Hope  <michael.hope@linaro.org>
+
+        gdb/
+        * version.in: Bump version.
+
+2010-11-08  Michael Hope  <michael.hope@linaro.org>
+
+        GDB Linaro 7.2-2010.11-0 released.
+
+        gdb/
+        * version.in: Update.
+
+2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #663542
+       Backport from mainline:
+
+       2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/
+       * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
+       for "mov pc, REG" as well.
+       (thumb_instruction_changes_pc): Likewise.
+
+2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #663539
+       Backport from mainline:
+
+       2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/testsuite/
+       * gdb.base/watch_thread_num.exp: Revert 2008-09-03 change.
+       Skip test completely if gdb,no_hardware_watchpoints.
+
+2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #663537
+       Backport from mainline:
+
+       2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/testsuite/
+       * gdb.base/foll-fork.exp: Make regexps to match catchpoint hits more
+       strict, but do not check for any particular function name within libc.
+
+2010-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #615984
+       Backport from mainline:
+
+       2010-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/break-interp.exp (test_ld): Replace gdb_expect by
+       gdb_test_multiple.
+
+       2010-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/testsuite/
+       * break-interp.exp (test_ld): Use two separate gdb_expect statements
+       for the "info files" test to avoid timeouts on slow machines.
+
+       2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       gdb/testsuite/
+       Fix missing _start PIE relocation on ppc64 due to stop on dl_main.
+       * break-interp.exp (reach): Move the core body ...
+       (reach_1): ... here.  Use stop-on-solib-events for _dl_debug_state.
+       (test_ld): Provide always real argument, even to the linker.  Replace
+       dl_main by _dl_debug_state.
+
+       2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       gdb/testsuite/
+       Fix results of prelinked PIEs on ppc*.
+       * gdb.base/break-interp.exp (reach, test_core, test_attach_gdb):
+       Accept also DISPLACEMENT "PRESENT".
+       (main): Replace "ZERO" displacements by "PRESENT".
+
+       2010-09-10  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
+
+       gdb/testsuite/
+       * gdb.base/break-interp.exp (test_ld) <istarget powerpc64-*>: Add
+       is_lp64_target to check 64bit target.
+
+       2010-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       gdb/testsuite/
+       * gdb.base/break-interp.exp (reach): Permit leading . for ppc64.
+       (test_ld) <powerpc64-*>: New.
+
+2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/
+       * version.in: Bump version.
+
+2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       GDB Linaro 7.2-2010.10-0 released.
+
+       gdb/
+       * version.in: Update.
+
+2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #523959
+       Backport from mainline:
+
+       2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+       gdb/
+       * arm-tdep.c (thumb_expand_immediate): New function.
+       (thumb_instruction_changes_pc): Likewise.
+       (thumb2_instruction_changes_pc): Likewise.
+       (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
+       prologue parsing.  Improved support for optimized code.
+       (thumb_scan_prologue): Do not reply on line-number information,
+       use same heuristics as arm_scan_prologue insead.
+       (skip_prologue_function): Accept functions
+       "__tls_get_addr" and "__aeabi_read_tp".
+
+2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #615982
+       Backport from mainline:
+
+       2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+                   Daniel Jacobowitz  <dan@codesourcery.com>
+       gdb/
+       * arm-tdep.c (thumb_in_function_epilogue_p)
+       (arm_in_function_epilogue_p): New.
+       (arm_gdbarch_init): Install arm_in_function_epilogue_p as
+       gdbarch_in_function_epilogue_p callback.
+
+2010-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Backport from mainline:
+
+       2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       libiberty/
+       * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
+       corresponding stream has been opened.
+       (pex_free): Close pipe file descriptors corresponding to child's
+       stdout and stderr before waiting.
+
+2010-09-22  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * src-release: Support gdb-linaro packages.
+
+       gdb/
+       * version.in: Set to Linaro GDB version number.
+
+       * configure.ac (PKGVERSION, BUGURL): Refer to Linaro.
+       * configure: Regenerate.
+
+       gdb/gdbserver/
+       * configure.ac (PKGVERSION, BUGURL): Refer to Linaro.
+       * configure: Regenerate.
+
+       gdb/doc/
+       * configure.ac (PKGVERSION, BUGURL): Refer to Linaro.
+       * configure: Regenerate.
+
+2010-09-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #620595
+       Backport from mainline:
+
+       2010-09-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       gdb/testsuite/
+       * gdb.threads/threxit-hop-specific.exp: Use "continue" instead
+       of "next" to proceed over pthread_exit call.
+
+2010-09-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Fix LP #615988
+       Backport from mainline:
+
+       2010-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
+       gdb/
+       * dwarf2read.c (fixup_partial_die): Do not set dummy name for
+       anonymous class partial DIEs.
+
+       2010-09-08  Ulrich Weigand  <uweigand@de.ibm.com>
+       gdb/testsuite/
+       * gdb.base/maint.exp: Avoid wildcards against potentially very long
+       "maint print statistics" output to prevent expect timeouts.
+
+2010-09-10  Yao Qi  <yao@codesourcery.com>
+
+       Fix LP:#615995.
+       Backport from mainline:
+       
+       2010-09-08  Yao Qi  <yao@codesourcery.com>              
+               Pedro Alves  <pedro@codesourery.com>
+       
+       * infrun.c (resume): When inferior is waiting_for_vfork_done,
+       clear step and don't use displaced stepping.
+        Extend comment on ignoring single-step requests on vfork
+       parents waiting for a vfork-done.
+
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..2f57f05
--- /dev/null
@@ -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 (file)
index 0000000..ef27e84
--- /dev/null
@@ -0,0 +1,8 @@
+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.bz2 and a gdb-doc .orig.tar.bz2.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..4a7fd64
--- /dev/null
@@ -0,0 +1,1196 @@
+gdb (7.2-1linaro7.2-2011.03-0slp2+s2) unstable; urgency=low
+
+  * debian: Don't build gdb64 on slp
+  * debian: Don't built gdb-source for slp
+
+ -- Karol Lewandowski <k.lewandowsk@samsung.com>  Tue, 12 Apr 2011 15:10:48 +0200
+
+gdb (7.2-1linaro7.2-2011.03-0slp2+s1) unstable; urgency=low
+
+  * Import Linaro GDB 7.2-2011.03-0
+
+ -- Karol Lewandowski <k.lewandowsk@samsung.com>  Fri, 08 Apr 2011 11:33:13 +0200
+
+gdb (7.2-1slp2+s1) unstable; urgency=low
+
+  * slp: Disable python, tests and documentation
+  * Sync with Debian
+
+ -- Karol Lewandowski <k.lewandowsk@samsung.com>  Wed, 06 Apr 2011 11:33:26 +0200
+
+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-2slp2+s1) unstable; urgency=low
+
+  * Fix: Distribution is SLP, not sbs
+  * Upgrade to 7.1 as binary only gdb in default-files-slp uses exactly this version
+
+ -- Karol Lewandowski <k.lewandowsk@samsung.com>  Mon, 21 Mar 2011 11:50:13 +0100
+
+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-2slp2+s1) unstable; urgency=low
+
+  * Replace generic binary names with arch-name when cross-compiling
+  * Grab libraries from systemroot (/) and not target-specific directory
+    under /usr
+
+ -- Karol Lewandowski <k.lewandowsk@samsung.com>  Wed, 02 Mar 2011 13:32:36 +0100
+
+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/changelog.old b/debian/changelog.old
new file mode 100644 (file)
index 0000000..34a9a7c
--- /dev/null
@@ -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
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..ed89867
--- /dev/null
@@ -0,0 +1,89 @@
+Source: gdb
+Maintainer: Daniel Jacobowitz <dan@debian.org>
+Section: devel
+Priority: optional
+Standards-Version: 3.8.4
+Build-Depends: autoconf, libtool, texinfo (>= 4.7-2.2), libncurses5-dev, libreadline-dev, bison, gettext, debhelper (>= 7), mig [hurd-alpha hurd-amd64 hurd-arm hurd-armeb hurd-avr32 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), libkvm-dev [kfreebsd-alpha kfreebsd-amd64 kfreebsd-arm kfreebsd-armeb kfreebsd-avr32 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], lib64readline6-dev [i386 powerpc s390 sparc], zlib1g-dev, procps, bzip2
+
+Package: gdb
+Architecture: any
+Section: devel
+Depends: ${shlibs:Depends}, ${misc:Depends}, gdbserver [amd64 armel i386 ia64 mips mipsel powerpc s390]
+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: gdb-minimal
+Architecture: any
+Section: devel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: gdb
+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.
+ .
+ This package contains a minimal version of GDB with optional features
+ disabled.
+
+Package: gdb64
+Architecture: i386 powerpc s390 sparc
+Section: devel
+Depends: ${shlibs:Depends}, gdb, ${misc:Depends}
+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: gdbserver
+Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390
+Section: devel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: gdb (<< 7.0.1-1)
+Description: The 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, it works for C, C++, Fortran
+ Modula 2 and Java programs. A must-have for any serious
+ programmer.
+ .
+ This package contains gdbserver.  Install this to debug remotely
+ from another system where GDB is installed.
+
+Package: libgdb-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, binutils-dev, libexpat1-dev, python-dev, zlib1g-dev, libncurses5-dev, libreadline-dev, gdb
+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.
+
+Package: gdb-source
+Architecture: all-but-slp
+Section: devel
+Depends: ${misc:Depends}, gdb
+Description: The 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, it works for C, C++, Fortran
+ Modula 2 and Java programs. 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 (file)
index 0000000..11e0188
--- /dev/null
@@ -0,0 +1,89 @@
+Source: gdb
+Maintainer: Daniel Jacobowitz <dan@debian.org>
+Section: devel
+Priority: optional
+Standards-Version: 3.8.4
+Build-Depends: autoconf, libtool, texinfo (>= 4.7-2.2), texlive-base, libncurses5-dev, libreadline-dev, bison, gettext, debhelper (>= 7), dejagnu, gcj-jdk | gcj, gobjc, mig [@gnu@], cdbs (>= 0.4.17), libkvm-dev [@kfreebsd@], type-handling (>= 0.2.1), libunwind7-dev [ia64], flex | flex-old, libexpat1-dev, g++-multilib [i386 powerpc s390 sparc], lib64readline6-dev [i386 powerpc s390 sparc], python-dev, zlib1g-dev, procps, lsb-release, bzip2
+
+Package: gdb@TS@
+Architecture: any
+Section: devel
+Depends: ${shlibs:Depends}, ${misc:Depends}, gdbserver [amd64 armel i386 ia64 mips mipsel powerpc s390]
+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: gdb-minimal
+Architecture: any
+Section: devel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: gdb
+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.
+ .
+ This package contains a minimal version of GDB with optional features
+ disabled.
+
+Package: gdb64
+Architecture: i386 powerpc s390 sparc
+Section: devel
+Depends: ${shlibs:Depends}, gdb, ${misc:Depends}
+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: gdbserver
+Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390
+Section: devel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: gdb (<< 7.0.1-1)
+Description: The 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, it works for C, C++, Fortran
+ Modula 2 and Java programs. A must-have for any serious
+ programmer.
+ .
+ This package contains gdbserver.  Install this to debug remotely
+ from another system where GDB is installed.
+
+Package: libgdb-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, binutils-dev, libexpat1-dev, python-dev, zlib1g-dev, libncurses5-dev, libreadline-dev, gdb
+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.
+
+Package: gdb-source
+Architecture: all
+Section: devel
+Depends: ${misc:Depends}, gdb
+Description: The 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, it works for C, C++, Fortran
+ Modula 2 and Java programs. 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 (file)
index 0000000..570f399
--- /dev/null
@@ -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
+<david@ods.com>, Stuart Lamble <lamble@yoyo.cc.monash.edu.au>, 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 <http://www.gnu.org/licenses/>.
+
+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.
diff --git a/debian/gcore.1 b/debian/gcore.1
new file mode 100644 (file)
index 0000000..39aca0b
--- /dev/null
@@ -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-minimal.manpages b/debian/gdb-minimal.manpages
new file mode 100644 (file)
index 0000000..5548074
--- /dev/null
@@ -0,0 +1,2 @@
+gdb/gdb.1
+debian/gcore.1
diff --git a/debian/gdb.install b/debian/gdb.install
new file mode 100644 (file)
index 0000000..e5084b1
--- /dev/null
@@ -0,0 +1,5 @@
+usr/bin/gdb
+usr/bin/gdbtui
+usr/share/gdb
+usr/share/man/man1/gdb.1
+usr/share/man/man1/gdbtui.1
diff --git a/debian/gdb.menu b/debian/gdb.menu
new file mode 100644 (file)
index 0000000..286d95a
--- /dev/null
@@ -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 (file)
index 0000000..ccb3b0d
--- /dev/null
@@ -0,0 +1 @@
+# System-wide GDB initialization file.
diff --git a/debian/gdbserver.install b/debian/gdbserver.install
new file mode 100644 (file)
index 0000000..5e1ae01
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin/gdbserver
+usr/share/man/man1/gdbserver.1
diff --git a/debian/gdbtui b/debian/gdbtui
new file mode 100755 (executable)
index 0000000..ec42c0a
--- /dev/null
@@ -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/libgdb-dev.install b/debian/libgdb-dev.install
new file mode 100644 (file)
index 0000000..4087ea5
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/lib*.a usr/lib/gdb/
diff --git a/debian/patches/dwarf2-cfi-warning.patch b/debian/patches/dwarf2-cfi-warning.patch
new file mode 100644 (file)
index 0000000..c49c605
--- /dev/null
@@ -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-7.0.1/gdb/dwarf2-frame.c
+===================================================================
+--- gdb-7.0.1.orig/gdb/dwarf2-frame.c  2010-01-30 16:24:03.000000000 -0500
++++ gdb-7.0.1/gdb/dwarf2-frame.c       2010-01-30 16:24:34.000000000 -0500
+@@ -1023,7 +1023,7 @@ dwarf2_frame_cache (struct frame_info *t
+          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 %s"),
+                        gdbarch_register_name (gdbarch, regnum),
diff --git a/debian/patches/gdb-fortran-main.patch b/debian/patches/gdb-fortran-main.patch
new file mode 100644 (file)
index 0000000..1a5bb2c
--- /dev/null
@@ -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-7.1/gdb/symtab.c
+===================================================================
+--- gdb-7.1.orig/gdb/symtab.c
++++ gdb-7.1/gdb/symtab.c
+@@ -4627,8 +4627,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-7.1/gdb/testsuite/gdb.fortran/lang.exp
+===================================================================
+--- /dev/null
++++ gdb-7.1/gdb/testsuite/gdb.fortran/lang.exp
+@@ -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/gdbinit-ownership.patch b/debian/patches/gdbinit-ownership.patch
new file mode 100644 (file)
index 0000000..8f06f7b
--- /dev/null
@@ -0,0 +1,103 @@
+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 |   42 +++++++++++++++++++++++++++++++++++++++++-
+ gdb/main.c         |    4 ++--
+ 2 files changed, 43 insertions(+), 3 deletions(-)
+
+Index: gdb-7.2/gdb/cli/cli-cmds.c
+===================================================================
+--- gdb-7.2.orig/gdb/cli/cli-cmds.c    2010-09-05 10:31:40.000000000 -0400
++++ gdb-7.2/gdb/cli/cli-cmds.c 2010-09-05 11:16:36.000000000 -0400
+@@ -54,6 +54,8 @@
+ #include "tui/tui.h"          /* For tui_active et.al.   */
+ #endif
++#include "gdb_stat.h"
++
+ #include <fcntl.h>
+ /* Prototypes for local command functions */
+@@ -578,13 +580,47 @@ source_script_with_search (const char *f
+        If the source command was invoked interactively, throw an error.
+        Otherwise (e.g. if it was invoked by a script), silently ignore
+        the error.  */
+-      if (from_tty)
++      /* Or, if this was an automatic load during startup, ignore the
++       error.  */
++      if (from_tty > 0)
+       perror_with_name (file);
+       else
+       return;
+     }
+   old_cleanups = make_cleanup (xfree, full_path);
++
++  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;
++      int fd = fileno (stream);
++      if (fstat (fd, &statbuf) < 0)
++      {
++        make_cleanup_fclose (stream);
++        perror_with_name (file);
++      }
++      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
++
+   source_script_from_stream (stream, file);
+   do_cleanups (old_cleanups);
+ }
+@@ -1381,6 +1417,10 @@ The max call depth for user-defined comm
+ }
\f
++/* 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
+ init_cli_cmds (void)
+ {
+Index: gdb-7.2/gdb/main.c
+===================================================================
+--- gdb-7.2.orig/gdb/main.c    2010-09-05 10:31:40.000000000 -0400
++++ gdb-7.2/gdb/main.c 2010-09-05 10:32:03.000000000 -0400
+@@ -794,7 +794,7 @@ Excess command line arguments ignored. (
+      debugging or what directory you are in.  */
+   if (home_gdbinit && !inhibit_gdbinit)
+-    catch_command_errors (source_script, home_gdbinit, 0, RETURN_MASK_ALL);
++    catch_command_errors (source_script, home_gdbinit, -1, RETURN_MASK_ALL);
+   /* Now perform all the actions indicated by the arguments.  */
+   if (cdarg != NULL)
+@@ -868,7 +868,7 @@ Can't attach to process and specify a co
+   /* Read the .gdbinit file in the current directory, *if* it isn't
+      the same as the $HOME/.gdbinit file (it should exist, also).  */
+   if (local_gdbinit && !inhibit_gdbinit)
+-    catch_command_errors (source_script, local_gdbinit, 0, RETURN_MASK_ALL);
++    catch_command_errors (source_script, local_gdbinit, -1, RETURN_MASK_ALL);
+   /* Now that all .gdbinit's have been read and all -d options have been
+      processed, we can read any scripts mentioned in SYMARG.
diff --git a/debian/patches/linux-clear-thread-list.patch b/debian/patches/linux-clear-thread-list.patch
new file mode 100644 (file)
index 0000000..1672245
--- /dev/null
@@ -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-7.1/gdb/linux-thread-db.c
+===================================================================
+--- gdb-7.1.orig/gdb/linux-thread-db.c
++++ gdb-7.1/gdb/linux-thread-db.c
+@@ -1280,6 +1280,9 @@ thread_db_mourn_inferior (struct target_
+      the inferior, so that we don't try to uninsert them.  */
+   remove_thread_event_breakpoints ();
++  /* Destroy thread info; it's no longer valid.  */
++  init_thread_list ();
++
+   /* Detach thread_db target ops.  */
+   if (!thread_db_list)
+     unpush_target (ops);
diff --git a/debian/patches/man-page-args.patch b/debian/patches/man-page-args.patch
new file mode 100644 (file)
index 0000000..1893147
--- /dev/null
@@ -0,0 +1,52 @@
+---
+ gdb/gdb.1 |   27 ++++++++++++++++++++++++++-
+ 1 file changed, 26 insertions(+), 1 deletion(-)
+
+Index: gdb-7.0.1/gdb/gdb.1
+===================================================================
+--- gdb-7.0.1.orig/gdb/gdb.1   2010-01-30 16:23:17.000000000 -0500
++++ gdb-7.0.1/gdb/gdb.1        2010-01-30 16:24:38.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"
diff --git a/debian/patches/man-page-order.patch b/debian/patches/man-page-order.patch
new file mode 100644 (file)
index 0000000..711affb
--- /dev/null
@@ -0,0 +1,200 @@
+From 539edd1a9af966d16f3391edece93702a86c7155 Mon Sep 17 00:00:00 2001
+From: Jari Aalto <jari.aalto@cante.net>
+Date: Sat, 8 Aug 2009 10:18:20 +0300
+Subject: [PATCH] gdb.1: Order options alphabetically
+
+Signed-off-by: Jari Aalto <jari.aalto@cante.net>
+---
+ gdb/gdb.1 |  148 +++++++++++++++++++++++++-------------------------------------
+ 1 file changed, 60 insertions(+), 88 deletions(-)
+
+Index: gdb-7.0.1/gdb/gdb.1
+===================================================================
+--- gdb-7.0.1.orig/gdb/gdb.1   2010-01-30 16:24:38.000000000 -0500
++++ gdb-7.0.1/gdb/gdb.1        2010-01-30 16:24:40.000000000 -0500
+@@ -220,90 +220,11 @@ in sequential order.  The order makes a 
+ `\|\c
+ .B \-x\c
+ \&\|' option is used.
+-
+-.TP
+-.B \-help
+-.TP
+-.B \-h
+-List all options, with brief explanations.
+-
+-.TP
+-.BI "\-symbols=" "file"\c
+-.TP
+-.BI "\-s " "file"\c
+-\&
+-Read symbol table from file \c
+-.I file\c
+-\&.
+-
+-.TP
+-.B \-write
+-Enable writing into executable and core files.
+-
+-.TP
+-.BI "\-exec=" "file"\c
+-.TP
+-.BI "\-e " "file"\c
+-\&
+-Use file \c
+-.I file\c
+-\& as the executable file to execute when
+-appropriate, and for examining pure data in conjunction with a core
+-dump.
+-
+-.TP
+-.BI "\-se=" "file"\c
+-\&
+-Read symbol table from file \c
+-.I file\c
+-\& and use it as the executable
+-file.
+-
+-.TP
+-.BI "\-core=" "file"\c
+-.TP
+-.BI "\-c " "file"\c
+-\&
+-Use file \c
+-.I file\c
+-\& as a core dump to examine.
+-
+-.TP
+-.BI "\-command=" "file"\c
+-.TP
+-.BI "\-x " "file"\c
+-\&
+-Execute GDB commands from file \c
+-.I file\c
+-\&.  
+-
+-.TP
+-.BI "\-directory=" "directory"\c
+ .TP
+-.BI "\-d " "directory"\c
++.BI "\-b " "bps"\c
+ \&
+-Add \c
+-.I directory\c
+-\& to the path to search for source files.
+-.PP
+-
+-.TP
+-.B \-nx
+-.TP
+-.B \-n
+-Do not execute commands from any `\|\c
+-.B .gdbinit\c
+-\&\|' initialization files.
+-Normally, the commands in these files are executed after all the
+-command options and arguments have been processed.
+-
+-
+-.TP
+-.B \-quiet
+-.TP
+-.B \-q
+-``Quiet''.  Do not print the introductory and copyright messages.  These
+-messages are also suppressed in batch mode.
++Set the line speed (baud rate or bits per second) of any serial
++interface used by GDB for remote debugging.
+ .TP
+ .B \-batch
+@@ -331,6 +252,12 @@ Program\ exited\ normally.
+ terminates) is not issued when running in batch mode.
+ .TP
++.B \-c FILE, \-core=FILE
++Use file \c
++.I file\c
++\& as a core dump to examine.
++
++.TP
+ .BI "\-cd=" "directory"\c
+ \&
+ Run GDB using \c
+@@ -339,9 +266,21 @@ Run GDB using \c
+ instead of the current directory.
+ .TP
+-.B \-fullname
++.B \-d DIRECTORY, \-directory=DIRECTORY
++Add \c
++.I directory\c
++\& to the path to search for source files.
++
++.TP
++.B \-e FILE, -exec=FILE
++Use file \c
++.I file\c
++\& as the executable file to execute when
++appropriate, and for examining pure data in conjunction with a core
++dump.
++
+ .TP
+-.B \-f
++.B \-f, \-fullname
+ Emacs sets this option when it runs GDB as a subprocess.  It tells GDB
+ to output the full file name and line number in a standard,
+ recognizable fashion each time a stack frame is displayed (which
+@@ -356,10 +295,34 @@ Emacs-to-GDB interface program uses the 
+ a signal to display the source code for the frame.
+ .TP
+-.BI "\-b " "bps"\c
+-\&
+-Set the line speed (baud rate or bits per second) of any serial
+-interface used by GDB for remote debugging.
++.B \-h, \-help
++List all options, with brief explanations.
++
++.TP
++.B \-n, \-nx
++Do not execute commands from any `\|\c
++.B .gdbinit\c
++\&\|' initialization files.
++Normally, the commands in these files are executed after all the
++command options and arguments have been processed.
++
++.TP
++.B -s FILE, \-symbols=FILE
++Read symbol table from file \c
++.I file\c
++\&.
++
++.TP
++.BI "\-se=" "file"\c
++Read symbol table from file \c
++.I file\c
++\& and use it as the executable
++file.
++
++.TP
++.B \q, \-quiet
++``Quiet''.  Do not print the introductory and copyright messages.  These
++messages are also suppressed in batch mode.
+ .TP
+ .BI "\-tty=" "device"\c
+@@ -379,6 +342,15 @@ Pass \c
+ Run GDB using a text (console) user interface.
+ .PP
++.TP
++.B \-write
++Enable writing into executable and core files.
++
++.TP
++.B \-x FILE, \-command=FILE
++Execute GDB commands from file \c
++.I file\c
++\&.
+ .SH "SEE ALSO"
+ .RB "`\|" gdb "\|'"
+ entry in
diff --git a/debian/patches/member-field-symtab.patch b/debian/patches/member-field-symtab.patch
new file mode 100644 (file)
index 0000000..6c8ea41
--- /dev/null
@@ -0,0 +1,26 @@
+Status: unsubmitted
+
+This patch was for Debian bug #239535.  It needs to be tested, and
+submitted.  It has shrunk since the first version, and may no
+longer be necessary.
+
+---
+ gdb/valops.c |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+Index: gdb-7.2/gdb/valops.c
+===================================================================
+--- gdb-7.2.orig/gdb/valops.c  2010-06-28 16:35:52.000000000 -0400
++++ gdb-7.2/gdb/valops.c       2010-09-05 10:14:36.000000000 -0400
+@@ -2963,8 +2963,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;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..2c0546e
--- /dev/null
@@ -0,0 +1,7 @@
+member-field-symtab.patch 
+dwarf2-cfi-warning.patch 
+gdbinit-ownership.patch
+gdb-fortran-main.patch 
+linux-clear-thread-list.patch
+man-page-args.patch
+man-page-order.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..d4ff590
--- /dev/null
@@ -0,0 +1,305 @@
+#!/usr/bin/make -f
+
+ALL_BUILDDIR := $(shell pwd)/build
+
+DEB_BUILDDIR := $(ALL_BUILDDIR)/objdir
+DEB_DH_INSTALL_SOURCEDIR := $(shell pwd)/debian/tmp
+
+distribution := SLP
+
+# 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
+
+# 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))
+ifneq ($(distribution),SLP)
+  build64 = yes
+  CC64 = gcc -m64
+  CFLAGS64 = $(CFLAGS)
+  BUILDDIR64 = $(ALL_BUILDDIR)/objdir64
+  ifeq ($(DEB_HOST_ARCH),i386)
+    HOST64 = x86_64-linux-gnu
+  endif
+  ifeq ($(DEB_HOST_ARCH),powerpc)
+    HOST64 = powerpc64-linux-gnu
+  endif
+  ifeq ($(DEB_HOST_ARCH),sparc)
+    HOST64 = sparc64-linux-gnu
+  endif
+  ifeq ($(DEB_HOST_ARCH),s390)
+    HOST64 = s390x-linux-gnu
+  endif
+endif
+endif
+endif
+
+run_tests := yes
+
+ifneq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+  run_tests := no
+endif
+
+ifeq (,$(findstring linux, $(DEB_HOST_GNU_SYSTEM)))
+  run_tests := no
+endif
+
+ifeq ($(distribution),SLP)
+  run_tests := no
+endif
+
+ifeq ($(DEB_HOST_GNU_CPU),ia64)
+  arch_config_args := --with-libunwind
+endif
+
+ifdef GDB_TARGET
+  run_tests := no
+
+ifneq ($(distribution),SLP)
+  arch_config_args += --program-prefix=$(TP) \
+    --target=$(DEB_TARGET_ALIAS) --with-sysroot=/usr/$(DEB_TARGET_ALIAS)
+else
+  arch_config_args += --program-prefix=$(TP) \
+    --target=$(DEB_TARGET_ALIAS) --with-sysroot=/
+endif
+  # 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 \
+       --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.
+ifneq ($(distribution),SLP)
+DEB_CONFIGURE_EXTRA_FLAGS := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \
+       --enable-tui --with-expat --with-python
+else
+DEB_CONFIGURE_EXTRA_FLAGS := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \
+       --enable-tui --with-expat --without-python
+endif
+
+# 64-bit flags
+DEB_CONFIGURE_FLAGS_64 := --host=$(HOST64) $(EXTRA_FLAGS) \
+       --enable-tui
+
+# Minimal flags
+DEB_CONFIGURE_FLAGS_MIN := --host=$(DEB_HOST_GNU_TYPE) $(EXTRA_FLAGS) \
+       --disable-tui --without-expat --without-python
+
+# 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
+
+ifneq ($(distribution),SLP)
+distribution := $(shell lsb_release -is | tr A-Z a-z)
+endif
+
+BUILDDIRSOURCE := $(ALL_BUILDDIR)/gdb
+BUILDDIRMIN := $(ALL_BUILDDIR)/gdb-minimal
+
+post-patches::
+       if ! test -f gdb/version.in.backup; then \
+         mv -f gdb/version.in gdb/version.in.backup; \
+         sed -e 's/$$/-$(distribution)/' < 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 $(DEB_BUILDDIR) info
+       $(MAKE) -C $(DEB_BUILDDIR)/gdb/doc refcard.dvi refcard.ps
+
+build/gdb64:: build64-stamp
+build64-stamp:
+       mkdir -p $(BUILDDIR64)
+       cd $(BUILDDIR64) && CC="$(CC64)" CFLAGS="$(CFLAGS64)" AR=ar \
+         $(shell pwd)/configure $(DEB_CONFIGURE_FLAGS_64)
+       cd $(BUILDDIR64) && $(DEB_MAKE_ENVVARS) $(MAKE) $(NJOBS)
+       touch $@
+
+build/gdb-minimal:: build-minimal-stamp
+build-minimal-stamp:
+       mkdir -p $(BUILDDIRMIN)
+       cd $(BUILDDIRMIN) && \
+         $(shell pwd)/configure $(DEB_CONFIGURE_FLAGS_MIN)
+       cd $(BUILDDIRMIN) && $(DEB_MAKE_ENVVARS) $(MAKE) $(NJOBS)
+       touch $@
+
+check-stamp:
+ifeq ($(run_tests),yes)
+       -ulimit -c unlimited; \
+       $(MAKE) $(NJOBS) -C $(DEB_BUILDDIR)/gdb check
+endif
+       touch $@
+
+clean::
+       rm -f check-stamp build64-stamp
+       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;              \
+               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)
+       # 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
+
+       # 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/
+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/gdb64 ::
+       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
+       rm -rf debian/gdb64/usr/share/doc/gdb64
+       ln -s gdb debian/gdb64/usr/share/doc/gdb64
+
+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 \
+               gdb/gdb_gcore.sh 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/libgdb-dev ::
+       install -m 644 $(DEB_BUILDDIR)/gdb/libgdb.a debian/libgdb-dev/usr/lib/
+       if test -e $(DEB_BUILDDIR)/sim/*/libsim.a; then \
+         install -m 644 $(DEB_BUILDDIR)/sim/*/libsim.a debian/libgdb-dev/usr/lib/; \
+       fi
+       rm -rf debian/libgdb-dev/usr/share/doc/libgdb-dev
+       ln -s gdb debian/libgdb-dev/usr/share/doc/libgdb-dev
+
+binary-post-install/gdb-source ::
+       install -d debian/gdb-source/usr/src
+       mkdir -p $(BUILDDIRSOURCE)
+       tar --exclude build -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))
+       rm -rf debian/gdb-source/usr/share/doc/gdb-source
+       ln -s gdb debian/gdb-source/usr/share/doc/gdb-source
+
+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
+       sed "s+/gdb+/$(TP)gdb+g; s+usr/share/$(TP)gdb+usr/share/gdb+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
+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 = -XChangeLog
+
+DEB_INSTALL_DOCS_gdb-minimal = $(DEB_INSTALL_DOCS_gdb$(TS))
+DEB_INSTALL_CHANGELOGS_gdb-minimal = -XChangeLog
+
+.PHONY: FORCE
+FORCE:
diff --git a/debian/sanitize-gdb.sh b/debian/sanitize-gdb.sh
new file mode 100644 (file)
index 0000000..0154b7c
--- /dev/null
@@ -0,0 +1,93 @@
+#!/bin/sh
+
+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\.bz2\$//")
+debversion=${version}
+tarball="$tardir"/gdb-$version.tar.bz2
+dfsg="$tardir/gdb_$debversion.orig.tar.gz"
+doc="$tardir/gdb-doc_$version.orig.tar.gz"
+
+dir=`cd $(dirname "$0") && pwd`
+
+temp=$(mktemp -d)
+olddir=`pwd`
+
+cd "$temp"
+mkdir src
+cd src
+tar xjf "$tarball"
+cd ..
+
+src=src/gdb-$version
+dest=gdb-$debversion
+dest2=gdb-doc-$version
+
+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
+
+if test -z "$dest2" || test -e "$dest2"; then
+  echo "Could not create dest directory $dest2"
+  exit 1
+fi
+
+src=`cd "$src" && pwd`
+
+cp -a "$src" "$dest"
+pushd "$dest" > /dev/null
+
+# The GDB manual pages are not covered by the GFDL, but the simulator's
+# is.
+echo > sim/common/run.1
+
+# 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-\* \))
+
+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
+mkdir "$dest2"
+mkdir "$dest2"/readline
+cp -a "$src"/readline/doc "$dest2"/readline/doc
+mkdir "$dest2"/gdb
+cp -a "$src"/gdb/doc "$dest2"/gdb/doc
+
+# Supporting files.
+cp -a "$src"/config.guess "$dest2/"
+cp -a "$src"/config.sub "$dest2/"
+cp -a "$src"/install-sh "$dest2/"
+cp -a "$src"/mkinstalldirs "$dest2/"
+cp -a "$src"/gdb/version.in "$dest2"/gdb/
+
+tar czf "$dfsg" gdb-$debversion
+tar czf "$doc" gdb-doc-$version
+
+cd "$olddir"
+rm -rf $temp
diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides
new file mode 100644 (file)
index 0000000..8f2fb7f
--- /dev/null
@@ -0,0 +1,3 @@
+# We do not use the included readline.
+gdb source: outdated-autotools-helper-file readline/support/config.guess 2004-02-16
+gdb source: outdated-autotools-helper-file readline/support/config.sub 2004-02-16
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/packaging/gdb.manifest b/packaging/gdb.manifest
new file mode 100644 (file)
index 0000000..8be64bb
--- /dev/null
@@ -0,0 +1,9 @@
+<manifest>
+        <request>
+                <domain name="_"/>
+        </request>
+        <assign>
+                <filesystem path="/usr/bin/*" exec_label="none" />
+        </assign>
+</manifest>
+
index 932a506..6408fb3 100644 (file)
@@ -1,12 +1,13 @@
 Summary: A GNU source-level debugger for C, C++, Java and other languages
 Name: gdb
 Version: 7.2
-Release: 1
-License: GPLv3+
+Release: 2
+License: GPL-3.0+
 Group: Development/Debuggers
 URL: http://gnu.org/software/gdb/
 Source: ftp://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.bz2
 Source101: gdb-rpmlintrc
+Source1001: gdb.manifest
 Patch0: gdb-7.2-noreturn.patch
 Patch1: gdb-7.2-lib-order.patch
 
@@ -63,6 +64,7 @@ rm -f gdb/doc/*.info-*
 rm -fr %{gdb_build}
 mkdir %{gdb_build}
 cd %{gdb_build}
+cp %{SOURCE1001} $RPM_BUILD_DIR/%{gdb_src}
 
 export CFLAGS="$RPM_OPT_FLAGS"
 
@@ -81,7 +83,7 @@ export CFLAGS="$RPM_OPT_FLAGS"
        --with-system-readline                          \
        --with-expat                                    \
        --enable-tui                                    \
-       --without-python                                        \
+       --without-python                                \
        --without-libunwind                             \
        --enable-64-bit-bfd                             \
        --enable-static --disable-shared --enable-debug \
@@ -123,6 +125,7 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib{bfd*,opcodes*,iberty*,mmalloc*}
 rm -rf $RPM_BUILD_ROOT
 
 %files
+%manifest gdb.manifest
 %defattr(-,root,root)
 %doc COPYING COPYING.LIB README NEWS
 %{_bindir}/gcore
@@ -133,6 +136,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gdb
 
 %files server
+%manifest gdb.manifest
 %defattr(-,root,root)
 %{_bindir}/gdbserver
 %{_mandir}/*/gdbserver.1*