Re: The 'cold' function attribute and GDB

Kevin Buettner
2019-05-02T15:59:23Z

On Thu, 02 May 2019 18:26:49 +0300
Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 2 May 2019 00:26:44 -0700
> > From: Kevin Buettner <kevinb@redhat.com>
> > Cc: gdb-patches@sourceware.org, Simon Marchi <simark@simark.ca>
> >
> > https://www.sourceware.org/ml/gdb-patches/2018-08/msg00541.html
> >
> > It's possible that more needs to be done with display of addresses.
> > I'll need to look at it more closely to know for sure. It would help
> > me if there were a relatively small test case to look at. (It would
> > help even more if it could be reproduced on a GNU/Linux system.)
>
> I tried to write a small test program, but couldn't reproduce the
> issue with the backtrace.
>
> It's possible that the shortest way of reproducing this is for you to
> build the latest master branch of Emacs with the default compiler
> switches (which should yield -O2 -g3). If you go that way, let me
> know if you need help in actually forcing Emacs to fall through on the
> call to emacs_abort. I'd also be interested to know whether this is
> reproducible on GNU/Linux.
>
> This is with GCC 8.2.0, btw.

I'll give this a try.

I have GCC 8.3.1 and 9.0.1 readily available. Do you think it's
important to use 8.2.0 ?

Kevin