<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/80248>80248</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb give the warning when reading the variable.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          IOVOVHS
      </td>
    </tr>
</table>

<pre>
    a simple bug.there is a warning given by lldb when printing a variable.The error message indicates that this is a compiler issue about dwarf, but gdb can read the information.After comparing the compilation results of gcc and clang, it can be determined that the issue is with lldb.

```
struct S1 {
   unsigned f0 : 23;
   volatile unsigned f1 : 29;
   unsigned f2 : 14;
};

struct S2 {
 unsigned int  f0;
   unsigned long  f1;
   const unsigned f2 : 5;
 struct S1  f3;
};

union U8 {
   const volatile unsigned long f0;
   volatile signed f1 : 20;
   signed f2 : 1;
   volatile char f3;
   int  f4;
};
int main(){
    static union U8 g_1029 = {1UL};
    static struct S2 g_736[8] = {{18446744073709551610UL,5UL,3,{2178,4611,117}},{18446744073709551615UL,0xE9A8DB06606C1D1CLL,0,{425,20808,63}},{18446744073709551610UL,5UL,3,{2178,4611,117}},{18446744073709551610UL,5UL,3,{2178,4611,117}},{18446744073709551615UL,0xE9A8DB06606C1D1CLL,0,{425,20808,63}},{18446744073709551610UL,5UL,3,{2178,4611,117}},{18446744073709551610UL,5UL,3,{2178,4611,117}},{18446744073709551615UL,0xE9A8DB06606C1D1CLL,0,{425,20808,63}}};
 static struct S2 *g_735 = &g_736[4];
    struct S2 **l_3281 = &g_735;
    static union U8 g_995 = {1UL};
    union U8 *l_2889 = &g_995;
}
```
### lldb command
```
b 28
run
p *l_2889
```
### platform
Ubuntu 20.04

Then the lldb gives the follwing message:
warning: (x86_64) /home/hzw/experiment/bug/testBug/testBug1/bug1 0x7fffffff000000ee: DW_TAG_member bitfield named "f2" has invalid bit offset (0x00000000) member will be ignored. Please file a bug against the compiler and include the preprocessed output for /home/hzw/experiment/bug/testBug/testBug1/bug1.c
(U8) $0 = (f0 = 1, f1 = 1, f3 = '\x01', f4 = 1)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVk2P2zYT_jX0ZRCDpL6ogw9e-_XbAgFSINn0uCClkcSCogySWm_66wtK8lqbNZJD21sFw6I4Mw8fDoczI73XrUXckeyBZMeNHEM3uN2vn75--vrL540a6m87CV73Z4OgxnYbOnQI2oOEi3RW2xZa_YwW1DcwplZw6dDC2WkbokzCs3RaKoPbLx0COjc46NF72SJoW-tKBvQQOhkgdNrPyNXQn7VBB9r7EUGqYQxQX6RrCD-AGgO0tYJKWnAoawhdxGoG18ugB7vdNwHdBCJdJBHlM-QkB4d-NMHD0EBbVSBtDZWRto3gOky4CqHGgK7XFusrPVz4aA8XHbppv1tCj4Tul_-cLr_p0wc3VgE-MyDFwzwFAKOdXF5DQ4Eke-AJSW7S5yGSNLhSY7NauVa7SfkkZemrlBTH2_gND77i8QqgbQBo6F1wM9gWoGFrYTVYH96tn91UbruGJvkBq9HGs3gUb5wzo793wsTkLctXpe_89EbpOy_dta866dZUARan3PdplPVSW8IF4eWaPPggg67gdWftE6O8BJIc4ybZ48c1zsrgdkDtU5HkJHsQJDte7aKpSNO8SFNaJAUts4zljD5-JPyQTf8J4QdSPHBWCMIPac4Y4QfGirhccZyFdyBmY_ryv3Ivjg80z2l-YEd2-DhNz2Ypzwg_cCpohM6Tn0D-A6z-29i_srF15L0LO8L3MfKyOeR4fg3DlGTfB-zKhPC9eUq4YGuz7F6Ar25EWWY_uBC3pBCxuRDlDbssszcX8l7KJTyZf3Mxqoa-l7a-q6qAi3nkRjsPzrdlf4J-NjLEgjPPP6rRhhE43dJ0neK-xFoY68ZEJtZJP302gzGXWJmWSkiSxWApqTFXES5eRP6UpyRmEH7qhh7j688L4Sd8OaPTPdpA-EmNLeGngD48rEdsFjGgL0UzP3R6MK4Hx9-f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