From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118969 invoked by alias); 2 May 2019 15:17:54 -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 118958 invoked by uid 89); 2 May 2019 15:17:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:822 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 May 2019 15:17:51 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMDT2-0007qN-6W; Thu, 02 May 2019 11:17:49 -0400 Received: from [176.228.60.248] (port=1705 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hMDT1-0006KP-9g; Thu, 02 May 2019 11:17:48 -0400 Date: Thu, 02 May 2019 15:17:00 -0000 Message-Id: <83o94kq41l.fsf@gnu.org> From: Eli Zaretskii To: kevinb@redhat.com, simark@simark.ca CC: gdb-patches@sourceware.org In-reply-to: (message from Eli Zaretskii on Thu, 02 May 2019 10:05:41 +0300) Subject: Re: The 'cold' function attribute and GDB References: <83wojaovbp.fsf@gnu.org> <077aee8c-7bef-bad6-a6a1-e69f116cc18b@simark.ca> <20190501195113.69aea752@f30-4.lan> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00037.txt.bz2 > Date: Thu, 02 May 2019 10:05:41 +0300 > From: Eli Zaretskii > > I do see in the DWARF info that print_vectorlike has 2 address ranges: its DW_AT_ranges attribute specifies a value which is shown as a list of 2 ranges in the "objdump -WR" output. Specifically, "objdump -Wi" shows this: <1><798e3d>: Abbrev Number: 161 (DW_TAG_subprogram) <798e3f> DW_AT_name : print_vectorlike <798e50> DW_AT_decl_file : 3 <798e51> DW_AT_decl_line : 1365 <798e53> DW_AT_decl_column : 1 <798e54> DW_AT_prototyped : 1 <798e54> DW_AT_type : <0x77ca19> <798e58> DW_AT_ranges : 0x18b448 <<<<<<<<<<<<<<<<<<<< and "objdump -WR" has this: 0018b448 011d6521 011d81d6 0018b448 012e1ce5 012e1f3b 0018b448 and the second range of addresses is for print_vectorlike.cold.