[llvm-bugs] [Bug 47257] New: Error: no member named 'l_125' in namespace '$__lldb_local_vars'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 20 10:27:54 PDT 2020


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

            Bug ID: 47257
           Summary: Error: no member named 'l_125' in namespace
                    '$__lldb_local_vars'
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: massarelli at diag.uniroma1.it
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

Error message from lldb when printing variable l_125 at line 11 or 12.

$ cat -n a.c
     1  int a, b;
     2  int *c = &b, *d;
     3  int **g_122 = &c;
     4  void func_11() {
     5    int e = a;
     6    int *f = &e;
     7    int **l_120 = &f;
     8    int *g = l_120;
     9    {
    10      int *l_125 = 0;
    11      d = &g;
    12      (**g_122) = ((**l_120) = l_125);
    13    }
    14  }
    15  int main() { func_11(); }

$ cat a.c
int a, b;
int *c = &b, *d;
int **g_122 = &c;
void func_11() {
  int e = a;
  int *f = &e;
  int **l_120 = &f;
  int *g = l_120;
  {
    int *l_125 = 0;
    d = &g;
    (**g_122) = ((**l_120) = l_125);
  }
}
int main() { func_11(); }

$ clang -v
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
bc8be3054067ac822fc6d9f4f8e64c841f530f16)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

$ clang -Og -g -o opt a.c

$ lldb opt
lldb) target create "opt"
Current executable set to '/home/stepping/output/opt' (x86_64).
(lldb) b -l 11
Breakpoint 1: where = opt`func_11 + 35 at a.c:11:7, address =
0x00000000004004a3
(lldb) r
Process 138 launched: '/home/stepping/output/opt' (x86_64)
Process 138 stopped
* thread #1, name = 'opt', stop reason = breakpoint 1.1
    frame #0: 0x00000000004004a3 opt`func_11 at a.c:11:7
   8      int *g = l_120;
   9      {
   10       int *l_125 = 0;
-> 11       d = &g;
   12       (**g_122) = ((**l_120) = l_125);
   13     }
   14   }
(lldb) p l_125
error: <lldb wrapper prefix>:43:31: no member named 'l_125' in namespace
'$__lldb_local_vars'
    using $__lldb_local_vars::l_125;
          ~~~~~~~~~~~~~~~~~~~~^
error: <user expression 0>:1:1: use of undeclared identifier 'l_125'
l_125
^
(lldb) s
Process 195 stopped
* thread #1, name = 'opt', stop reason = step in
    frame #0: 0x00000000004004aa opt`func_11 at a.c:12:28
   9      {
   10       int *l_125 = 0;
   11       d = &g;
-> 12       (**g_122) = ((**l_120) = l_125);
   13     }
   14   }
   15   int main() { func_11(); }
(lldb) p l_125 
error: <lldb wrapper prefix>:43:31: no member named 'l_125' in namespace
'$__lldb_local_vars'
    using $__lldb_local_vars::l_125;
          ~~~~~~~~~~~~~~~~~~~~^
error: <user expression 0>:1:1: use of undeclared identifier 'l_125'
l_125

-- 
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/20200820/47d7d372/attachment.html>


More information about the llvm-bugs mailing list