Skip to content

Commit

Permalink
Merge pull request #535 from jsschultz/master
Browse files Browse the repository at this point in the history
Fix redundant registry values for python exceptions under AD7Metrics\…
  • Loading branch information
zooba committed Jul 1, 2015
2 parents fb37cae + 9c0ef1f commit 459cdc4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Common/Product/SharedProject/ProvideDebugExceptionAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,15 @@ public override void Register(RegistrationAttribute.RegistrationContext context)
key.SetValue("Code", _code);
key.SetValue("State", (int)_state);

string name = _path.LastOrDefault() ?? "*";
engineKey.SetValue(name, (int)(_state & DkmValidFlags));
// Debug engine load time can be improved by writing the exception category default
// stop setting and exceptions to the default settings at the exception category reg
// key node. This improves debug engine load time by getting necessary exception stop
// settings for the entire category without having to enumerate the entire category
// hive structure when loading the debug engine.
string name = _path.LastOrDefault();
if (name == null || !BreakByDefault) {
engineKey.SetValue(name ?? "*", (int)(_state & DkmValidFlags));
}
}

public override void Unregister(RegistrationAttribute.RegistrationContext context) {
Expand Down

0 comments on commit 459cdc4

Please sign in to comment.