Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-core-dev] FYI:GDB/MI working with C++

In the test case below
field A.u is private but gdb/mi shows it public.

PR: gdbMI/792

=============================================
#include <string.h>
#include <iostream>

class A
{
	int u;

	public:
		A() { };
		int x;
		char buffer[10];
	
	protected:
		int y;
	
	private:
		float z;
};

int main()
{
	A a;
	strcpy( a.buffer, "test" );
	std:cout << a.buffer << std:endl;
	return 0;
}




Back to the top