[Bug c++/96780] debuginfo for std::move and std::forward isn't useful
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 9 14:35:43 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96780
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
I'm surprised that adding the "artificial" attribute didn't work; I thought the
main point of that attribute was to automatically skip the function in the
debugger/profiler. I guess that never got implemented in gdb?
Related threads about avoiding debugging of uninteresting functions, which led
to the addition of the "artificial" attribute:
https://gcc.gnu.org/legacy-ml/gcc-patches/2005-07/threads.html#01969
https://gcc.gnu.org/legacy-ml/gcc-patches/2007-08/threads.html#02300
But these functions aren't really artificial, just tiny, so using that
attribute seems wrong.
More information about the Gcc-bugs
mailing list