The 'cold' function attribute and GDB

Eli Zaretskii eliz@gnu.org
Thu May 2 15:27:00 GMT 2019


> 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.



More information about the Gdb-patches mailing list