Commit Graph

84371 Commits

Author SHA1 Message Date
GDB Administrator
1eda0a43df Automatic date update in version.in 2015-10-05 00:00:25 +00:00
GDB Administrator
31f601b9d5 Automatic date update in version.in 2015-10-04 00:00:31 +00:00
GDB Administrator
8b064c652d Automatic date update in version.in 2015-10-03 00:00:31 +00:00
GDB Administrator
fb28718376 Automatic date update in version.in 2015-10-02 00:00:27 +00:00
GDB Administrator
fb961a3831 Automatic date update in version.in 2015-10-01 00:00:37 +00:00
GDB Administrator
13ee570ecf Automatic date update in version.in 2015-09-30 00:00:26 +00:00
GDB Administrator
ff720a983b Automatic date update in version.in 2015-09-29 00:00:23 +00:00
GDB Administrator
d67b05090b Automatic date update in version.in 2015-09-28 00:00:29 +00:00
GDB Administrator
14fbc6b96d Automatic date update in version.in 2015-09-27 00:00:24 +00:00
GDB Administrator
42e294dd10 Automatic date update in version.in 2015-09-26 00:00:29 +00:00
GDB Administrator
99c84c8f4d Automatic date update in version.in 2015-09-25 00:00:25 +00:00
GDB Administrator
169bcce707 Automatic date update in version.in 2015-09-24 00:00:33 +00:00
GDB Administrator
935fcae11a Automatic date update in version.in 2015-09-23 00:00:23 +00:00
GDB Administrator
924c868252 Automatic date update in version.in 2015-09-22 00:00:26 +00:00
GDB Administrator
883ab1278b Automatic date update in version.in 2015-09-21 00:00:29 +00:00
GDB Administrator
b37fa5a2cf Automatic date update in version.in 2015-09-20 00:00:34 +00:00
GDB Administrator
32733b89ed Automatic date update in version.in 2015-09-19 00:00:25 +00:00
GDB Administrator
78fc1068f0 Automatic date update in version.in 2015-09-18 00:00:25 +00:00
GDB Administrator
8b518c24e9 Automatic date update in version.in 2015-09-17 00:00:30 +00:00
GDB Administrator
2dfdc67d32 Automatic date update in version.in 2015-09-16 00:00:24 +00:00
Pedro Alves
9c53c9a4a2 gdb/doc: revert previous vforkdone change
The previous manual change was wrong.  The vfork parent thread ID
should be reported with the usual "thread" magic register:

   Sending packet: $vCont;c:p7260.7260#1e...Packet received: OK
 -   Notification received: Stop:T05vforkdone:;
 +   Notification received: Stop:T05vforkdone:;thread:p7260.7260
                                               ^^^^^^^^^^^^^^^^^

This is already how the parent is reported in the vfork/fork events,
and is actually what the fix made gdbserver do.  Following the
documentation change, the event would have been reported like this
instead:

    Notification received: Stop:T05vforkdone:p7260.7260

gdb/doc/ChangeLog:
2015-09-15  Pedro Alves  <palves@redhat.com>

	PR remote/18965
	* gdb.texinfo (Stop Reply Packets): Revert previous change to
	the vforkdone description.
2015-09-15 19:35:56 +01:00
Pedro Alves
487bf2f706 PR remote/18965: vforkdone stop reply should indicate parent PID
The vforkdone stop reply misses indicating the thread ID of the vfork
parent which the event relates to:

 @cindex vfork events, remote reply
 @item vfork
 The packet indicates that @code{vfork} was called, and @var{r}
 is the thread ID of the new child process. Refer to
 @ref{thread-id syntax} for the format of the @var{thread-id}
 field.  This packet is only applicable to targets that support
 vfork events.

 @cindex vforkdone events, remote reply
 @item vforkdone
 The packet indicates that a child process created by a vfork
 has either called @code{exec} or terminated, so that the
 address spaces of the parent and child process are no longer
 shared. The @var{r} part is ignored.  This packet is only
 applicable to targets that support vforkdone events.

Unfortunately, this is not just a documentation issue.  GDBserver
is really not specifying the thread ID.  I noticed because
in non-stop mode, gdb complains:

 [Thread 6089.6089] #1 stopped.
 #0  0x0000003615a011f0 in ?? ()
 0x0000003615a011f0 in ?? ()
 (gdb) set debug remote 1
 (gdb) c
 Continuing.
 Sending packet: $QPassSignals:e;10;14;17;1a;1b;1c;21;24;25;2c;4c;#5f...Packet received: OK
 Sending packet: $vCont;c:p17c9.17c9#88...Packet received: OK
   Notification received: Stop:T05vfork:p17ce.17ce;06:40d7ffffff7f0000;07:30d7ffffff7f0000;10:e4c9eb1536000000;thread:p17c9.17c9;core:2;
 Sending packet: $vStopped#55...Packet received: OK
 Sending packet: $D;17ce#af...Packet received: OK
 Sending packet: $vCont;c:p17c9.17c9#88...Packet received: OK
   Notification received: Stop:T05vforkdone:;
 No process or thread specified in stop reply: T05vforkdone:;
 (gdb)

This is not non-stop-mode-specific, however.  Consider e.g., that in
all-stop, you may be debugging more than one process at the same time.
You continue, and both processes vfork.  So when you next get a
T05vforkdone, there's no way to tell which of the parent processes is
done with the vfork.

Tests will be added later.

Tested on x86_64 Fedora 20.

gdb/gdbserver/ChangeLog:
2015-09-15  Pedro Alves  <palves@redhat.com>

	PR remote/18965
	* remote-utils.c (prepare_resume_reply): Merge
	TARGET_WAITKIND_VFORK_DONE switch case with the
	TARGET_WAITKIND_FORKED case.

