From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25335 invoked by alias); 4 Nov 2014 02:06:51 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 25308 invoked by uid 55); 4 Nov 2014 02:06:50 -0000 From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug c++/17494] Ternary operator not evaluated correctly Date: Tue, 04 Nov 2014 02:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: sivachandra at google dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00177.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17494 --- Comment #1 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via e0f52461c2467b6610391681fa27cd9b3c5def57 (commit) from f868b157aa4079bcdcb482b6b6634b5df8f74dbd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e0f52461c2467b6610391681fa27cd9b3c5def57 commit e0f52461c2467b6610391681fa27cd9b3c5def57 Author: Siva Chandra Date: Sat Oct 18 06:14:00 2014 -0700 Fix evaluation of method calls under EVAL_SKIP. 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 as was being done previously. gdb/ChangeLog: 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: PR c++/17494 * gdb.cp/pr17494.cc: New file. * gdb.cp/pr17494.exp: New file. ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 7 ++++ gdb/eval.c | 13 ++++--- gdb/testsuite/ChangeLog | 6 +++ gdb/testsuite/gdb.cp/pr17494.cc | 63 ++++++++++++++++++++++++++++++++++++++ gdb/testsuite/gdb.cp/pr17494.exp | 57 ++++++++++++++++++++++++++++++++++ 5 files changed, 140 insertions(+), 6 deletions(-) create mode 100644 gdb/testsuite/gdb.cp/pr17494.cc create mode 100644 gdb/testsuite/gdb.cp/pr17494.exp -- You are receiving this mail because: You are on the CC list for the bug.