Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro_alves@portugalmail.pt>
To: gdb-patches@sourceware.org
Subject: Re: [rfc] Multiple process support in gdbserver
Date: Thu, 24 Jan 2008 01:50:00 -0000	[thread overview]
Message-ID: <4797EEC9.10100@portugalmail.pt> (raw)
In-Reply-To: <20071210153146.GA21899@caradoc.them.org>

Hi Daniel,

I'm finally looking at this very, very useful patch.

I've got a few small comments.

+      if (remote_exec_file == NULL)
+	error (_("Running the default executable on the remote target failed; "

It seems remote_exec_file can never be NULL.  Certainly you wanted to
check for empty string.

In gdbserver/linux-low.c, when you do this,

   free (all_processes.head);
   all_processes.head = all_processes.tail = NULL;

Isn't this leaking every ]all_processes.head, all_processes.tail]
if (all_processes.head != all_processes.tail) ?

shouldn't you be doing something like:

   for_each_inferiors (&all_processes, free_process);
   all_processes.head = all_processes.tail = NULL;

?

In addition to that, this almost works on Windows targets, we just
need to clean up the state when the inferiors are detached or
killed, like you're doing on linux.  If you prefer, I can post a
patch once this goes in.

-- 
Pedro Alves


  reply	other threads:[~2008-01-24  1:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-08 10:54 Daniel Jacobowitz
2007-12-08 15:29 ` Eli Zaretskii
2007-12-08 18:14   ` Daniel Jacobowitz
2007-12-10 15:34     ` Daniel Jacobowitz
2008-01-24  1:50       ` Pedro Alves [this message]
2008-01-30  0:55         ` Daniel Jacobowitz
2008-01-30  5:55           ` Eli Zaretskii
2008-01-30 13:18             ` Daniel Jacobowitz
2008-02-14 21:09           ` --multi support for Windows targets (Re: [rfc] Multiple process support in gdbserver) Pedro Alves
2008-02-14 21:15             ` Daniel Jacobowitz
2008-02-14 22:43               ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4797EEC9.10100@portugalmail.pt \
    --to=pedro_alves@portugalmail.pt \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox