Bug 369341 - [expressions] Range expressions are not handled properly
Summary: [expressions] Range expressions are not handled properly
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 15:08 EST by Marc Khouzam CLA
Modified: 2020-09-04 15:19 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2012-01-22 15:08:04 EST
With code defining an array:
    int ab[15];

If I enter the following expression in the expressions view:
  *((ab)+0)@10.  

and then expand the array, I get errors like:

668,991 [MI]  154-var-create --thread 1 --frame 0 - * *((ab)+0)@10[0]
668,993 [MI]  154^error,msg="cannot subscript something of type `int'"