public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96780] New: debuginfo for std::move and std::forward isn't useful
@ 2020-08-25 12:08 redi at gcc dot gnu.org
  2020-08-25 12:35 ` [Bug c++/96780] " mpolacek at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: redi at gcc dot gnu.org @ 2020-08-25 12:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96780

            Bug ID: 96780
           Summary: debuginfo for std::move and std::forward isn't useful
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

When debugging I don't want to step into std::move and std::forward, ever.
They're effectively just casts, and although g++ correctly optimises them away
to nothing, it leaves debuginfo that makes gdb step into them.

Is there any good reason to ever step into them, or could we special case them
in g++ to not emit any debuginfo, at least when inlined?

I tried adding __attribute__((__always_inline__,__artificial__)) but that
seemed to make it even worse.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-08-02 14:34 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 12:08 [Bug c++/96780] New: debuginfo for std::move and std::forward isn't useful redi at gcc dot gnu.org
2020-08-25 12:35 ` [Bug c++/96780] " mpolacek at gcc dot gnu.org
2020-09-12 16:05 ` ppalka at gcc dot gnu.org
2020-09-12 16:09 ` ppalka at gcc dot gnu.org
2021-04-06 13:44 ` redi at gcc dot gnu.org
2021-11-03 21:14 ` ppalka at gcc dot gnu.org
2021-11-03 23:17 ` redi at gcc dot gnu.org
2022-01-05 13:55 ` ppalka at gcc dot gnu.org
2022-01-05 16:11 ` jakub at gcc dot gnu.org
2022-03-01 19:12 ` vittorio.romeo at outlook dot com
2022-03-01 20:06 ` redi at gcc dot gnu.org
2022-03-03  9:15 ` redi at gcc dot gnu.org
2022-03-09 14:35 ` jason at gcc dot gnu.org
2022-03-09 14:35 ` jason at gcc dot gnu.org
2022-03-09 15:34 ` ppalka at gcc dot gnu.org
2022-03-09 17:12 ` redi at gcc dot gnu.org
2022-03-09 17:20 ` redi at gcc dot gnu.org
2022-03-10  4:33 ` jason at gcc dot gnu.org
2022-03-16 12:26 ` cvs-commit at gcc dot gnu.org
2022-03-26 23:37 ` jason at gcc dot gnu.org
2023-08-02 14:34 ` moncef.mechri at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).