* [RFA] Improve comment in linux-low.c:handle_extended_wait
@ 2008-12-13 21:31 Doug Evans
2008-12-18 19:19 ` Michael Snyder
2008-12-18 19:25 ` Daniel Jacobowitz
0 siblings, 2 replies; 4+ messages in thread
From: Doug Evans @ 2008-12-13 21:31 UTC (permalink / raw)
To: gdb-patches
Hi.
This is a minor cleanup to a comment.
What "it" is isn't clear.
Ok to check in?
2008-12-13 Doug Evans <dje@google.com>
* linux-low.c (handle_extended_wait): Improve comment.
Index: linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.84
diff -u -p -r1.84 linux-low.c
--- linux-low.c 12 Dec 2008 23:14:28 -0000 1.84
+++ linux-low.c 13 Dec 2008 21:28:12 -0000
@@ -180,7 +180,8 @@ handle_extended_wait (struct process_inf
/* Normally we will get the pending SIGSTOP. But in some cases
we might get another signal delivered to the group first.
- If we do, be sure not to lose it. */
+ If we do get another signal, be sure not to lose the SIGSTOP:
+ when we later get it we'll want to resume. */
if (WSTOPSIG (status) == SIGSTOP)
{
if (stopping_threads)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFA] Improve comment in linux-low.c:handle_extended_wait
2008-12-13 21:31 [RFA] Improve comment in linux-low.c:handle_extended_wait Doug Evans
@ 2008-12-18 19:19 ` Michael Snyder
2008-12-18 19:25 ` Daniel Jacobowitz
1 sibling, 0 replies; 4+ messages in thread
From: Michael Snyder @ 2008-12-18 19:19 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb-patches
Looks fine.
Doug Evans wrote:
> Hi.
>
> This is a minor cleanup to a comment.
> What "it" is isn't clear.
>
> Ok to check in?
>
> 2008-12-13 Doug Evans <dje@google.com>
>
> * linux-low.c (handle_extended_wait): Improve comment.
>
> Index: linux-low.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
> retrieving revision 1.84
> diff -u -p -r1.84 linux-low.c
> --- linux-low.c 12 Dec 2008 23:14:28 -0000 1.84
> +++ linux-low.c 13 Dec 2008 21:28:12 -0000
> @@ -180,7 +180,8 @@ handle_extended_wait (struct process_inf
>
> /* Normally we will get the pending SIGSTOP. But in some cases
> we might get another signal delivered to the group first.
> - If we do, be sure not to lose it. */
> + If we do get another signal, be sure not to lose the SIGSTOP:
> + when we later get it we'll want to resume. */
> if (WSTOPSIG (status) == SIGSTOP)
> {
> if (stopping_threads)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFA] Improve comment in linux-low.c:handle_extended_wait
2008-12-13 21:31 [RFA] Improve comment in linux-low.c:handle_extended_wait Doug Evans
2008-12-18 19:19 ` Michael Snyder
@ 2008-12-18 19:25 ` Daniel Jacobowitz
2009-01-06 0:24 ` Doug Evans
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2008-12-18 19:25 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb-patches
On Sat, Dec 13, 2008 at 01:30:41PM -0800, Doug Evans wrote:
> Hi.
>
> This is a minor cleanup to a comment.
> What "it" is isn't clear.
>
> Ok to check in?
Actually, I meant "be sure not to lose the other signal". We
previously would just stop and think we'd gotten the SIGSTOP.
But your version is equally valid.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFA] Improve comment in linux-low.c:handle_extended_wait
2008-12-18 19:25 ` Daniel Jacobowitz
@ 2009-01-06 0:24 ` Doug Evans
0 siblings, 0 replies; 4+ messages in thread
From: Doug Evans @ 2009-01-06 0:24 UTC (permalink / raw)
To: gdb-patches, Michael Snyder
On Thu, Dec 18, 2008 at 11:24 AM, Daniel Jacobowitz <drow@false.org> wrote:
> On Sat, Dec 13, 2008 at 01:30:41PM -0800, Doug Evans wrote:
>> Hi.
>>
>> This is a minor cleanup to a comment.
>> What "it" is isn't clear.
>>
>> Ok to check in?
>
> Actually, I meant "be sure not to lose the other signal". We
> previously would just stop and think we'd gotten the SIGSTOP.
> But your version is equally valid.
I checked in this version.
2008-12-13 Doug Evans <dje@google.com>
* linux-low.c (handle_extended_wait): Improve comment.
Index: linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.87
diff -u -p -r1.87 linux-low.c
--- linux-low.c 5 Jan 2009 23:11:48 -0000 1.87
+++ linux-low.c 6 Jan 2009 00:14:03 -0000
@@ -180,7 +180,7 @@ handle_extended_wait (struct process_inf
/* Normally we will get the pending SIGSTOP. But in some cases
we might get another signal delivered to the group first.
- If we do, be sure not to lose it. */
+ If we do get another signal, be sure not to lose it. */
if (WSTOPSIG (status) == SIGSTOP)
{
if (stopping_threads)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-06 0:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-13 21:31 [RFA] Improve comment in linux-low.c:handle_extended_wait Doug Evans
2008-12-18 19:19 ` Michael Snyder
2008-12-18 19:25 ` Daniel Jacobowitz
2009-01-06 0:24 ` Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox