public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Making the Watch window more helpful.
@ 2004-03-21 10:23 Dror Tirosh
  0 siblings, 0 replies; only message in thread
From: Dror Tirosh @ 2004-03-21 10:23 UTC (permalink / raw)
  To: insight

I found myself many times "dive" into the tree structure in the "Watch" window.
e.g for an "std::string" variable, I have to open 3 levels down to see the actual string value.
Is it possible to add a definition of types which are displayed on a single line?

1. "renaming" names in display: std:string is much more comprehensible type name than
	basic_string<char,std::char_traits<char>,std::allocator<char> > ...
2. dumping a string usually looks like:

- a		basic_string<char,std::char_traits<char>,std::allocator<char> > ...
  - public
  | - npos	cannot access memory at address ...
  -private
   - _M_dataplus _Alloc_hider {...}
   | allocator<char>
   - public
       +_M_p	(char*) 0xxx "hello"
    + _S_empty_rep_storage

It would be MUCH nicer to look like

+ a	std::string (char*)0xxxx "hello"


I have no idea where to look for it in the TCL code...

(BTW: such feature exist in Visual Studio 6.0 and above. a line in the AUTOEXP.DAT file containg the string:
std::basic_string<*>=<_Ptr>

displays the char* value of a string object)

dia,
	dror.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-21 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-21 10:23 Making the Watch window more helpful Dror Tirosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).