Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem viewing const char** as array of cont char* with lldb(Using "Display as Array" with latest lldb integration reports multiple errors)
Problem viewing const char** as array of cont char* with lldb [message #1764944] Sun, 04 June 2017 14:35 Go to next message
Philip Gust is currently offline Philip GustFriend
Messages: 1
Registered: June 2017
Junior Member
I am using CDT 9.2.1 (201703062208) in Neon3 4.6.3 with LLDB Debugger Integration 1.0.0. While at a breakpoint, I used the "Display as Array" command to view a const** variable 'bar' as an array of 10 const*. The LLDB back end reports the following errors. The expression looks like a valid debugger expression. Is this a known limitation in this version? Is there a way to work around it using Cast to Type to show the array?

Multiple errors reported.

1) Failed to execute MI command:
-var-create - * (*((bar)+0)@10)
Error message from debugger back end:
error: expected ')'\nto match this '('\n

2) Unable to create variable object

3) Failed to execute MI command:
-data-evaluate-expression (*((bar)+0)@10)
Error message from debugger back end:
error: expected ')'\nto match this '('\n

4) Failed to execute MI command:
-var-create - * (*((bar)+0)@10)
Error message from debugger back end:
error: expected ')'\nto match this '('\n
Re: Problem viewing const char** as array of cont char* with lldb [message #1765007 is a reply to message #1764944] Mon, 05 June 2017 16:48 Go to previous message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
Hi,

LLDB integration in CDT is experimental at the moment[1]. It sounds like you have found a bug, but I am not sure whether that is on the CDT or LLDB side. As you say it looks like a valid expression, so it may be best to ask the LLDB folk and/or raise a bug against CDT so that someone on CDT can pursue it[2]? For example see[3] for an LLDB bug that makes using CDT quite difficult as a front end.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=405670#c47
[2] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT
[3] https://bugs.llvm.org/show_bug.cgi?id=32100
Previous Topic:Can no longer set breakpoints in Eclipse IDE / CDT Neon.3 with MinGW-64 (Posix) on Windows 10
Next Topic:Default binary path
Goto Forum:
  


Current Time: Wed Apr 24 15:46:31 GMT 2024

Powered by FUDForum. Page generated in 0.02526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top