This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] PR c++/17494 - Fix evaluation of method calls under EVAL_SKIP
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: sivachandra at google dot com (Siva Chandra)
- Cc: gdb-patches at sourceware dot org (gdb-patches)
- Date: Mon, 3 Nov 2014 16:08:01 +0100 (CET)
- Subject: Re: [PATCH] PR c++/17494 - Fix evaluation of method calls under EVAL_SKIP
- Authentication-results: sourceware.org; auth=none
Siva Chandra wrote:
> When evaluating method calls under EVAL_SKIP, the "object" and the
> arguments to the method should also be evaluated under EVAL_SKIP,
> instead of skipping to evaluate them. Getting this right fixes PR
> c++/17494.
OK, this makes sense.
>gdb/ChangeLog:
>
>2014-10-20 Siva Chandra Reddy <sivachandra@google.com>
>
> PR c++/17494
> * eval.c (evaluate_subexp_standard): Evaluate the "object" and
> the method args also under EVAL_SKIP when evaluating method
> calls under EVAL_SKIP.
>
>gdb/testsuite/ChangeLog:
>
>2014-10-20 Siva Chandra Reddy <sivachandra@google.com>
>
> PR c++/17494
> * gdb.cp/pr17494.cc: New file.
> * gdb.cp/pr17494.exp: New file.
This is OK.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com