Hello community,
here is the log from the commit of package gdb
checked in at Thu Nov 20 16:44:04 CET 2008.
--------
--- gdb/gdb.changes 2008-11-09 19:19:38.000000000 +0100
+++ /mounts/work_src_done/STABLE/gdb/gdb.changes 2008-11-20 16:34:04.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Nov 20 16:33:45 CET 2008 - schwab@suse.de
+
+- Update to head of trunk.
+- Don't lose running state of the inferior.
+- Fix dangling pointers after following fork.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
gdb-6.8.50.20081115-cvs.tar.bz2
power7.diff
power7-gdbserver.diff
New:
----
gdb-6.8.50.20081120-cvs.tar.bz2
resume.diff
startup-inferior.diff
testsuite.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gdb.spec ++++++
--- /var/tmp/diff_new_pack.ks6940/_old 2008-11-20 16:41:15.000000000 +0100
+++ /var/tmp/diff_new_pack.ks6940/_new 2008-11-20 16:41:15.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package gdb (Version 6.8.50.20081115)
+# spec file for package gdb (Version 6.8.50.20081120)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,7 +19,7 @@
Name: gdb
Summary: The GNU Debugger
-Version: 6.8.50.20081115
+Version: 6.8.50.20081120
Release: 1
BuildRequires: bison dejagnu flex gcc-c++ gcc-fortran gcc-java gcc-objc python-devel readline-devel zlib-devel
%if 0%{?suse_version} > 1020
@@ -56,8 +56,9 @@
Patch8: find-separate-debug-file.diff
Patch9: fix-gdb-backtrace.diff
Patch10: expand-line-sal-maybe.diff
-Patch11: power7.diff
-Patch12: power7-gdbserver.diff
+Patch11: startup-inferior.diff
+Patch12: resume.diff
+Patch13: testsuite.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -117,7 +118,7 @@
%prep
%setup -q -n %{name}-%{version}%{sss}
-%patch -p1
+%patch
%patch1
%patch3
%patch4
@@ -127,8 +128,9 @@
%patch8
%patch9
%patch10
-%patch11 -p1
-%patch12 -p1
+%patch11
+%patch12
+%patch13
%build
%ifarch %ix86 ia64 ppc ppc64 s390 s390x x86_64
@@ -205,6 +207,10 @@
%endif
%changelog
+* Thu Nov 20 2008 schwab@suse.de
+- Update to head of trunk.
+- Don't lose running state of the inferior.
+- Fix dangling pointers after following fork.
* Sun Nov 09 2008 schwab@suse.de
- Update .debug_line parser patch.
* Mon Nov 03 2008 schwab@suse.de
++++++ cell-combined.diff ++++++
++++ 1285 lines (skipped)
++++ between gdb/cell-combined.diff
++++ and /mounts/work_src_done/STABLE/gdb/cell-combined.diff
++++++ gdb-6.8.50.20081115-cvs.tar.bz2 -> gdb-6.8.50.20081120-cvs.tar.bz2 ++++++
gdb/gdb-6.8.50.20081115-cvs.tar.bz2 /mounts/work_src_done/STABLE/gdb/gdb-6.8.50.20081120-cvs.tar.bz2 differ: byte 11, line 1
++++++ resume.diff ++++++
2008-11-20 Pedro Alves
* infrun.c (resume): If following a fork, reread the current
thread. Avoid dereferencing a possibly dangling pointer.
--- gdb/infrun.c
+++ gdb/infrun.c
@@ -965,10 +965,13 @@ resume (int step, enum target_signal sig
{
int should_resume = 1;
struct cleanup *old_cleanups = make_cleanup (resume_cleanups, 0);
+
+ /* Note that these must be reset if we follow a fork below. */
struct regcache *regcache = get_current_regcache ();
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct thread_info *tp = inferior_thread ();
CORE_ADDR pc = regcache_read_pc (regcache);
+
QUIT;
if (debug_infrun)
@@ -1053,6 +1056,13 @@ a command like `return' or `jump' to con
pending_follow.kind = TARGET_WAITKIND_SPURIOUS;
if (follow_fork ())
should_resume = 0;
+
+ /* Following a child fork will change our notion of current
+ thread. */
+ tp = inferior_thread ();
+ regcache = get_current_regcache ();
+ gdbarch = get_regcache_arch (regcache);
+ pc = regcache_read_pc (regcache);
break;
case TARGET_WAITKIND_EXECD:
@@ -1148,11 +1158,11 @@ a command like `return' or `jump' to con
displaced_step_dump_bytes (gdb_stdlog, buf, sizeof (buf));
}
- target_resume (resume_ptid, step, sig);
-
/* Avoid confusing the next resume, if the next stop/resume
happens to apply to another thread. */
tp->stop_signal = TARGET_SIGNAL_0;
+
+ target_resume (resume_ptid, step, sig);
}
discard_cleanups (old_cleanups);
++++++ startup-inferior.diff ++++++
--- gdb/fork-child.c 10 Nov 2008 11:25:09 +0100 1.47
+++ gdb/fork-child.c 20 Nov 2008 14:27:26 +0100
@@ -494,6 +494,9 @@ startup_inferior (int ntraps)
resume_ptid = pid_to_ptid (-1);
else
resume_ptid = event_ptid;
+ /* Update running state now, in case an error occurs during
+ resume. */
+ set_running (resume_ptid, 0);
if (resume_signal != TARGET_SIGNAL_TRAP)
{
++++++ testsuite.diff ++++++
2008-11-20 Andreas Schwab
* gdb.base/foll-fork.exp (catch_fork_child_follow): Fix patterns
matching syscall entry point.
* gdb.base/foll-vfork.exp (tcatch_vfork_then_parent_follow)
(tcatch_vfork_then_child_follow): Likewise. Finish through
vfork even if we stopped at the syscall trampoline.
Index: gdb/testsuite/gdb.base/foll-fork.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/foll-fork.exp,v
retrieving revision 1.11
diff -u -a -p -u -p -a -r1.11 foll-fork.exp
--- gdb/testsuite/gdb.base/foll-fork.exp 16 Oct 2008 16:25:36 -0000 1.11
+++ gdb/testsuite/gdb.base/foll-fork.exp 20 Nov 2008 14:24:45 -0000
@@ -167,7 +167,7 @@ proc catch_fork_child_follow {} {
send_gdb "continue\n"
gdb_expect {
- -re "Catchpoint.*(forked process.*),.*in .*(fork|__kernel_vsyscall).*$gdb_prompt $"\
+ -re "Catchpoint.*(forked process.*),.*in .*(fork|__kernel_v?syscall).*$gdb_prompt $"\
{pass "explicit child follow, catch fork"}
-re "$gdb_prompt $" {fail "explicit child follow, catch fork"}
timeout {fail "(timeout) explicit child follow, catch fork"}
@@ -239,7 +239,7 @@ proc tcatch_fork_parent_follow {} {
send_gdb "continue\n"
gdb_expect {
- -re ".*in .*(fork|__kernel_vsyscall).*$gdb_prompt $"\
+ -re ".*in .*(fork|__kernel_v?syscall).*$gdb_prompt $"\
{pass "explicit parent follow, tcatch fork"}
-re "$gdb_prompt $" {fail "explicit parent follow, tcatch fork"}
timeout {fail "(timeout) explicit parent follow, tcatch fork"}
Index: gdb/testsuite/gdb.base/foll-vfork.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/foll-vfork.exp,v
retrieving revision 1.8
diff -u -a -p -u -p -a -r1.8 foll-vfork.exp
--- gdb/testsuite/gdb.base/foll-vfork.exp 29 Jan 2008 22:47:20 -0000 1.8
+++ gdb/testsuite/gdb.base/foll-vfork.exp 20 Nov 2008 14:24:45 -0000
@@ -264,7 +264,7 @@ proc tcatch_vfork_then_parent_follow {}
# HP-UX 10.20 seems to stop you in "vfork", while more recent HP-UXs
# stop you in "_vfork".
gdb_expect {
- -re "0x\[0-9a-fA-F\]*.*vfork.*$gdb_prompt "\
+ -re "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*$gdb_prompt "\
{pass "vfork parent follow, tcatch vfork"}
-re "vfork \\(\\) at.*$gdb_prompt "\
{pass "vfork parent follow, tcatch vfork"}
@@ -275,6 +275,10 @@ proc tcatch_vfork_then_parent_follow {}
gdb_expect {
-re "Run till exit from.*vfork.*0x\[0-9a-fA-F\]* in main .* at .*${srcfile}:12.*$gdb_prompt "\
{pass "vfork parent follow, finish after tcatch vfork"}
+ -re "Run till exit from.*__kernel_v?syscall.*0x\[0-9a-fA-F\]* in vfork .*$gdb_prompt " {
+ send_gdb "finish\n"
+ exp_continue
+ }
-re "$gdb_prompt $" {fail "vfork parent follow, finish after tcatch vfork"}
timeout {fail "(timeout) vfork parent follow, finish after tcatch vfork" }
}
@@ -308,9 +312,7 @@ proc tcatch_vfork_then_child_follow {} {
gdb_expect {
-re "vfork \\(\\) at .*$gdb_prompt $"\
{pass "vfork child follow, tcatch vfork"}
- -re "0x\[0-9a-fA-F\]*.*vfork.*$gdb_prompt "\
- {pass "vfork child follow, tcatch vfork"}
- -re "0x\[0-9a-fA-F\]*.*_vfork.*$gdb_prompt "\
+ -re "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*$gdb_prompt "\
{pass "vfork child follow, tcatch vfork"}
-re "$gdb_prompt $" {fail "vfork child follow, tcatch vfork"}
timeout {fail "(timeout) vfork child follow, tcatch vfork"}
@@ -319,6 +321,10 @@ proc tcatch_vfork_then_child_follow {} {
gdb_expect {
-re "Run till exit from.*vfork.*${srcfile}:12.*$gdb_prompt "\
{pass "vfork child follow, finish after tcatch vfork"}
+ -re "Run till exit from.*__kernel_v?syscall.*0x\[0-9a-fA-F\]* in vfork .*$gdb_prompt " {
+ send_gdb "finish\n"
+ exp_continue
+ }
-re "Run till exit from.*vfork.*${srcfile2}:9.*$gdb_prompt "\
{pass "vfork child follow, finish after tcatch vfork (followed exec)"}
-re "$gdb_prompt $" {fail "vfork child follow, finish after tcatch vfork"}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org