Re: The 'cold' function attribute and GDB

Eli Zaretskii
2019-05-02T07:06:08Z

On May 2, 2019 5:51:13 AM GMT+03:00, Kevin Buettner <kevinb@redhat.com> wrote:
> On Wed, 1 May 2019 16:17:04 -0400
> Simon Marchi <simark@simark.ca> wrote:
>
> > In an ideal world, if gcc generates two separate ranges
> > of instruction for this function (the hot path and the cold path),
> it should describe
> > it as two ranges in the entry for print_vectorlike. If so, it
> should be described with
> > a DW_AT_ranges attribute.
>
> Yes, this is exactly right.

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.

So where do I go from here? What to check next?

Thanks.