jingham added a comment.

That still seems wrong to me.  The UnixSignals class manages the data about 
signal state including how to respond to them, so it should be the class that 
comprehends that data.  The mental exercise of "if I had to do this in another 
place, would I have to duplicate an algorithm wholly specific to this class" is 
not over-engineering, it's how you decide where responsibility lies.  And in 
this case it's clear that if another process class wanted to do this job, it 
would have to duplicate this code, which means it doesn't belong in Process.


https://reviews.llvm.org/D30520



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to