This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 05/10] vla: allow side effects for sizeof argument
- From: Pedro Alves <palves at redhat dot com>
- To: "Agovic, Sanimir" <sanimir dot agovic at intel dot com>
- Cc: "'Tom Tromey'" <tromey at redhat dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 20 Nov 2013 13:22:54 +0000
- Subject: Re: [PATCH 05/10] vla: allow side effects for sizeof argument
- Authentication-results: sourceware.org; auth=none
- References: <1382366424-21010-1-git-send-email-sanimir dot agovic at intel dot com> <1382366424-21010-6-git-send-email-sanimir dot agovic at intel dot com> <87d2mua1gi dot fsf at fleche dot redhat dot com> <0377C58828D86C4588AEEC42FC3B85A71769F292 at IRSMSX105 dot ger dot corp dot intel dot com> <87ppqp9kme dot fsf at fleche dot redhat dot com> <0377C58828D86C4588AEEC42FC3B85A7176B5F16 at IRSMSX105 dot ger dot corp dot intel dot com> <528B9A5F dot 5020706 at redhat dot com> <0377C58828D86C4588AEEC42FC3B85A7176B8275 at IRSMSX105 dot ger dot corp dot intel dot com>
On 11/20/2013 12:17 PM, Agovic, Sanimir wrote:
>> Sounds like something that the testsuite should have caught.
>> I guess we don't have such a test?
>>
> No yet, see below.
>
> test: test eval routines with EVAL_AVOID_SIDE_EFFECTS flag set
>
> Ensure that certain commands (e.g. whatis/ptype) and sizeof intrinsic
> have no side effects (variables cannot be altered).
>
> 2013-11-20 Sanimir Agovic <sanimir.agovic@intel.com>
>
> testsuite/
> * gdb.base/eval-avoid-side-effects.exp: New test.
Excellent! Thanks, this is OK.
--
Pedro Alves