This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH V5 1/2] Initialize bnd register before performing inferior calls.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Walfred Tedeschi <walfred dot tedeschi at intel dot com>
- Cc: palves at redhat dot com, brobecker at adacore dot com, gdb-patches at sourceware dot org
- Date: Tue, 26 Apr 2016 15:07:37 +0100
- Subject: Re: [PATCH V5 1/2] Initialize bnd register before performing inferior calls.
- Authentication-results: sourceware.org; auth=none
- References: <1458310565-19980-1-git-send-email-walfred dot tedeschi at intel dot com>
Walfred Tedeschi <walfred.tedeschi@intel.com> writes:
> BND registers should be initialized before performing an inferior call
> to avoid undesired bound violations.
What are the undesired bound violations? Do have an example?
Resetting BND registers in the inferior call isn't right to me, the BND
setting isn't in effect in the inferior call. If the function can
trigger bound violations, it is expected that it still can trigger
violations in the inferior call.
--
yao (éå)