packages: gdb/gdb-6.3-attach-see-vdso-test.patch, gdb/gdb-6.3-bt-past-zero-...
pluto
pluto at pld-linux.org
Fri Oct 15 19:16:46 CEST 2010
Author: pluto Date: Fri Oct 15 17:16:46 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- updated to 7.2 with fedora patchset w/o rhel compat fixes.
- python pretty printers dropped (bcond temporary inverted). we'll original sources from gcc tarball.
- release 0.1.
---- Files affected:
packages/gdb:
gdb-6.3-attach-see-vdso-test.patch (1.1 -> 1.2) , gdb-6.3-bt-past-zero-20051201.patch (1.1 -> 1.2) , gdb-6.3-bz140532-ppc-unwinding-test.patch (1.1 -> 1.2) , gdb-6.3-gstack-20050411.patch (1.2 -> 1.3) , gdb-6.3-ia64-info-frame-fix-20050725.patch (1.1 -> 1.2) , gdb-6.3-ia64-sigill-20051115.patch (1.1 -> 1.2) , gdb-6.3-ia64-sigtramp-frame-20050708.patch (1.1 -> 1.2) , gdb-6.3-inferior-notification-20050721.patch (1.1 -> 1.2) , gdb-6.3-inheritancetest-20050726.patch (1.2 -> 1.3) , gdb-6.3-large-core-20051206.patch (1.2 -> 1.3) , gdb-6.3-readnever-20050907.patch (1.2 -> 1.3) , gdb-6.3-rh-testversion-20041202.patch (1.1 -> 1.2) , gdb-6.3-security-errata-20050610.patch (1.1 -> 1.2) , gdb-6.3-step-thread-exit-20050211-test.patch (1.1 -> 1.2) , gdb-6.3-test-dtorfix-20050121.patch (1.1 -> 1.2) , gdb-6.3-test-movedir-20050125.patch (1.1 -> 1.2) , gdb-6.3-test-pie-20050107.patch (1.3 -> 1.4) , gdb-6.3-threaded-watchpoints2-20050225.patch (1.2 -> 1.3) , gdb-6.5-bz185337-resolve-tls-wi
thout-debuginfo-v2.patch (1.2 -> 1.3) , gdb-6.5-bz203661-emit-relocs.patch (1.2 -> 1.3) , gdb-6.5-bz216711-clone-is-outermost.patch (1.2 -> 1.3) , gdb-6.5-bz243845-stale-testing-zombie-test.patch (1.1 -> 1.2) , gdb-6.5-dwarf-stack-overflow.patch (1.1 -> 1.2) , gdb-6.5-gcore-buffer-limit-test.patch (1.1 -> 1.2) , gdb-6.5-ia64-libunwind-leak-test.patch (1.1 -> 1.2) , gdb-6.5-missed-trap-on-step-test.patch (1.1 -> 1.2) , gdb-6.6-buildid-locate-rpm.patch (1.4 -> 1.5) , gdb-6.6-buildid-locate.patch (1.4 -> 1.5) , gdb-6.6-bz229517-gcore-without-terminal.patch (1.1 -> 1.2) , gdb-6.6-bz235197-fork-detach-info.patch (1.1 -> 1.2) , gdb-6.6-scheduler_locking-step-is-default.patch (1.2 -> 1.3) , gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch (1.2 -> 1.3) , gdb-6.6-threads-static-test.patch (1.1 -> 1.2) , gdb-6.7-bz426600-DW_TAG_interface_type-test.patch (1.1 -> 1.2) , gdb-6.7-charsign-test.patch (1.1 -> 1.2) , gdb-6.7-ppc-clobbered-registers-O2-test.patch (1.1 -> 1.2) , gdb-6.7-te
stsuite-stable-results.patch (1.2 -> 1.3) , gdb-6.8-attach-signalled-detach-stopped.patch (1.2 -> 1.3) , gdb-6.8-bz254229-gcore-prpsinfo.patch (1.2 -> 1.3) , gdb-6.8-bz457187-largefile-test.patch (1.1 -> 1.2) , gdb-6.8-bz466901-backtrace-full-prelinked.patch (1.2 -> 1.3) , gdb-6.8-fortran-tag-constant.patch (1.2 -> 1.3) , gdb-archer-pie-addons.patch (1.1 -> 1.2) , gdb-archer.patch (1.4 -> 1.5) , gdb-core-open-vdso-warning.patch (1.1 -> 1.2) , gdb-info.patch (1.9 -> 1.10) , gdb.spec (1.129 -> 1.130) , gdb-6.6-buildid-locate-core-as-arg.patch (NONE -> 1.1) (NEW), gdb-archer-ada.patch (NONE -> 1.1) (NEW), gdb-archer-next-over-throw-cxx-exec.patch (NONE -> 1.1) (NEW), gdb-archer-pie-addons-keep-disabled.patch (NONE -> 1.1) (NEW), gdb-bz533176-fortran-omp-step.patch (NONE -> 1.1) (NEW), gdb-bz539590-gnu-ifunc-fix-cond.patch (NONE -> 1.1) (NEW), gdb-bz541866-rwatch-before-run.patch (NONE -> 1.1) (NEW), gdb-bz555076-gcore-small-height.patch (NONE -> 1.1) (NEW), gdb-bz562763
-pretty-print-2d-vectors.patch (NONE -> 1.1) (NEW), gdb-bz568248-oom-is-error.patch (NONE -> 1.1) (NEW), gdb-bz575292-delayed-physname.patch (NONE -> 1.1) (NEW), gdb-bz592031-siginfo-lost-1of5.patch (NONE -> 1.1) (NEW), gdb-bz592031-siginfo-lost-2of5.patch (NONE -> 1.1) (NEW), gdb-bz592031-siginfo-lost-3of5.patch (NONE -> 1.1) (NEW), gdb-bz592031-siginfo-lost-4of5.patch (NONE -> 1.1) (NEW), gdb-bz592031-siginfo-lost-5of5.patch (NONE -> 1.1) (NEW), gdb-bz594560-core-vs-process.patch (NONE -> 1.1) (NEW), gdb-bz601887-dwarf4-rh-test.patch (NONE -> 1.1) (NEW), gdb-bz614659-prelink-dynbss.patch (NONE -> 1.1) (NEW), gdb-bz623749-gcore-relro.patch (NONE -> 1.1) (NEW), gdb-bz627432-loop-static-self-class.patch (NONE -> 1.1) (NEW), gdb-bz631158-cxx-this-lookup.patch (NONE -> 1.1) (NEW), gdb-bz631575-gdb-index-nobits.patch (NONE -> 1.1) (NEW), gdb-bz634660-gdbpy-load-on-attach.patch (NONE -> 1.1) (NEW), gdb-bz637770-ifunc-watchpoint-delete.patch (NONE -> 1.1) (NEW), g
db-ccache-workaround.patch (NONE -> 1.1) (NEW), gdb-false-gcc-warning.patch (NONE -> 1.1) (NEW), gdb-follow-child-stale-parent.patch (NONE -> 1.1) (NEW), gdb-fortran-common-reduce.patch (NONE -> 1.1) (NEW), gdb-fortran-common.patch (NONE -> 1.1) (NEW), gdb-gdb-add-index-script.patch (NONE -> 1.1) (NEW), gdb-gdbindex-ada-regression.patch (NONE -> 1.1) (NEW), gdb-gdbindex-bigendian.patch (NONE -> 1.1) (NEW), gdb-lineno-makeup-test.patch (NONE -> 1.1) (NEW), gdb-moribund-utrace-workaround.patch (NONE -> 1.1) (NEW), gdb-ppc-power7-test.patch (NONE -> 1.1) (NEW), gdb-pr12028-double-free.patch (NONE -> 1.1) (NEW), gdb-unused-revert.patch (NONE -> 1.1) (NEW), gdb-upstream.patch (NONE -> 1.1) (NEW), gdb-6.3-gstack-without-path-20060414.patch (1.2 -> NONE) (REMOVED), gdb-6.3-watchpoint-cond-gone-test.patch (1.1 -> NONE) (REMOVED), gdb-6.5-bz218379-ppc-solib-trampoline-fix.patch (1.1 -> NONE) (REMOVED), gdb-6.5-gcore-i386-on-amd64.patch (1.2 -> NONE) (REMOVED), gdb-6
.5-tls-of-separate-debuginfo.patch (1.1 -> NONE) (REMOVED), gdb-6.6-bz225783-prelink-path.patch (1.1 -> NONE) (REMOVED), gdb-6.6-gcore32-test.patch (1.1 -> NONE) (REMOVED), gdb-6.8-bz457187-largefile.patch (1.2 -> NONE) (REMOVED), gdb-6.8-constant-watchpoints.patch (1.2 -> NONE) (REMOVED), gdb-6.8-inlining-addon.patch (1.2 -> NONE) (REMOVED), gdb-6.8-inlining-by-name.patch (1.1 -> NONE) (REMOVED), gdb-7.0-upstream.patch (1.1 -> NONE) (REMOVED), gdb-archer-pie.patch (1.1 -> NONE) (REMOVED), gdb-bz528668-symfile-cleanup.patch (1.1 -> NONE) (REMOVED), gdb-bz528668-symfile-multi.patch (1.1 -> NONE) (REMOVED), gdb-bz528668-symfile-sepcrc.patch (1.1 -> NONE) (REMOVED), gdb-bz538626-bp_location-accel-bp-cond.patch (1.1 -> NONE) (REMOVED), gdb-bz539590-gnu-ifunc.patch (1.1 -> NONE) (REMOVED), gdb-python.patch (1.1 -> NONE) (REMOVED), gdb-readline-6.0-signal.patch (1.1 -> NONE) (REMOVED), gdb-readline-6.0.patch (1.1 -> NONE) (REMOVED), libstdc++-v3-python-common-pref
ix.patch (1.1 -> NONE) (REMOVED)
---- Diffs:
================================================================
Index: packages/gdb/gdb-6.3-attach-see-vdso-test.patch
diff -u packages/gdb/gdb-6.3-attach-see-vdso-test.patch:1.1 packages/gdb/gdb-6.3-attach-see-vdso-test.patch:1.2
--- packages/gdb/gdb-6.3-attach-see-vdso-test.patch:1.1 Mon Mar 23 00:27:49 2009
+++ packages/gdb/gdb-6.3-attach-see-vdso-test.patch Fri Oct 15 19:16:36 2010
@@ -28,7 +28,7 @@
+}
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ ./gdb/testsuite/gdb.base/attach-see-vdso.exp 6 Jul 2007 14:14:44 -0000
-@@ -0,0 +1,79 @@
+@@ -0,0 +1,72 @@
+# Copyright 2007
+
+# This program is free software; you can redistribute it and/or modify
@@ -46,13 +46,6 @@
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# This file was created by Jan Kratochvil <jan.kratochvil at redhat.com>.
-+
-+if $tracelevel then {
-+ strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
+
+# This test only works on Linux
+if { ![istarget "*-*-linux-gnu*"] } {
================================================================
Index: packages/gdb/gdb-6.3-bt-past-zero-20051201.patch
diff -u packages/gdb/gdb-6.3-bt-past-zero-20051201.patch:1.1 packages/gdb/gdb-6.3-bt-past-zero-20051201.patch:1.2
--- packages/gdb/gdb-6.3-bt-past-zero-20051201.patch:1.1 Mon Mar 23 00:27:49 2009
+++ packages/gdb/gdb-6.3-bt-past-zero-20051201.patch Fri Oct 15 19:16:36 2010
@@ -15,11 +15,11 @@
Port to GDB-6.7.
-Index: gdb-6.7/gdb/testsuite/gdb.base/setshow.exp
+Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.base/setshow.exp
===================================================================
---- gdb-6.7.orig/gdb/testsuite/gdb.base/setshow.exp 2007-08-23 20:14:17.000000000 +0200
-+++ gdb-6.7/gdb/testsuite/gdb.base/setshow.exp 2007-10-15 21:34:52.000000000 +0200
-@@ -106,6 +106,16 @@ if { ![target_info exists use_gdb_stub]
+--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.base/setshow.exp 2010-06-11 22:56:06.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/testsuite/gdb.base/setshow.exp 2010-07-12 10:46:06.000000000 +0200
+@@ -96,6 +96,16 @@ if { ![target_info exists use_gdb_stub]
delete_breakpoints
gdb_test "run" "Starting program:.*foo bar blup baz bubble.*" "passing args"
}
@@ -34,13 +34,13 @@
+#test show backtrace past-zero-pc
+gdb_test "show backtrace past-zero-pc" "Whether backtraces should continue past a zero pc value is off." "show backtrace past-zero-pc (off)"
#test set check range on
- gdb_test "set check range on" "" "set check range on"
+ gdb_test "set check range on" ".*" "set check range on"
#test show check range on
-Index: gdb-6.7/gdb/frame.c
+Index: gdb-7.1.90.20100711/gdb/frame.c
===================================================================
---- gdb-6.7.orig/gdb/frame.c 2007-10-12 22:35:58.000000000 +0200
-+++ gdb-6.7/gdb/frame.c 2007-10-15 21:34:52.000000000 +0200
-@@ -133,6 +133,16 @@ Whether backtraces should continue past
+--- gdb-7.1.90.20100711.orig/gdb/frame.c 2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/frame.c 2010-07-12 10:45:18.000000000 +0200
+@@ -185,6 +185,16 @@ Whether backtraces should continue past
value);
}
@@ -57,7 +57,7 @@
static int backtrace_past_entry;
static void
show_backtrace_past_entry (struct ui_file *file, int from_tty,
-@@ -1483,9 +1493,7 @@ get_prev_frame (struct frame_info *this_
+@@ -1784,9 +1794,7 @@ get_prev_frame (struct frame_info *this_
}
if (this_frame->level > 0
@@ -68,7 +68,7 @@
&& get_frame_type (this_frame) == NORMAL_FRAME
&& get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME
&& get_frame_pc (this_frame) == 0)
-@@ -1850,6 +1858,17 @@ the rest of the stack trace."),
+@@ -2271,6 +2279,17 @@ the rest of the stack trace."),
&set_backtrace_cmdlist,
&show_backtrace_cmdlist);
================================================================
Index: packages/gdb/gdb-6.3-bz140532-ppc-unwinding-test.patch
diff -u packages/gdb/gdb-6.3-bz140532-ppc-unwinding-test.patch:1.1 packages/gdb/gdb-6.3-bz140532-ppc-unwinding-test.patch:1.2
--- packages/gdb/gdb-6.3-bz140532-ppc-unwinding-test.patch:1.1 Mon Mar 23 00:27:49 2009
+++ packages/gdb/gdb-6.3-bz140532-ppc-unwinding-test.patch Fri Oct 15 19:16:36 2010
@@ -218,7 +218,7 @@
diff -u -ruNp gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp
--- gdb-6.3-unpatched/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp 1969-12-31 19:00:00.000000000 -0500
+++ gdb-6.3/gdb/testsuite/gdb.arch/powerpc-bcl-prologue.exp 2007-08-02 14:21:29.000000000 -0400
-@@ -0,0 +1,79 @@
+@@ -0,0 +1,72 @@
+# Copyright 2006, 2007 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
@@ -237,13 +237,6 @@
+
+# Test unwinding fixes of the PPC platform, specifically on the coping with BCL
+# jump of the PIE code.
-+
-+if $tracelevel then {
-+ strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
+
+if ![istarget "powerpc*-*-linux*"] then {
+ verbose "Skipping powerpc-linux prologue tests."
================================================================
Index: packages/gdb/gdb-6.3-gstack-20050411.patch
diff -u packages/gdb/gdb-6.3-gstack-20050411.patch:1.2 packages/gdb/gdb-6.3-gstack-20050411.patch:1.3
--- packages/gdb/gdb-6.3-gstack-20050411.patch:1.2 Tue Dec 8 00:29:15 2009
+++ packages/gdb/gdb-6.3-gstack-20050411.patch Fri Oct 15 19:16:36 2010
@@ -4,11 +4,11 @@
to install and uninstall.
* gstack.sh, gstack.1: New files.
-Index: gdb-6.8.91.20090917/gdb/Makefile.in
+Index: gdb-7.2/gdb/Makefile.in
===================================================================
---- gdb-6.8.91.20090917.orig/gdb/Makefile.in 2009-09-17 12:47:07.000000000 +0200
-+++ gdb-6.8.91.20090917/gdb/Makefile.in 2009-09-17 12:47:38.000000000 +0200
-@@ -989,7 +989,7 @@ install: all install-only
+--- gdb-7.2.orig/gdb/Makefile.in 2010-09-03 09:37:55.000000000 +0200
++++ gdb-7.2/gdb/Makefile.in 2010-09-03 09:38:45.000000000 +0200
+@@ -1010,7 +1010,7 @@ install: all install-only
# The "install-only" target also installs the syscalls' XML files in
# the system.
@@ -17,10 +17,11 @@
transformed_name=`t='$(program_transform_name)'; \
echo gdb | sed -e "$$t"` ; \
if test "x$$transformed_name" = x; then \
-@@ -1021,9 +1021,26 @@ install-tui:
- $(DESTDIR)$(man1dir) ; \
- $(INSTALL_DATA) $(srcdir)/gdb.1 \
- $(DESTDIR)$(man1dir)/$$transformed_name.1
+@@ -1046,7 +1046,25 @@ install-tui:
+ install-python:
+ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
+
+-uninstall: force $(CONFIG_UNINSTALL)
+GSTACK=gstack
+.PHONY: install-gstack
+install-gstack:
@@ -38,14 +39,12 @@
+ $(DESTDIR)$(man1dir) ; \
+ : $(INSTALL_DATA) $(srcdir)/gstack.1 \
+ $(DESTDIR)$(man1dir)/$$transformed_name.1
-
-
--uninstall: force $(CONFIG_UNINSTALL)
++
+uninstall: force uninstall-gstack $(CONFIG_UNINSTALL)
transformed_name=`t='$(program_transform_name)'; \
echo gdb | sed -e $$t` ; \
if test "x$$transformed_name" = x; then \
-@@ -1045,6 +1062,17 @@ uninstall-tui:
+@@ -1068,6 +1086,17 @@ uninstall-tui:
fi ; \
rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \
$(DESTDIR)$(man1dir)/$$transformed_name.1
@@ -63,10 +62,10 @@
# The C++ name parser can be built standalone for testing.
test-cp-name-parser.o: cp-name-parser.c
-Index: gdb-6.8.91.20090917/gdb/gstack.sh
+Index: gdb-7.2/gdb/gstack.sh
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ gdb-6.8.91.20090917/gdb/gstack.sh 2009-09-17 12:47:14.000000000 +0200
++++ gdb-7.2/gdb/gstack.sh 2010-09-03 09:38:12.000000000 +0200
@@ -0,0 +1,48 @@
+#!/bin/sh
+
@@ -87,17 +86,17 @@
+backtrace="bt"
+if test -d /proc/$1/task ; then
+ # Newer kernel; has a task/ directory.
-+ if test `ls /proc/$1/task | wc -l` -gt 1 2>/dev/null ; then
++ if test `/bin/ls /proc/$1/task | /usr/bin/wc -l` -gt 1 2>/dev/null ; then
+ backtrace="thread apply all bt"
+ fi
+elif test -f /proc/$1/maps ; then
+ # Older kernel; go by it loading libpthread.
-+ if grep -e libpthread /proc/$1/maps > /dev/null 2>&1 ; then
++ if /bin/grep -e libpthread /proc/$1/maps > /dev/null 2>&1 ; then
+ backtrace="thread apply all bt"
+ fi
+fi
+
-+GDB=${GDB:-gdb}
++GDB=${GDB:-/usr/bin/gdb}
+
+if $GDB -nx --quiet --batch --readnever > /dev/null 2>&1; then
+ readnever=--readnever
@@ -112,7 +111,131 @@
+set pagination no
+$backtrace
+EOF
-+sed -n \
-+ -e 's/^(gdb) //' \
++/bin/sed -n \
++ -e 's/^\((gdb) \)*//' \
+ -e '/^#/p' \
+ -e '/^Thread/p'
+Index: gdb-7.2/gdb/testsuite/gdb.base/gstack.exp
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.2/gdb/testsuite/gdb.base/gstack.exp 2010-09-03 09:38:12.000000000 +0200
+@@ -0,0 +1,71 @@
++# Copyright (C) 2010 Free Software Foundation, Inc.
++
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program. If not, see <http://www.gnu.org/licenses/>.
++
++set testfile gstack
++set executable ${testfile}
++set binfile ${objdir}/${subdir}/$executable
++if {[build_executable ${testfile} ${executable} "" {debug}] == -1} {
++ return -1
++}
++
++set test "spawn inferior"
++set command "${binfile}"
++set res [remote_spawn host $command];
++if { $res < 0 || $res == "" } {
++ perror "Spawning $command failed."
++ fail $test
++ return
++}
++set pid [exp_pid -i $res]
++gdb_expect {
++ -re "looping\r\n" {
++ pass $test
++ }
++ eof {
++ fail "$test (eof)"
++ return
++ }
++ timeout {
++ fail "$test (timeout)"
++ return
++ }
++}
++gdb_exit
++
++# Testcase uses the most simple notification not to get caught by attach on
++# exiting the function. Still we could retry the gstack command if we fail.
++
++set test "spawn gstack"
++set command "sh -c GDB=$GDB\\ sh\\ ${srcdir}/../gstack.sh\\ $pid\\;echo\\ GSTACK-END"
++set res [remote_spawn host $command];
++if { $res < 0 || $res == "" } {
++ perror "Spawning $command failed."
++ fail $test
++}
++set pid [exp_pid -i $res]
++gdb_expect {
++ -re {^#0 +0x[0-9a-f]+ in \.?func \(\)\r\n#1 +0x[0-9a-f]+ in \.?main \(\)\r\nGSTACK-END\r\n$} {
++ pass $test
++ }
++ eof {
++ fail "$test (eof)"
++ }
++ timeout {
++ fail "$test (timeout)"
++ }
++}
++gdb_exit
++
++remote_exec host "kill -9 $pid"
+Index: gdb-7.2/gdb/testsuite/gdb.base/gstack.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.2/gdb/testsuite/gdb.base/gstack.c 2010-09-03 09:38:12.000000000 +0200
+@@ -0,0 +1,43 @@
++/* This testcase is part of GDB, the GNU debugger.
++
++ Copyright 2005, 2007, 2008, 2009 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/>. */
++
++#include <stdio.h>
++#include <unistd.h>
++#include <string.h>
++
++void
++func (void)
++{
++ const char msg[] = "looping\n";
++
++ /* Use the most simple notification not to get caught by attach on exiting
++ the function. */
++ write (1, msg, strlen (msg));
++
++ for (;;);
++}
++
++int
++main (void)
++{
++ alarm (60);
++ nice (100);
++
++ func ();
++
++ return 0;
++}
================================================================
Index: packages/gdb/gdb-6.3-ia64-info-frame-fix-20050725.patch
diff -u packages/gdb/gdb-6.3-ia64-info-frame-fix-20050725.patch:1.1 packages/gdb/gdb-6.3-ia64-info-frame-fix-20050725.patch:1.2
--- packages/gdb/gdb-6.3-ia64-info-frame-fix-20050725.patch:1.1 Mon Mar 23 00:27:54 2009
+++ packages/gdb/gdb-6.3-ia64-info-frame-fix-20050725.patch Fri Oct 15 19:16:36 2010
@@ -41,7 +41,7 @@
+
--- gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.exp.fix 2005-07-25 16:42:50.000000000 -0400
+++ gdb-6.3/gdb/testsuite/gdb.arch/ia64-sigtramp.exp 2005-07-25 16:42:01.000000000 -0400
-@@ -0,0 +1,66 @@
+@@ -0,0 +1,63 @@
+# Copyright 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
@@ -63,16 +63,6 @@
+
+# This file was written by Jeff Johnston (jjohnstn at redhat.com)
+
-+if $tracelevel then {
-+ strace $tracelevel
-+}
-+
-+#
-+# test running programs
-+#
-+set prms_id 0
-+set bug_id 0
-+
+if ![istarget "ia64-*-*"] then {
+ return
+}
@@ -90,7 +80,10 @@
+}
+
+gdb_exit
++set match_max_old [match_max]
++match_max -d 1000000
+gdb_start
++match_max -d $match_max_old
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
@@ -106,5 +99,9 @@
+gdb_test "continue" "Breakpoint.*x.*" "continue to x"
+
+gdb_test "f 1" ".*signal handler called.*" "frame 1"
-+gdb_test "info frame" "Stack level 1.*p63 at .*" "info sigtramp frame"
-+
++
++# gdb-7.0+ no longer prints the pseudo registers as they are computed.
++# frame_info says: /* For moment, only display registers that were saved on the
++# stack. */
++gdb_test "set debug frame 1"
++gdb_test "info frame" "Stack level 1, .*frame_unwind_register_value \\(frame=1,regnum=750\\(p63\\),\[^\r\n\]*\r\n\[^\r\n\]*-> computed bytes=.*" "info sigtramp frame"
================================================================
Index: packages/gdb/gdb-6.3-ia64-sigill-20051115.patch
diff -u packages/gdb/gdb-6.3-ia64-sigill-20051115.patch:1.1 packages/gdb/gdb-6.3-ia64-sigill-20051115.patch:1.2
--- packages/gdb/gdb-6.3-ia64-sigill-20051115.patch:1.1 Mon Mar 23 00:27:54 2009
+++ packages/gdb/gdb-6.3-ia64-sigill-20051115.patch Fri Oct 15 19:16:36 2010
@@ -16,7 +16,7 @@
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ gdb-6.8.50.20081128/gdb/testsuite/gdb.arch/ia64-sigill.exp 2008-12-02 21:10:57.000000000 +0100
-@@ -0,0 +1,59 @@
+@@ -0,0 +1,49 @@
+# Copyright 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
@@ -37,16 +37,6 @@
+# bug-gdb at prep.ai.mit.edu
+
+# This file was written by Jeff Johnston (jjohnstn at redhat.com)
-+
-+if $tracelevel then {
-+ strace $tracelevel
-+}
-+
-+#
-+# test running programs
-+#
-+set prms_id 0
-+set bug_id 0
+
+if ![istarget "ia64-*-*"] then {
+ return
================================================================
Index: packages/gdb/gdb-6.3-ia64-sigtramp-frame-20050708.patch
diff -u packages/gdb/gdb-6.3-ia64-sigtramp-frame-20050708.patch:1.1 packages/gdb/gdb-6.3-ia64-sigtramp-frame-20050708.patch:1.2
--- packages/gdb/gdb-6.3-ia64-sigtramp-frame-20050708.patch:1.1 Mon Mar 23 00:27:55 2009
+++ packages/gdb/gdb-6.3-ia64-sigtramp-frame-20050708.patch Fri Oct 15 19:16:36 2010
@@ -29,7 +29,7 @@
+ ULONGEST unatN_val;
+ ULONGEST unat;
+ read_memory (cache->saved_regs[IA64_UNAT_REGNUM], (char *) &unat,
-+ register_size (current_gdbarch, IA64_UNAT_REGNUM));
++ register_size (target_gdbarch, IA64_UNAT_REGNUM));
+ unatN_val = (unat & (1LL << (regnum - IA64_NAT0_REGNUM))) != 0;
+ return frame_unwind_got_constant (this_frame, regnum, unatN_val);
+ }
@@ -45,9 +45,9 @@
+ CORE_ADDR gr_addr = 0, nat_addr = 0;
+
+ read_memory (cache->saved_regs[IA64_BSP_REGNUM], (char *) &bsp,
-+ register_size (current_gdbarch, IA64_BSP_REGNUM));
++ register_size (target_gdbarch, IA64_BSP_REGNUM));
+ read_memory (cache->saved_regs[IA64_CFM_REGNUM], (char *) &cfm,
-+ register_size (current_gdbarch, IA64_CFM_REGNUM));
++ register_size (target_gdbarch, IA64_CFM_REGNUM));
+
+ /* The bsp points at the end of the register frame so we
+ subtract the size of frame from it to get start of register frame. */
@@ -71,10 +71,10 @@
+ nat_addr = cache->saved_regs[IA64_RNAT_REGNUM];
+ if (nat_addr != 0)
+ read_memory (nat_addr, (char *) &nat_collection,
-+ register_size (current_gdbarch, IA64_RNAT_REGNUM));
++ register_size (target_gdbarch, IA64_RNAT_REGNUM));
+ }
+ else
-+ nat_collection = read_memory_integer (nat_addr, 8);
++ nat_collection = read_memory_integer (nat_addr, 8, BFD_ENDIAN_LITTLE);
+ if (nat_addr != 0)
+ {
+ nat_bit = (gr_addr >> 3) & 0x3f;
@@ -97,9 +97,9 @@
+ ULONGEST bof;
+
+ read_memory (cache->saved_regs[IA64_BSP_REGNUM], (char *) &bsp,
-+ register_size (current_gdbarch, IA64_BSP_REGNUM));
++ register_size (target_gdbarch, IA64_BSP_REGNUM));
+ read_memory (cache->saved_regs[IA64_CFM_REGNUM], (char *) &cfm,
-+ register_size (current_gdbarch, IA64_CFM_REGNUM));
++ register_size (target_gdbarch, IA64_CFM_REGNUM));
+
+ /* The bsp points at the end of the register frame so we
+ subtract the size of frame from it to get beginning of frame. */
@@ -133,9 +133,9 @@
+ ULONGEST cfm;
+ ULONGEST prN_val;
+ read_memory (pr_addr, (char *) &pr,
-+ register_size (current_gdbarch, IA64_PR_REGNUM));
++ register_size (target_gdbarch, IA64_PR_REGNUM));
+ read_memory (cache->saved_regs[IA64_CFM_REGNUM], (char *) &cfm,
-+ register_size (current_gdbarch, IA64_CFM_REGNUM));
++ register_size (target_gdbarch, IA64_CFM_REGNUM));
+
+ /* Get the register rename base for this frame and adjust the
+ * register name to take rotation into account. */
================================================================
Index: packages/gdb/gdb-6.3-inferior-notification-20050721.patch
diff -u packages/gdb/gdb-6.3-inferior-notification-20050721.patch:1.1 packages/gdb/gdb-6.3-inferior-notification-20050721.patch:1.2
--- packages/gdb/gdb-6.3-inferior-notification-20050721.patch:1.1 Mon Mar 23 00:27:55 2009
+++ packages/gdb/gdb-6.3-inferior-notification-20050721.patch Fri Oct 15 19:16:36 2010
@@ -38,7 +38,7 @@
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ gdb-6.8.50.20081128/gdb/testsuite/gdb.base/attach-32.exp 2008-12-07 10:08:52.000000000 +0100
-@@ -0,0 +1,252 @@
+@@ -0,0 +1,245 @@
+# Copyright 2005 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
@@ -56,13 +56,6 @@
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# This test was based on attach.exp and modified for 32/64 bit Linux systems. */
-+
-+if $tracelevel then {
-+ strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
+
+# On HP-UX 11.0, this test is causing a process running the program
+# "attach" to be left around spinning. Until we figure out why, I am
================================================================
Index: packages/gdb/gdb-6.3-inheritancetest-20050726.patch
diff -u packages/gdb/gdb-6.3-inheritancetest-20050726.patch:1.2 packages/gdb/gdb-6.3-inheritancetest-20050726.patch:1.3
--- packages/gdb/gdb-6.3-inheritancetest-20050726.patch:1.2 Tue Dec 8 00:29:15 2009
+++ packages/gdb/gdb-6.3-inheritancetest-20050726.patch Fri Oct 15 19:16:36 2010
@@ -62,7 +62,7 @@
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ gdb-6.8.50.20090811/gdb/testsuite/gdb.cp/b146835.exp 2009-08-12 06:58:28.000000000 +0200
-@@ -0,0 +1,54 @@
+@@ -0,0 +1,47 @@
+# This testcase is part of GDB, the GNU debugger.
+
+# Copyright 2005 Free Software Foundation, Inc.
@@ -83,13 +83,6 @@
+
+# Check that GDB can properly print an inherited member variable
+# (Bugzilla 146835)
-+
-+if $tracelevel {
-+ strace $tracelevel
-+}
-+
-+set prms_id 0
-+set bug_id 0
+
+set testfile "b146835"
+set srcfile ${testfile}.cc
================================================================
Index: packages/gdb/gdb-6.3-large-core-20051206.patch
diff -u packages/gdb/gdb-6.3-large-core-20051206.patch:1.2 packages/gdb/gdb-6.3-large-core-20051206.patch:1.3
--- packages/gdb/gdb-6.3-large-core-20051206.patch:1.2 Tue Dec 8 00:29:15 2009
+++ packages/gdb/gdb-6.3-large-core-20051206.patch Fri Oct 15 19:16:36 2010
@@ -25,11 +25,11 @@
Port to GDB-6.7.
-Index: gdb-6.8.50.20090909/gdb/symfile-mem.c
+Index: gdb-7.1.90.20100711/gdb/symfile-mem.c
===================================================================
---- gdb-6.8.50.20090909.orig/gdb/symfile-mem.c 2009-07-02 19:21:06.000000000 +0200
-+++ gdb-6.8.50.20090909/gdb/symfile-mem.c 2009-09-09 19:06:57.000000000 +0200
-@@ -56,6 +56,14 @@
+--- gdb-7.1.90.20100711.orig/gdb/symfile-mem.c 2010-01-01 08:31:42.000000000 +0100
++++ gdb-7.1.90.20100711/gdb/symfile-mem.c 2010-07-12 10:46:24.000000000 +0200
+@@ -57,6 +57,14 @@
#include "elf/common.h"
@@ -44,7 +44,7 @@
/* Read inferior memory at ADDR to find the header of a loaded object file
and read its in-core symbols out of inferior memory. TEMPL is a bfd
representing the target's format. NAME is the name to use for this
-@@ -76,7 +84,7 @@ symbol_file_add_from_memory (struct bfd
+@@ -77,7 +85,7 @@ symbol_file_add_from_memory (struct bfd
error (_("add-symbol-file-from-memory not supported for this target"));
nbfd = bfd_elf_bfd_from_remote_memory (templ, addr, &loadbase,
@@ -53,20 +53,20 @@
if (nbfd == NULL)
error (_("Failed to read a valid object file image from memory."));
-Index: gdb-6.8.50.20090909/gdb/target.c
+Index: gdb-7.1.90.20100711/gdb/target.c
===================================================================
---- gdb-6.8.50.20090909.orig/gdb/target.c 2009-09-09 19:05:56.000000000 +0200
-+++ gdb-6.8.50.20090909/gdb/target.c 2009-09-09 19:08:11.000000000 +0200
-@@ -59,7 +59,7 @@ static int nosymbol (char *, CORE_ADDR *
+--- gdb-7.1.90.20100711.orig/gdb/target.c 2010-07-12 10:00:56.000000000 +0200
++++ gdb-7.1.90.20100711/gdb/target.c 2010-07-12 10:47:04.000000000 +0200
+@@ -58,7 +58,7 @@ static int nosymbol (char *, CORE_ADDR *
- static void tcomplain (void) ATTR_NORETURN;
+ static void tcomplain (void) ATTRIBUTE_NORETURN;
-static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *);
+static LONGEST nomemory (CORE_ADDR, char *, int, int, struct target_ops *);
static int return_zero (void);
-@@ -492,7 +492,7 @@ target_terminal_inferior (void)
+@@ -513,7 +513,7 @@ target_terminal_inferior (void)
(*current_target.to_terminal_inferior) ();
}
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-attach-see-vdso-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-bt-past-zero-20051201.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-bz140532-ppc-unwinding-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-gstack-20050411.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-ia64-info-frame-fix-20050725.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-ia64-sigill-20051115.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-ia64-sigtramp-frame-20050708.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-inferior-notification-20050721.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-inheritancetest-20050726.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-large-core-20051206.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-readnever-20050907.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-rh-testversion-20041202.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-security-errata-20050610.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-step-thread-exit-20050211-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-test-dtorfix-20050121.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-test-movedir-20050125.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-test-pie-20050107.patch?r1=1.3&r2=1.4&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.3-threaded-watchpoints2-20050225.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-bz203661-emit-relocs.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-bz216711-clone-is-outermost.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-bz243845-stale-testing-zombie-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-dwarf-stack-overflow.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-gcore-buffer-limit-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-ia64-libunwind-leak-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.5-missed-trap-on-step-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-buildid-locate-rpm.patch?r1=1.4&r2=1.5&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-buildid-locate.patch?r1=1.4&r2=1.5&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-bz229517-gcore-without-terminal.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-bz235197-fork-detach-info.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-scheduler_locking-step-is-default.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.6-threads-static-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.7-bz426600-DW_TAG_interface_type-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.7-charsign-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.7-ppc-clobbered-registers-O2-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.7-testsuite-stable-results.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.8-attach-signalled-detach-stopped.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.8-bz254229-gcore-prpsinfo.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.8-bz457187-largefile-test.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.8-bz466901-backtrace-full-prelinked.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-6.8-fortran-tag-constant.patch?r1=1.2&r2=1.3&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-archer-pie-addons.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-archer.patch?r1=1.4&r2=1.5&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-core-open-vdso-warning.patch?r1=1.1&r2=1.2&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb-info.patch?r1=1.9&r2=1.10&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb.spec?r1=1.129&r2=1.130&f=u
More information about the pld-cvs-commit
mailing list