Re: The 'cold' function attribute and GDB

Eli Zaretskii
2019-05-06T15:33:58Z

> Date: Sun, 5 May 2019 13:04:03 -0700
> From: Kevin Buettner <kevinb@redhat.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, simark@simark.ca
>
> My patch is below. If it works for you and the approach seems sound,
> I'll work on a test case which doesn't depend on gcc placing the
> .cold section after the entry pc.

The patch fixes the backtrace, thanks.

The output from "info line" still references the .cold symbol,
though. I think this was not so on GNU/Linux? Is it also by sheer
luck, because of the order of the 'cold' symbols in the executable?