This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH] Fix for gdb.server/non-existing-program.exp test case


Carl Love wrote:

> I fixed up the comment per your suggestion.  Not sure what happened with
> the formatting. See if this looks better.

> +  /* The last_status.kind was set by the call to ptrace(PTRACE_TRACEME, ...).
> +     The function linux_wait() has also been called.  At this point, the
> +     target process, if it exits, is stopped.  Do not call the function
> +     target_post_create_inferior if the process has already exited, as the
> +     target implementation of the routine may rely on the process being live.
> +  */

Formatting looks OK now, except that the trailing */ should not be on a
separate line; see other multi-line comments how those should look like.

However, the comment still mentions ptrace and linux_wait, which is also
only true on Linux targets.  I'd just leave that off.

Patch is OK with that change.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com


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