This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch gdb-7.8-branch updated. gdb-7.8-release-30-g14adc93
- From: jkratoch at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 21 Aug 2014 18:42:56 -0000
- Subject: gdb and binutils branch gdb-7.8-branch updated. gdb-7.8-release-30-g14adc93
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, gdb-7.8-branch has been updated
via 14adc931130880d75eccc023cbaec68790960235 (commit)
from b75a5f0e444508bb375a7b389b1f8014ee682884 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=14adc931130880d75eccc023cbaec68790960235
commit 14adc931130880d75eccc023cbaec68790960235
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Aug 21 20:36:20 2014 +0200
Fix 'gcore' with exited threads
Program received signal SIGABRT, Aborted.
[...]
(gdb) gcore foobar
Couldn't get registers: No such process.
(gdb) info threads
[...]
(gdb) gcore foobar
Saved corefile foobar
(gdb)
gcore tries to access the exited thread:
[Thread 0x7ffff7fce700 (LWP 6895) exited]
ptrace(PTRACE_GETREGS, 6895, 0, 0x7fff18167dd0) = -1 ESRCH (No such process)
Without the TRY_CATCH protection testsuite FAILs for:
gcore .../gdb/testsuite/gdb.threads/gcore-thread0.test
Cannot find new threads: debugger service failed
(gdb) FAIL: gdb.threads/gcore-thread.exp: save a zeroed-threads corefile
+
core .../gdb/testsuite/gdb.threads/gcore-thread0.test
".../gdb/testsuite/gdb.threads/gcore-thread0.test" is not a core dump: File format not recognized
(gdb) FAIL: gdb.threads/gcore-thread.exp: core0file: re-load generated corefile (bad file format)
Maybe the TRY_CATCH could be more inside update_thread_list().
Similar update_thread_list() call is IMO missing in procfs_make_note_section()
but I do not have where to verify that change.
gdb/ChangeLog
2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
* linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
(linux_make_corefile_notes): call update_thread_list, protected against
exceptions.
gdb/testsuite/ChangeLog
2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.threads/gcore-stale-thread.c: New file.
* gdb.threads/gcore-stale-thread.exp: New file.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 6 ++
gdb/linux-tdep.c | 12 +++++
gdb/testsuite/ChangeLog | 5 ++
gdb/testsuite/gdb.threads/gcore-stale-thread.c | 48 ++++++++++++++++++
gdb/testsuite/gdb.threads/gcore-stale-thread.exp | 57 ++++++++++++++++++++++
5 files changed, 128 insertions(+), 0 deletions(-)
create mode 100644 gdb/testsuite/gdb.threads/gcore-stale-thread.c
create mode 100644 gdb/testsuite/gdb.threads/gcore-stale-thread.exp
hooks/post-receive
--
gdb and binutils