|
Boost : |
From: Matthew Herrmann (matthew.herrmann_at_[hidden])
Date: 2007-05-23 23:18:44
boost-request_at_[hidden] wrote:
> Message: 12
> Date: Wed, 23 May 2007 16:39:56 -0700
> From: "Jeffrey Faust" <jefffaust_at_[hidden]>
> Subject: Re: [boost] [optional] Making optional more debugger friendly
> To: boost_at_[hidden]
> Message-ID: <op.tssz0uxy5emtmi_at_goliath>
> Content-Type: text/plain; format=flowed; delsp=yes;
> charset=iso-8859-15
>
> David Deakins wrote:
>
>
>> Hi Jeff,
>>
>> We have a handful of VS2005 visualizers for boost types. Here's what we
>> use for boost::optional. Try plugging this into the [Visualizers]
>> section of your autoexp.dat and see if it is the kind of thing you are
>> looking for:
>>
>> boost::optional<*>{
>> preview
>> (
>> #if( !$c.m_initialized )
>> (
>> #( "Uninitialized" )
>> )
>> #else
>> (
>> #( *($T1*)&$c.m_storage.dummy_.data[0] )
>> )
>> )
>> }
>>
>
> Dave, you have made my day. This is exactly what I need. It works
> perfectly!
>
> Now, how do people feel about an update to the documentation with this
> debugger-specific nugget? Do other debuggers have similar facilities?
>
> Jeff
>
GDB has custom script support. On that note, anyone have a tip for how
to (even manually) inspect in GDB? The version I am running (6.3.0.0)
dumps internal core when I try to even print a boost::optional, let
alone give readable output.
Best Regards,
Matthew Herrmann
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk