From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23426 invoked by alias); 31 Aug 2008 17:52:22 -0000 Received: (qmail 23216 invoked by uid 22791); 31 Aug 2008 17:52:17 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.29.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Aug 2008 17:51:28 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id m7VHpPuM083994 for ; Sun, 31 Aug 2008 17:51:25 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m7VHpPu11851514 for ; Sun, 31 Aug 2008 19:51:25 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m7VHpPMG020087 for ; Sun, 31 Aug 2008 19:51:25 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m7VHpPrh020082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 31 Aug 2008 19:51:25 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (localhost.localdomain [127.0.0.1]) by tuxmaker.boeblingen.de.ibm.com (8.13.8/8.13.8) with ESMTP id m7VHpPDi002591 for ; Sun, 31 Aug 2008 19:51:25 +0200 Received: (from uweigand@localhost) by tuxmaker.boeblingen.de.ibm.com (8.13.8/8.13.8/Submit) id m7VHpOdv002590 for gdb-patches@sourceware.org; Sun, 31 Aug 2008 19:51:24 +0200 Message-Id: <20080831175124.866908000@de.ibm.com> References: <20080831175045.128504000@de.ibm.com> User-Agent: quilt/0.46-1 Date: Sun, 31 Aug 2008 17:52:00 -0000 From: uweigand@de.ibm.com To: gdb-patches@sourceware.org Subject: [rfc][13/37] Eliminate builtin_type_ macros: Update EVAL_SKIP dummy return type Content-Disposition: inline; filename=diff-type-evalskip Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00675.txt.bz2 Hello, when calling evaluate_subexp with the EVAL_SKIP option, a dummy value is returned; this is currently constructed using the builtin_type_long macro. As the actual type doesn't really matter, this patch changes that to use builtin_type_int8 instead. Bye, Ulrich ChangeLog: * eval.c (evaluate_subexp_standard): Use builtin_type_int8 to construct the EVAL_SKIP dummy return value. * ada-lang.c (ada_evaluate_subexp): Likewise. * jv-lang.c (evaluate_subexp_java): Likewise. * m2-lang.c (evaluate_subexp_modula2): Likewise. * scm-lang.c (evaluate_exp): Likewise. Index: gdb-head/gdb/ada-lang.c =================================================================== --- gdb-head.orig/gdb/ada-lang.c +++ gdb-head/gdb/ada-lang.c @@ -9277,7 +9277,7 @@ ada_evaluate_subexp (struct type *expect } nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } Index: gdb-head/gdb/eval.c =================================================================== --- gdb-head.orig/gdb/eval.c +++ gdb-head/gdb/eval.c @@ -2482,7 +2482,7 @@ GDB does not (yet) know how to evaluate } nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } /* Evaluate a subexpression of EXP, at index *POS, Index: gdb-head/gdb/jv-lang.c =================================================================== --- gdb-head.orig/gdb/jv-lang.c +++ gdb-head/gdb/jv-lang.c @@ -938,7 +938,7 @@ evaluate_subexp_java (struct type *expec standard: return evaluate_subexp_standard (expect_type, exp, pos, noside); nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } static char *java_demangle (const char *mangled, int options) Index: gdb-head/gdb/m2-lang.c =================================================================== --- gdb-head.orig/gdb/m2-lang.c +++ gdb-head/gdb/m2-lang.c @@ -273,7 +273,7 @@ evaluate_subexp_modula2 (struct type *ex } nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } Index: gdb-head/gdb/scm-lang.c =================================================================== --- gdb-head.orig/gdb/scm-lang.c +++ gdb-head/gdb/scm-lang.c @@ -220,7 +220,7 @@ evaluate_exp (struct type *expect_type, } return evaluate_subexp_standard (expect_type, exp, pos, noside); nosideret: - return value_from_longest (builtin_type_long, (LONGEST) 1); + return value_from_longest (builtin_type_int8, (LONGEST) 1); } const struct exp_descriptor exp_descriptor_scm = -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com