From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: palves@redhat.com (Pedro Alves)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc v2][0/6] Remote /proc file access
Date: Mon, 16 Jan 2012 18:27:00 -0000 [thread overview]
Message-ID: <201201161728.q0GHSW4D024277@d06av02.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <4F14446F.3060704@redhat.com> from "Pedro Alves" at Jan 16, 2012 03:38:23 PM
Pedro Alves wrote:
> I've been through the series, and it looks good to me.
> Thanks a lot! If this doesn't work out in the end, I'll certainly help
> sort it out.
Thanks for the review!
> I've given a couple comments in reply to the patches directly. I'm leaving
> some general-ish comments here:
>
> - We could consider making "info proc" work with the default run
> target if the current target can't handle it, so that
> "info proc PID" works even when not debugging a process yet,
> like today.
Maybe. On the other hand, once we've switched to the gdbarch based
implementation, it would automatically work when not yet debugging
a process anyway, so I'm not sure this is really necessary ...
> - It could be argued that the pid parsing should be kept at
> the target/gdbarch callbacks side (pass down `char *args'),
> so that we didn't have:
>
> + if (args && *args == '/')
> + tid = strtoul (args + 1, &args, 10);
> + else
> + tid = 0;
>
> in infcmd.c:info_proc_cmd_1 which is only needed by procfs.c.
Yes, good point. In fact, that makes more sense; the format of a
process ID ought to be target-specific (like with attach). Also,
this will make the diffs a bit smaller ...
I'll provide an updated patch set.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2012-01-16 17:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-13 18:14 Ulrich Weigand
2012-01-16 16:39 ` Pedro Alves
2012-01-16 18:27 ` Ulrich Weigand [this message]
2012-01-16 19:38 ` Pedro Alves
2012-01-17 19:41 ` Ulrich Weigand
2012-01-17 19:46 ` 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=201201161728.q0GHSW4D024277@d06av02.portsmouth.uk.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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