From 8ef38ee0ec3d69688cf22e4863dda71a660be238 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 2 Apr 2009 15:08:58 -0400 Subject: [PATCH] Not all breakpoint markers would be displayed in the active code debugger * Source/DebuggerController.m: (updateSourceViewer): Get all the breakpoints for the file and set the markers --- CHANGES | 1 + Source/DebuggerController.m | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 05a625c..9a1c047 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ MacGDBp CHANGE LOG ##################### - New: #155 Add a variable inspector to display the full, untruncated value - Change: The Window->Breakpoints (Cmd+Shift+B) will now toggle the visibility +- Fix: All breakpoint markers will now be displayed in the active code debugger 1.2.1 diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index 02efb08..25f5e29 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -249,6 +249,9 @@ { NSString *source = [selection valueForKey:@"source"]; [sourceViewer setString:source asFile:filename]; + + NSSet *breakpoints = [NSSet setWithArray:[[BreakpointManager sharedManager] breakpointsForFile:filename]]; + [[sourceViewer numberView] setMarkers:breakpoints]; } int line = [[selection valueForKey:@"lineNumber"] intValue]; -- 2.43.5