Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345791 - Pretty printing of pointers
Summary: Pretty printing of pointers
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 16:54 EDT by Sergey Prigogin CLA
Modified: 2020-09-04 15:17 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 Sergey Prigogin CLA 2011-05-13 16:54:17 EDT
It would be nice if printing dereferenced pointer variables in Variables view.

For example, for a variable
  std::string* s;
the Variables view should show both, the value of the pointer and the contents of the string.

Current display for pointers is noisy and not very informative:
Name : s
	Details:0x7fffffffcf30
	Default:0x7fffffffcf30
	Decimal:140737488342832
	Hex:0x7fffffffcf30
	Binary:11111111111111111111111111111111100111100110000
	Octal:03777777777747460

It would be nice to print just:

0x7fffffffcf30 -> "contents of the string"