From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Aleksandar Ristovski <aristovski@qnx.com>
Subject: Re: [patch] gdbserver: qXfer multiprocess
Date: Wed, 17 Jun 2009 18:04:00 -0000 [thread overview]
Message-ID: <200906171905.13381.pedro@codesourcery.com> (raw)
In-Reply-To: <4A39258E.2000506@qnx.com>
On Wednesday 17 June 2009 18:19:10, Aleksandar Ristovski wrote:
> Here is a patch that does what you described.
Thanks. This is still not complete, though.
You need to make sure that the "multi_process" flag stays turned off
if the backend doesn't support MP, otherwise, things like
remote-utils.c:write_ptid will still misbehave (gdb will realize the
target doesn't support multi-process, but the remote target will
be replying with multi-process packets, how odd would that be?!).
That flag is currently bound to GDB's multi-process support,
because current gdbserver is assuming all backends support mp.
/* Record if GDB knows about multiprocess support. */
if (strcmp (p, "multiprocess+") == 0)
multi_process = 1;
To see this in action, you can connect with
"target extended-remote :foo"/"set debug remote 1", and make sure that
the packets flowing in both directions don't use multi-process thread
id extensions (e.g., 'p1.1' vs '1').
--
Pedro Alves
next prev parent reply other threads:[~2009-06-17 18:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-16 20:10 Aleksandar Ristovski
2009-06-16 21:09 ` Pedro Alves
2009-06-17 0:56 ` Aleksandar Ristovski
2009-06-17 1:04 ` Pedro Alves
2009-06-17 1:17 ` Aleksandar Ristovski
2009-06-17 17:19 ` Aleksandar Ristovski
2009-06-17 18:04 ` Pedro Alves [this message]
2009-06-17 19:06 ` Aleksandar Ristovski
2009-06-19 13:41 ` 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=200906171905.13381.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=aristovski@qnx.com \
--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