From: Yao Qi <qiyaoltc@gmail.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: <gdb-patches@sourceware.org>, <qiyaoltc@gmail.com>
Subject: Re: [PATCH] Fix length calculation in aarch64_linux_set_debug_regs
Date: Thu, 19 Nov 2015 11:52:00 -0000 [thread overview]
Message-ID: <8637w21a14.fsf@gmail.com> (raw)
In-Reply-To: <1446475684-31936-1-git-send-email-simon.marchi@ericsson.com> (Simon Marchi's message of "Mon, 2 Nov 2015 09:48:04 -0500")
Simon Marchi <simon.marchi@ericsson.com> writes:
> correct. Instead, it can be computed simply with:
>
> offsetof (struct user_hwdebug_state, dbg_regs) + count * sizeof (regs.dbg_reg[0]);
>
> Does it make sense?
>
> gdb/ChangeLog:
>
> * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Fix
> iov_len computation.
The old code is correct, but in order to make G++ happy, we still need
this patch, is that right?
--
Yao (齐尧)
next prev parent reply other threads:[~2015-11-19 11:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 14:48 Simon Marchi
2015-11-02 16:00 ` Pedro Alves
2015-11-02 17:09 ` Simon Marchi
2015-11-02 17:57 ` Pedro Alves
2015-11-02 18:17 ` Simon Marchi
2015-11-02 18:19 ` Pedro Alves
2015-11-02 18:25 ` Andreas Schwab
2015-11-02 16:51 ` Yao Qi
2015-11-19 11:52 ` Yao Qi [this message]
2015-11-19 13:32 ` Simon Marchi
2015-11-19 13:51 ` Yao Qi
2015-11-19 15:20 ` Simon Marchi
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=8637w21a14.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.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