This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa/doc/threads] thread breakpoints and system calls


> Date: Sun, 26 Oct 2003 09:59:25 -0500
> From: Michael Elizabeth Chastain <mec@shout.net>
> 
> Looking for approval from a thread guy such as Daniel J for content,
> and Eli Z for syntax.

Approved, with one gotcha: the GNU project standards discourage the
use of ``illegal'' for anything other than actions that break the law.
So I would rewrite the following sentence:

> + It is legal behavior for a system call to return early, so @value{GDBN}
> + does not cause your program to behave illegally.

like this:

  It is perfectly okay for a system call to return early, so @value{GDBN}
  does not cause your problem to behave erratically.

I would also suggest to add that the early return is due to a signal
(SIGTRAP, right?) caused by the breaking breakpoint.  This will help
programmers who know that a system call can return early due to a
signal to understand better what's going on.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]