[Lldb-commits] [PATCH] give subclasses access to UnixSignals::m_signals

Greg Clayton gclayton at apple.com
Wed Mar 30 00:02:54 PDT 2011


Yikes, that was a minus sign on the diff to _remove_ the private... Looks good. Commit when desired!

On Mar 29, 2011, at 10:32 PM, Stephen Wilson wrote:

> On Tue, Mar 29, 2011 at 10:17:42PM -0700, Greg Clayton wrote:
>> Don't you want "protected:" so the subclasses can edit it?
>> 
> 
> There is not enough context to show it in the patch, but there is a
> "protected:" earlier on in the class declaration.
> 
> 
>> On Mar 29, 2011, at 5:26 PM, Stephen Wilson wrote:
>> 
>>> 
>>> Any chance I could get a quick thumbs up on the following patch?
>>> 
>>> I know this is a rater trivial change and I should probably just go
>>> ahead and commit it.  My main concern was if there are any short-term
>>> plans to move the default darwin-specific implementation elsewhere --
>>> thus potentially making this change redundant. 
>>> 
>>> 
>>> On Sun, Mar 27, 2011 at 08:38:24PM -0400, Stephen Wilson wrote:
>>>> 
>>>> Allow subclasses of UnixSignals to access m_signals by marking the
>>>> member protected instead of private.  This enables a subclass to provide
>>>> a default signal set as appropriate on construction.
>>>> 
>>>> 
>>>> 
>>>> diff --git a/include/lldb/Target/UnixSignals.h b/include/lldb/Target/UnixSignals.h
>>>> index 3e13438..f47a90b 100644
>>>> --- a/include/lldb/Target/UnixSignals.h
>>>> +++ b/include/lldb/Target/UnixSignals.h
>>>> @@ -133,10 +133,6 @@ protected:
>>>>    void
>>>>    Reset ();
>>>> 
>>>> -private:
>>>> -    //------------------------------------------------------------------
>>>> -    // For UnixSignals only
>>>> -    //------------------------------------------------------------------
>>>>    typedef std::map <int32_t, Signal> collection;
>>>> 
>>>>    collection m_signals;
>>>> 
>>>> 
>>>> _______________________________________________
>>>> lldb-commits mailing list
>>>> lldb-commits at cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
>>> 
>>> -- 
>>> steve
>>> 
> 
> -- 
> steve
> 




More information about the lldb-commits mailing list