[lldb-dev] [Bug 17494] False error err_ref_non_value when variable id spelling matches struct tag spelling

via lldb-dev lldb-dev at lists.llvm.org
Thu Aug 1 13:52:40 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=17494

Jonas Devlieghere <jdevlieghere at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jdevlieghere at apple.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jonas Devlieghere <jdevlieghere at apple.com> ---
(lldb) target create "/tmp/test.o"
b f
Current executable set to '/tmp/test.o' (x86_64).
(lldb) b f
Breakpoint 1: where = test.o`f + 8 at test.c:9:29, address = 0x0000000100000f48
(lldb) r
Process 34843 launched: '/tmp/test.o' (x86_64)
Process 34843 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000f48 test.o`f(a=0x00007ffeefbff658) at test.c:9:29
   6
   7    void dump_a(struct a *a) { printf("a::m: %d\n", a->m); }
   8
-> 9    int f(struct a *a) { return a->m; }
   10
   11   int main() {
   12     struct a x = {42};
(lldb) p dump_a(a)
a::m: 42

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190801/6b3db4d2/attachment.html>


More information about the lldb-dev mailing list