@@ -102,7 +102,7 @@ private class ExceptionCategorySettings
102102 // 1. Writes and reads when *NOT* on the FlushSettingsUpdates thread - collection should be locked on itself
103103 // 2. Reads on the FlushSettingsUpdates thread - no locking is needed
104104 public ExceptionBreakpointStates CategoryState ;
105- public readonly Dictionary < string , ulong > CurrentRules = new Dictionary < string , ulong > ( ) ;
105+ public readonly Dictionary < string , long > CurrentRules = new Dictionary < string , long > ( ) ;
106106
107107 private readonly object _updateLock = new object ( ) ;
108108 /*OPTIONAL*/
@@ -302,7 +302,7 @@ public bool TryGetExceptionBreakpoint(string bkptno, ulong address, TupleValue f
302302 ExceptionCategorySettings categorySettings ;
303303 if ( _categoryMap . TryGetValue ( CppExceptionCategoryGuid , out categorySettings ) )
304304 {
305- ulong breakpointNumber = Convert . ToUInt32 ( bkptno , CultureInfo . InvariantCulture ) ;
305+ long breakpointNumber = Convert . ToInt32 ( bkptno , CultureInfo . InvariantCulture ) ;
306306 lock ( categorySettings . CurrentRules )
307307 {
308308 exceptionName = categorySettings . CurrentRules . FirstOrDefault ( pair => pair . Value == breakpointNumber ) . Key ;
@@ -511,8 +511,8 @@ private async Task UpdateCategory(Guid categoryId, ExceptionCategorySettings cat
511511 {
512512 try
513513 {
514- IEnumerable < ulong > breakpointIds = await _commandFactory . SetExceptionBreakpoints ( categoryId , null , newCategoryState ) ;
515- ulong breakpointId = breakpointIds . Single ( ) ;
514+ IEnumerable < long > breakpointIds = await _commandFactory . SetExceptionBreakpoints ( categoryId , null , newCategoryState ) ;
515+ long breakpointId = breakpointIds . Single ( ) ;
516516 lock ( categorySettings . CurrentRules )
517517 {
518518 categorySettings . CurrentRules . Add ( "*" , breakpointId ) ;
@@ -531,12 +531,12 @@ private async Task UpdateCategory(Guid categoryId, ExceptionCategorySettings cat
531531 if ( updates . RulesToRemove . Count > 0 )
532532 {
533533 // Detach these exceptions from 'CurrentRules'
534- List < ulong > breakpointsToRemove = new List < ulong > ( ) ;
534+ List < long > breakpointsToRemove = new List < long > ( ) ;
535535 lock ( categorySettings . CurrentRules )
536536 {
537537 foreach ( string exceptionToRemove in updates . RulesToRemove )
538538 {
539- ulong breakpointId ;
539+ long breakpointId ;
540540 if ( ! categorySettings . CurrentRules . TryGetValue ( exceptionToRemove , out breakpointId ) )
541541 continue ;
542542
@@ -575,7 +575,7 @@ private async Task UpdateCategory(Guid categoryId, ExceptionCategorySettings cat
575575 {
576576 try
577577 {
578- IEnumerable < ulong > breakpointIds = await _commandFactory . SetExceptionBreakpoints ( categoryId , exceptionNames , grouping . Key ) ;
578+ IEnumerable < long > breakpointIds = await _commandFactory . SetExceptionBreakpoints ( categoryId , exceptionNames , grouping . Key ) ;
579579
580580 lock ( categorySettings . CurrentRules )
581581 {
@@ -584,7 +584,7 @@ private async Task UpdateCategory(Guid categoryId, ExceptionCategorySettings cat
584584 // remove old breakpoint if exceptionName is in categorySettings.CurrentRules.Keys
585585 if ( categorySettings . CurrentRules . ContainsKey ( exceptionName ) )
586586 {
587- _commandFactory . RemoveExceptionBreakpoint ( categoryId , new ulong [ ] { categorySettings . CurrentRules [ exceptionName ] } ) ;
587+ _commandFactory . RemoveExceptionBreakpoint ( categoryId , new long [ ] { categorySettings . CurrentRules [ exceptionName ] } ) ;
588588 }
589589 categorySettings . CurrentRules [ exceptionName ] = breakpointId ;
590590 return 1 ;
@@ -609,15 +609,15 @@ private async Task UpdateCategory(Guid categoryId, ExceptionCategorySettings cat
609609 }
610610 if ( ! isBreakThrown )
611611 {
612- ulong breakpointId ;
612+ long breakpointId ;
613613 lock ( categorySettings . CurrentRules )
614614 {
615615 foreach ( string exceptionName in exceptionNames )
616616 {
617617 if ( ! categorySettings . CurrentRules . TryGetValue ( exceptionName , out breakpointId ) )
618618 continue ;
619619
620- _commandFactory . RemoveExceptionBreakpoint ( categoryId , new ulong [ ] { breakpointId } ) ;
620+ _commandFactory . RemoveExceptionBreakpoint ( categoryId , new long [ ] { breakpointId } ) ;
621621 categorySettings . CurrentRules . Remove ( exceptionName ) ;
622622 }
623623 }
0 commit comments