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

Jonas Devlieghere <jdevliegh...@apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jdevliegh...@apple.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jonas Devlieghere <jdevliegh...@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.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to