gdb/doc/ChangeLog:
2015-09-15  Pedro Alves  <palves@redhat.com>

	PR remote/18965
	* gdb.texinfo (Stop Reply Packets): Explain that vforkdone's 'r'
	part indicates the thread ID of the parent process.
2015-09-15 17:45:26 +01:00
GDB Administrator
8f1d470248 Automatic date update in version.in 2015-09-15 00:00:25 +00:00
Gary Benson
a8c636cb54 Fix build issue with nat/linux-namespaces.c
This commit fixes a build issue on systems with a prototype for setns
in their header files but no working setns is detected by configure.

gdb/ChangeLog:

	PR gdb/18957
	* nat/linux-namespaces.c (setns): Rename from this ...
	(do_setns): ... to this.  Support calling setns if it exists.
	(mnsh_handle_setns): Call do_setns.
2015-09-14 11:02:06 +01:00
GDB Administrator
2928b1844d Automatic date update in version.in 2015-09-14 00:00:31 +00:00
GDB Administrator
8011d680c8 Automatic date update in version.in 2015-09-13 00:00:29 +00:00
GDB Administrator
b5eaa25e19 Automatic date update in version.in 2015-09-12 00:00:24 +00:00
GDB Administrator
d9018fcbe4 Automatic date update in version.in 2015-09-11 00:00:26 +00:00
GDB Administrator
fb1645ee60 Automatic date update in version.in 2015-09-10 00:00:25 +00:00
GDB Administrator
b310d39dd7 Automatic date update in version.in 2015-09-09 00:00:24 +00:00
GDB Administrator
b4c34d6c3d Automatic date update in version.in 2015-09-08 00:00:28 +00:00
GDB Administrator
ed23c559e8 Automatic date update in version.in 2015-09-07 00:00:30 +00:00
GDB Administrator
e59f2de1ac Automatic date update in version.in 2015-09-06 00:00:48 +00:00
GDB Administrator
f0696724f9 Automatic date update in version.in 2015-09-05 00:00:25 +00:00
GDB Administrator
2ed19d6656 Automatic date update in version.in 2015-09-04 00:00:25 +00:00
GDB Administrator
a2be137bb6 Automatic date update in version.in 2015-09-03 00:00:31 +00:00
GDB Administrator
15134533af Automatic date update in version.in 2015-09-02 00:00:35 +00:00
GDB Administrator
d3908ed37f Automatic date update in version.in 2015-09-01 00:00:24 +00:00
GDB Administrator
627b650e78 Automatic date update in version.in 2015-08-31 00:00:25 +00:00
GDB Administrator
7778100946 Automatic date update in version.in 2015-08-30 00:00:25 +00:00
GDB Administrator
2e106bef86 Automatic date update in version.in 2015-08-29 00:00:28 +00:00
Joel Brobecker
731da5a0b3 Bump GDB version number to 7.10.0.DATE-cvs.
gdb/ChangeLog:

	* version.in: Set GDB version number to 7.10.0.DATE-cvs.
2015-08-28 17:40:58 -04:00
Joel Brobecker
e79ede2a14 Document the GDB 7.10 release in gdb/ChangeLog
gdb/ChangeLog:

	GDB 7.10 released.
2015-08-28 17:37:57 -04:00
Joel Brobecker
80f340df6a Set GDB version number to 7.10.
gdb/ChangeLog:

	* version.in: Set GDB version number to 7.10.
gdb-7.10-release
2015-08-28 17:25:52 -04:00
Joel Brobecker
3c2ae1bb39 gdb/NEWS: Rename "Changes since GDB 7.9" into "Changes in GDB 7.10"
This is in preparation for the GDB 7.10 release.

gdb/ChangeLog:

        * NEWS: Rename "Changes since GDB 7.9" into "Changes in GDB 7.10".
2015-08-28 17:19:19 -04:00
GDB Administrator
d73236e449 Automatic date update in version.in 2015-08-28 00:00:30 +00:00
GDB Administrator
ea2cf973b8 Automatic date update in version.in 2015-08-27 00:00:31 +00:00
GDB Administrator
df206f17ea Automatic date update in version.in 2015-08-26 00:00:27 +00:00
Jan Kratochvil
3ba0344e56 signal_command: Leftover cleanup chain regression
gdb/ChangeLog
2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* infcmd.c (signal_command): Call do_cleanups for args_chain.
2015-08-25 17:45:58 +02:00
Jan Kratochvil
fa68327bb4 ASAN attach crash - 7.9 regression
-fsanitize=address
gdb.base/attach-pie-noexec.exp

==32586==ERROR: AddressSanitizer: heap-use-after-free on address 0x60200004ed90 at pc 0x48ad50 bp 0x7ffceb3aef50 sp 0x7ffceb3aef20
READ of size 2 at 0x60200004ed90 thread T0
    #0 0x48ad4f in __interceptor_strlen (/home/jkratoch/redhat/gdb-test-asan/gdb/gdb+0x48ad4f)
    #1 0xeafe5c in xstrdup xstrdup.c:33
    #2 0x85e024 in attach_command /home/jkratoch/redhat/gdb-test-asan/gdb/infcmd.c:2680

regressed by:

commit 6c4486e63f
Author: Pedro Alves <palves@redhat.com>
Date:   Fri Oct 17 13:31:26 2014 +0100
    PR gdb/17471: Repeating a background command makes it foreground

gdb/ChangeLog
2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>

	PR gdb/18767
	* infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
	use.
2015-08-25 17:45:08 +02:00