<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/65666>65666</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLDB wont print string object.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Hermit97
</td>
</tr>
</table>
<pre>
I compiled my .cpp file with clang++ -g -o file filename.cpp. Ran lldb ./test and set a break point and ran through till I hit it and I printed a simple string object called "a" whose value is "test\n". The result was an error:
(lldb) print a
(std::string) $1 = error: summary string parsing error
I am only encountering this error when trying to print a string object. It prints a int object correctly.
I tried compiling with g++ -g -o file filename.cpp
Then I ran lldb as usual and printed the string object fine with no issue. This seems to an issue with clang++ itself since g++ is not producing any error.
lldb version 16.0.6
clang version 16.0.6
I also tried with lldb and clang version 14 result was the same issue.
OS: Linux mint 5.15.0-79-generic
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEVMuO6zYM_Rp5Q8Sw6UfihRczDYIGGKBAe3-Atjm2WlkyRHnS_H0hO5l777RANxLAw8chDyUS0aNlblX1qqpzQmuYnG9_ZT_r0ByTzg339gq9mxdteID5Dmm_LPCuDcNNhwl6Q3ZU-KrwFQ4jHNyOxcPSzNE7hd_JgjFDB6nCS2AJQHYA4QAEnWf6Cxan7W71ZCFM3q3jBEEbA1eYdAC9o1dYvLaBByAQPS-GQYLXdgTX_cl9gJ5MJKoQSSHCbXLC8EFmZdASzbG8qn6xCjGFbxODZ1lNgBsJkAVg751XxQuAys4qe3mceIoNKGx2AkDwCUgYVPGiipedSfRRWOagivP3bLLOM_n7k-1CXuK94z8UugLN4Ky5A9verTbw5h8mLbsz3Ca2EPx9M7tPOj-NIYVr2BEBgujwHI_znvtg7ik86wWveXhIHDNssv6PpHvst8jkuim2qUsCq6xkNqWeOoXpq0Tv2j6WxzrQIitHIbSAMM8SeyK72_-9YjoIm3cQbXv-JKkFrIv9umHtYyGy931Y6U8ibiQ_2It2FvI6zdJ6B7YK_4lcgYy4x4w2NnundoAvQeWPi7Q1TTM_29uT_fZH3IQ3bde_YY6iVGlepdnh2BxGtux1v_slQ1sMTdFQwm1eN2We13mJydQW2XDMjgXXPZZcN6cCuemw7msirk5YJLrFDIusyY55UzYZppjnw6mpCsIOq-xUqzLjmbRJjfmYU-fHZGPY1lVd14mhjo1snwGi5dtOXyHGv8G3MebQraOoMjNagnzPEnQw3L69nV_h5uxj977uZLJ6004hLBLfC14UXkYdprVLezcrvMRsj-uweBeDFF42DqLwsnH8JwAA__9DAIdL">