From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61943 invoked by alias); 27 Sep 2017 17:08:12 -0000 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 Received: (qmail 61930 invoked by uid 89); 27 Sep 2017 17:08:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*uweigand, H*UA:version, H*x:version X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Sep 2017 17:08:10 +0000 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v8RH3li2005606 for ; Wed, 27 Sep 2017 13:08:08 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2d8fpmhmpv-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 27 Sep 2017 13:08:08 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Sep 2017 18:08:07 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 27 Sep 2017 18:08:04 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v8RH835s13434886; Wed, 27 Sep 2017 17:08:03 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 11BB411C04C; Wed, 27 Sep 2017 18:03:56 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 01B0611C04A; Wed, 27 Sep 2017 18:03:56 +0100 (BST) Received: from oc3748833570.ibm.com (unknown [9.152.213.178]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 27 Sep 2017 18:03:55 +0100 (BST) Received: by oc3748833570.ibm.com (Postfix, from userid 1000) id 30330D835F0; Wed, 27 Sep 2017 19:08:03 +0200 (CEST) Subject: Re: [RFC] Make init_type/arch_type take a size in bits To: uweigand@de.ibm.com (Ulrich Weigand) Date: Wed, 27 Sep 2017 17:08:00 -0000 From: "Ulrich Weigand" Cc: simon.marchi@polymtl.ca (Simon Marchi), gdb-patches@sourceware.org In-Reply-To: <20170920162802.D3D70D83593@oc3748833570.ibm.com> from "Ulrich Weigand" at Sep 20, 2017 06:28:02 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17092717-0040-0000-0000-000003FDA702 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17092717-0041-0000-0000-0000209EF608 Message-Id: <20170927170803.30330D835F0@oc3748833570.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-27_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709270236 X-SW-Source: 2017-09/txt/msg00835.txt.bz2 > ChangeLog: > > * gdbtypes.c (init_type): Change incoming argument from > lenght-in-bytes to lenght-in-bits. Assert length is a > multiple of TARGET_CHAR_BITS. > (arch_type, arch_flags_type): Likewise. > (init_integer_type): Update call to init_type. > (init_character_type): Likewise. > (init_boolean_type): Likewise. > (init_float_type): Likewise. > (init_decfloat_type): Likewise. > (init_complex_type): Likewise. > (init_pointer_type): Likewise. > (objfile_type): Likewise. > (arch_integer_type): Update call to arch_type. > (arch_character_type): Likewise. > (arch_boolean_type): Likewise. > (arch_float_type): Likewise. > (arch_decfloat_type): Likewise. > (arch_complex_type): Likewise. > (arch_pointer_type): Likewise. > (gdbtypes_post_init): Likewise. > > * dwarf2read.c (dwarf2_init_float_type): Update call to init_type. > (read_base_type): Likewise. > * mdebugread.c (basic_type): Likewise. > * stabsread.c (dbx_init_float_type): Likewise. > (rs6000_builtin_type): Likewise. > (read_range_type): Likewise. Also, fix call to init_integer_type > with erroneous length argument. > > * ada-lang.c (ada_language_arch_info): Update call to arch_type. > * d-lang.c (build_d_types): Likewise. > * f-lang.c (build_fortran_types): Likewise. > * go-lang.c (build_go_types): Likewise. > * opencl-lang.c (build_opencl_types): Likewise. > * jit.c (finalize_symtab): Likewise. > * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. > (build_std_type_info_type): Likewise. > * target-descriptions.c (tdesc_gdb_type): Likewise. Also, > update call to arch_flags_type. > > * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to > arch_type. > * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise. > * windows-tdep.c (windows_get_tlb_type): Likewise. > > * avr-tdep.c (avr_gdbarch_init): Update call to arch_type. > * ft32-tdep.c (ft32_gdbarch_init): Likewise. > * m32c-tdep.c (make_types): Likewise. > * rl78-tdep.c (rl78_gdbarch_init): Likewise. > (rl78_psw_type): Update call to arch_flags_type. > * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type. > * rx-tdep.c (rx_psw_type): Likewise. > (rx_fpsw_type): Likewise. > * sparc-tdep.c (sparc_psr_type): Likewise. > (sparc_fsr_type): Likewise. > * sparc64-tdep.c (sparc64_pstate_type): Likewise. > (sparc64_ccr_type): Likewise. > (sparc64_fsr_type): Likewise. > (sparc64_fprs_type): Likewise. I've pushed this now. Bye, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com