From: Pedro Alves <palves@redhat.com>
To: Sandra Loosemore <sandra@codesourcery.com>
Cc: gdb-patches@sourceware.org, Joel Brobecker <brobecker@adacore.com>
Subject: Re: [patch 3/4] Nios II gdbserver support, version 2
Date: Fri, 03 May 2013 18:09:00 -0000 [thread overview]
Message-ID: <5183FD50.5080502@redhat.com> (raw)
In-Reply-To: <518332D1.9020709@codesourcery.com>
On 05/03/2013 04:45 AM, Sandra Loosemore wrote:
> Here is a revised version of the gdbserver parts of the Nios II port. I've tweaked the copyright dates, comments, and formatting similarly to what I did to the GDB-side patches. I also made a few cleanups to the register-handling code to be consistent with the technical changes I made on the GDB side.
>
> OK to commit?
Okay with nits below addressed.
> +static CORE_ADDR
> +nios2_get_pc (struct regcache *regcache)
> +{
> + union nios2_register pc;
Could you add an empty line after declarations (throughout),
please?
> +ps_err_e
> +ps_get_thread_area (const struct ps_prochandle *ph,
> + lwpid_t lwpid, int idx, void **base)
> +{
> + if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
> + return PS_ERR;
> +
> + /* IDX is the bias from the thread pointer to the beginning of the
> + thread descriptor. It has to be subtracted due to implementation
> + quirks in libthread_db. */
> + *base = (void *) ((char *)*base - idx);
Missing space: '(char *) *base'
> +struct regset_info target_regsets[] = {
Put { on next line.
> +struct linux_target_ops the_low_target = {
Ditto.
Thanks,
--
Pedro Alves
next prev parent reply other threads:[~2013-05-03 18:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 13:31 [patch 3/4] Nios II gdbserver support Sandra Loosemore
2013-04-23 2:45 ` Joseph S. Myers
2013-04-23 9:33 ` Sandra Loosemore
2013-04-24 0:00 ` Joseph S. Myers
[not found] ` <20130426064547.GQ3525@adacore.com>
2013-05-03 3:45 ` [patch 3/4] Nios II gdbserver support, version 2 Sandra Loosemore
2013-05-03 18:09 ` Pedro Alves [this message]
2013-05-05 2:16 ` [patch 3/4] Nios II gdbserver support, version 3 Sandra Loosemore
2013-05-06 9:15 ` 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=5183FD50.5080502@redhat.com \
--to=palves@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=sandra@codesourcery.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