Bug 211159 - the value of the pointer of two dimensions int array is error
Summary: the value of the pointer of two dimensions int array is error
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 4.0   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: 2007-11-27 23:04 EST by guoxiaof CLA
Modified: 2020-09-04 15:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description guoxiaof CLA 2007-11-27 23:04:52 EST
Build ID: 200706261300

Steps To Reproduce:
1. the program: 
int main()
{
	int a[][3] = {
		{1,2,3},
		{4,5,6},
		{7,8,9}
	};	
	int (*p)[3] = a;
	p++;
	return 0;
}
when the program is stopped at "p++", the variables view show: 
p	0xbffff450	
 *p	0xbffff450	

2. stepped and stopped,  the variables view show:
  p	0xbffff45c	
	*p	0xbffff450	
  the variable of "*p" is not updated and it's value is error.


More information: