[LLVMbugs] [Bug 17289] Jump lines in gdb for stepping through temporary objects

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 9 11:17:00 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=17289

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|---                         |FIXED

--- Comment #3 from David Blaikie <dblaikie at gmail.com> ---
I don't see the behavior described - I've been fixing a bunch of line table
things (including dtor locations) recently, so perhaps this is fixed. 

At clang -O0, -g, stepping through with GDB 7.8 I see the following:

Breakpoint 1, vector_replace (input=..., ops=0x4050e0 <main::replacements>,
len=1) at next_jumping.cpp:64
64        std::vector<std::string> tokens;
(gdb) n
65        for (size_t i = 0; i < len; ++i) {
(gdb) 
66          if (input.find(ops[i][0]) != input.npos) {
(gdb) 
67            tokens.clear();
(gdb) 
68            split(input, ops[i][0], std::back_inserter(tokens));
(gdb) 
69            input = join(tokens.begin(), tokens.end(), ops[i][1]);
(gdb) 
70          }
(gdb) 
71        }
(gdb) 
65        for (size_t i = 0; i < len; ++i) {
(gdb) 
72        return std::move(input);
(gdb) 
73      }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150209/6aa4f442/attachment.html>


More information about the llvm-bugs mailing list