Bug 271645 - Failed to display struct in CDT debugger variable view
Summary: Failed to display struct in CDT debugger variable view
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 0 DD 1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 11:00 EDT by Francis Giraldeau CLA
Modified: 2020-09-04 15:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Giraldeau CLA 2009-04-08 11:00:15 EDT
When debugging a C program and trying to view the values of structure content, I get this error : 

    Target request failed: A syntax error in expression, near `'.

While selecting one sub-element, I get the following error

    Target request failed: A syntax error in expression, near `).regexp'.

I tried to reproduce the problem with a test program and the structure in error alone, but it doesn't work. The problem can be reproduced by compiling Augeas http://augeas.net on Linux. 

 git clone git://git.fedorahosted.org/augeas.git
 cd augeas
 ./bootstrap.sh
 ./configure

Then import the project into Eclipse CDT, and set this debug configuration : 

New C/C++ Local Application 
Project : augeas
C/C++ Application : src/.libs/augtool
Argument: ls /files/etc/hosts
Environment: LD_LIBRARY_PATH=/directory/to/augeas/src/.libs/

Build, run and break on assignment or declaration of value struct, for example in syntax.c in compile_exp and it will trigger the error.
Comment 1 Elena Laskavaia CLA 2009-04-09 10:22:14 EDT
can you enable verbose console and post gdb commands from console here