macgdbp.git
15 years agoUpdate version number 1.1.2
Robert Sesek [Tue, 14 Oct 2008 01:47:23 +0000 (21:47 -0400)]
Update version number

* Info.plist

15 years agoHave the debugger and breakpoints windows remember their size and location
Robert Sesek [Mon, 13 Oct 2008 15:05:16 +0000 (11:05 -0400)]
Have the debugger and breakpoints windows remember their size and location

* English.lproj/Breakpoints.xib: Set autosave name
* English.lproj/Debugger.xib: ditto
* Source/DebuggerController.m:
(awakeFromNib): Do not call [window center] anymore

15 years agoSaved breakpoints (or any breakpoint) that had a file that does not exist would crash...
Robert Sesek [Mon, 13 Oct 2008 14:07:47 +0000 (10:07 -0400)]
Saved breakpoints (or any breakpoint) that had a file that does not exist would crash MacGDBp

* Source/BSSourceView.m:
(setFile:): If the file does not exist, simply display an empty string
(scrollToLine:): If the file does not exist, return

15 years agoUpdate the version to 1.1.1 1.1.1
Robert Sesek [Wed, 20 Aug 2008 18:53:44 +0000 (14:53 -0400)]
Update the version to 1.1.1

* Info.plist

15 years agoAllow multiple selection and removal of breakpoints
Robert Sesek [Wed, 20 Aug 2008 18:50:17 +0000 (14:50 -0400)]
Allow multiple selection and removal of breakpoints

* English.lproj/Breakpoints.xib: Allow multiple selection
* Source/BreakpointController.m:
(removeBreakpoint:): Remove the selection's entirety, instead of the first element

15 years agoFix a bug where breakpoints would be recreated exponentially after their removal
Robert Sesek [Wed, 20 Aug 2008 18:47:50 +0000 (14:47 -0400)]
Fix a bug where breakpoints would be recreated exponentially after their removal

* Source/BreakpointManager.m:
(removeBreakpointAt:inFile:): Need to call -[removeObject:] instead of -[addObject:]

15 years agoAdd the bug numbers to the change log 1.1
Robert Sesek [Mon, 4 Aug 2008 17:00:11 +0000 (13:00 -0400)]
Add the bug numbers to the change log

* CHANGES

15 years agoPreferences should be set in +load rather than +initialize, as we can’t rely on AppDe...
Ciarán Walsh [Tue, 15 Jul 2008 07:40:07 +0000 (08:40 +0100)]
Preferences should be set in +load rather than +initialize, as we can’t rely on AppDelegate receiving a message before any other objects (In this case, DebuggerController was being created first, leading to sockets without the correct default port number).

* Source/AppDelegate.m:
(initialize): Change to load

15 years agoChanging the version to be 1.1
Robert Sesek [Fri, 1 Aug 2008 17:23:04 +0000 (13:23 -0400)]
Changing the version to be 1.1

* Info.plist

15 years agoKeep breakpoints in the preferences so they are restored at launch
Robert Sesek [Fri, 1 Aug 2008 17:21:57 +0000 (13:21 -0400)]
Keep breakpoints in the preferences so they are restored at launch

* Source/BreakpointManager.m+h: Add a savedBreakpoints ivar to hold the dictionarys
(addBreakpoint:): Add the breakpoint to the NSUserDefaults
(removeBreakpointAt:inFile:): Remove the breakpoint from NSUserDefaults

15 years agoAdd a CHANGES file to manage the change log
Robert Sesek [Wed, 30 Jul 2008 16:21:36 +0000 (12:21 -0400)]
Add a CHANGES file to manage the change log

* CHANGES

15 years agoFixing a memory leak
Robert Sesek [Tue, 15 Jul 2008 14:47:18 +0000 (10:47 -0400)]
Fixing a memory leak

* Source/DebuggerController.m:
(gutterClickedAtLine:forFile:): The breakpoint (bp) sent to BreakpointManager is over-retained

15 years agoCheck and see if stderr has any data on it when syntax highlighting. If so, only...
Robert Sesek [Mon, 14 Jul 2008 19:13:34 +0000 (15:13 -0400)]
Check and see if stderr has any data on it when syntax highlighting. If so, only show plain text.

* Source/BSSourceView.m:
(initWithFrame): Register to be an observer of the file handle reader notification
(setFile:): Add another pipe for stderr, and read in background from it
(errorHighlightingFile:): New method to handle the notification

15 years agoCode formatting
Robert Sesek [Mon, 14 Jul 2008 17:06:59 +0000 (13:06 -0400)]
Code formatting

15 years agoRenaming NSXMLElementAdditions(NSXMLElementAdditions) to be NSXMLElementAdditions...
Robert Sesek [Mon, 14 Jul 2008 16:16:31 +0000 (12:16 -0400)]
Renaming NSXMLElementAdditions(NSXMLElementAdditions) to be NSXMLElementAdditions(GDBpAdditions)

15 years agoRenaming BreakpointWindowController to BreakpointController
Robert Sesek [Mon, 14 Jul 2008 16:15:39 +0000 (12:15 -0400)]
Renaming BreakpointWindowController to BreakpointController

15 years agoRenaming DebuggerConnection to GDBpConnection
Robert Sesek [Mon, 14 Jul 2008 16:14:04 +0000 (12:14 -0400)]
Renaming DebuggerConnection to GDBpConnection

15 years agoRenaming DebuggerWindowController to DebuggerController
Robert Sesek [Mon, 14 Jul 2008 16:12:10 +0000 (12:12 -0400)]
Renaming DebuggerWindowController to DebuggerController

15 years agoAdd IBOutlets for both DebuggerWindowController and BreakpointWindowController
Robert Sesek [Mon, 14 Jul 2008 16:07:41 +0000 (12:07 -0400)]
Add IBOutlets for both DebuggerWindowController and BreakpointWindowController

* Source/AppDelegate.h: Add the IBOutlets
* English.lproj/MainMenu.xib: Hook up the IBOs

15 years ago-[SocketWrapper(Private) error:] would send message to a non-existent selector
Robert Sesek [Mon, 14 Jul 2008 15:49:29 +0000 (11:49 -0400)]
-[SocketWrapper(Private) error:] would send message to a non-existent selector

* Source/SocketWrapper.m:
(error:): [errorEncountered:] has been replaced with [setError:]

15 years agoThe subviews of BSSourceView were over-retained
Robert Sesek [Mon, 14 Jul 2008 15:44:20 +0000 (11:44 -0400)]
The subviews of BSSourceView were over-retained

* Source/BSSourceView.m:
(dealloc): Call [removeFromSuperview] on the subviews

15 years agoUpdate the version to 1.1 Beta 1
Robert Sesek [Mon, 14 Jul 2008 13:12:02 +0000 (09:12 -0400)]
Update the version to 1.1 Beta 1

15 years agoFix build errors. Properties cannot be synthesized if they are defined in a category
Robert Sesek [Mon, 14 Jul 2008 13:10:15 +0000 (09:10 -0400)]
Fix build errors. Properties cannot be synthesized if they are defined in a category

* Source/SocketWrapper.m

15 years agoMerge branch 'memory-fixes'
Robert Sesek [Mon, 14 Jul 2008 12:56:38 +0000 (08:56 -0400)]
Merge branch 'memory-fixes'

15 years agoValidate user interface items for the Debugger menu
Robert Sesek [Sun, 13 Jul 2008 23:36:10 +0000 (19:36 -0400)]
Validate user interface items for the Debugger menu

* Source/DebuggerWindowController.m:
(init): Set self to be [self window]'s delegate
(validateUserInterfaceItem:): New method

15 years agoFixing a bug in -[SocketWrapper receive] that could miss up to the last 8 bytes of...
Robert Sesek [Sun, 13 Jul 2008 16:43:38 +0000 (12:43 -0400)]
Fixing a bug in -[SocketWrapper receive] that could miss up to the last 8 bytes of a response

* Source/SocketWrapper.m:
(receive): A multi-packet response could be incomplete by a difference of 8 bytes because we didn't factor in packetLength when counting

15 years agoAdd a call to NSAssert() to stop us if we receive incomplete packets from SocketWrapper
Robert Sesek [Sun, 13 Jul 2008 15:29:26 +0000 (11:29 -0400)]
Add a call to NSAssert() to stop us if we receive incomplete packets from SocketWrapper

* Source/SocketWrapper.m:
(receive): Assert that the packet is a complete XML document

15 years agoA few miscellaneous memory management fixes
Ciarán Walsh [Wed, 25 Jun 2008 00:01:25 +0000 (01:01 +0100)]
A few miscellaneous memory management fixes

* Source/BSSourceView.m:
(setFile:): Autorelease the NSTask and release the NSAttributedString
* Source/BSSplitView.m:
(drawDividerInRect:): Release the NSGradient after drawing
* Source/Breakpoint.m:
(initWithDictionary:): Retain the file object
* Source/BreakpointManager.m:
(hasBreakpointAtLine:inFile:): Autorelease the object we send to [containsObject:]

15 years agoThe -connect: method would leak memory when called more than once
Ciarán Walsh [Wed, 25 Jun 2008 00:00:43 +0000 (01:00 +0100)]
The -connect: method would leak memory when called more than once

* Source/SocketWrapper.m: Add a private prop for the hostname
(remoteHost): Removed through use of a prop
(connect:): Change from alloc'ing an NSString to creating an autorelease'd one

15 years agoA crash would occur in the event that -setFile: was called with the same path string...
Ciarán Walsh [Tue, 24 Jun 2008 23:24:44 +0000 (00:24 +0100)]
A crash would occur in the event that -setFile: was called with the same path string object as is currently own

* Source/BSSourceView.m:
(setFile:)

15 years agoSending messages to nil is always safe (a no-op)
Ciarán Walsh [Tue, 24 Jun 2008 23:23:15 +0000 (00:23 +0100)]
Sending messages to nil is always safe (a no-op)

* Source/BSSourceView.m:
(dealloc): Don't need to check and see if file is nil before [release]

15 years agoMerge branch 'menu-validation'
Robert Sesek [Sun, 13 Jul 2008 23:45:10 +0000 (19:45 -0400)]
Merge branch 'menu-validation'

Conflicts:

English.lproj/MainMenu.xib: Took HEAD XIB and copied branch XIB's Debugger menu manually

15 years agoValidate user interface items for the Debugger menu
Robert Sesek [Sun, 13 Jul 2008 23:36:10 +0000 (19:36 -0400)]
Validate user interface items for the Debugger menu

* Source/DebuggerWindowController.m:
(init): Set self to be [self window]'s delegate
(validateUserInterfaceItem:): New method

15 years agoFixing a bug in -[SocketWrapper receive] that could miss up to the last 8 bytes of...
Robert Sesek [Sun, 13 Jul 2008 16:43:38 +0000 (12:43 -0400)]
Fixing a bug in -[SocketWrapper receive] that could miss up to the last 8 bytes of a response

* Source/SocketWrapper.m:
(receive): A multi-packet response could be incomplete by a difference of 8 bytes because we didn't factor in packetLength when counting

15 years agoAdd a call to NSAssert() to stop us if we receive incomplete packets from SocketWrapper
Robert Sesek [Sun, 13 Jul 2008 15:29:26 +0000 (11:29 -0400)]
Add a call to NSAssert() to stop us if we receive incomplete packets from SocketWrapper

* Source/SocketWrapper.m:
(receive): Assert that the packet is a complete XML document

15 years agoAdding the "Debugger" menu to the NIB file and hooking up the actions for them
Robert Sesek [Thu, 10 Jul 2008 11:41:52 +0000 (07:41 -0400)]
Adding the "Debugger" menu to the NIB file and hooking up the actions for them

* English.lproj/MainMenu.xib

15 years agoTracking the Italian versin of Sparkle
Robert Sesek [Thu, 10 Jul 2008 11:34:35 +0000 (07:34 -0400)]
Tracking the Italian versin of Sparkle

* Sparkle.framework/Versions/A/Resources/it.lproj/: Add

15 years agoAdd the Sparkle keys to Info.plist
Robert Sesek [Thu, 10 Jul 2008 11:29:11 +0000 (07:29 -0400)]
Add the Sparkle keys to Info.plist

* Info.plist

15 years agoHook up the "Check for updates..." menu item
Robert Sesek [Thu, 10 Jul 2008 11:15:49 +0000 (07:15 -0400)]
Hook up the "Check for updates..." menu item

* English.lproj/MainMenu.xib

15 years agoUpdating Sparkle to use a version that uses CFBundleShortVersionString for comparisio...
Robert Sesek [Thu, 10 Jul 2008 11:13:44 +0000 (07:13 -0400)]
Updating Sparkle to use a version that uses CFBundleShortVersionString for comparision instead of CFBundleVersion

* Sparkle.framework/

15 years agoRemove the old version checking system that we wrote ourselves
Robert Sesek [Wed, 9 Jul 2008 17:58:00 +0000 (13:58 -0400)]
Remove the old version checking system that we wrote ourselves

* Source/AppDelegate.m+h: Removed updater outlets
(applicationDidFinishLaunching:): Removed
(versionCheck:): Removed
(openUpdateInformation:): Removed
* English.lproj/MainMenu.xib: Removed the update window

15 years agoAdd Sparkle framework and hook it up (except for the appcast URL)
Robert Sesek [Wed, 9 Jul 2008 17:54:08 +0000 (13:54 -0400)]
Add Sparkle framework and hook it up (except for the appcast URL)

* English.lproj/MainMenu.xib: Instantiate the SUUpdater
* MacGDBp.xcodeproj: Add a build phase and link against Sparkle.framework
* Sparkle.framewokr/: New files

15 years agoInstantiate the Debugger and Breakpoint controllers in the NIB rather than in code
Robert Sesek [Wed, 9 Jul 2008 17:45:02 +0000 (13:45 -0400)]
Instantiate the Debugger and Breakpoint controllers in the NIB rather than in code

* English.lproj/MainMenu.xib: Instantiate DebuggerWindowController and BreakpointWindowController
* Source/AppDelegate.m:
(applicationDidFinishLaunching:): Remove the two object init lines

15 years agoUse prefernce values to set the port and IDE key, rather than hard-coded values
Robert Sesek [Wed, 9 Jul 2008 17:39:55 +0000 (13:39 -0400)]
Use prefernce values to set the port and IDE key, rather than hard-coded values

* Source/DebuggerWindowController.m+h:
(initWithPort:session:): Renamed to -[init] and use preference values to set the port and IDE key
* Source/AppDelegate.m:
(applicationDidFinishLaunching:): Simply call init on DebuggerWindowController

15 years agoAdd a warning that says to close and reopen MacGDBp after changing pref values
Robert Sesek [Wed, 9 Jul 2008 17:31:42 +0000 (13:31 -0400)]
Add a warning that says to close and reopen MacGDBp after changing pref values

* English.lproj/Preferences.xib

15 years agoBind the preference inputs to the NSUserDefaultsController
Robert Sesek [Wed, 9 Jul 2008 17:29:47 +0000 (13:29 -0400)]
Bind the preference inputs to the NSUserDefaultsController

* English.lproj/Preferences.xib

15 years agoSetting the default values for NSUserDefaults
Robert Sesek [Wed, 9 Jul 2008 17:27:06 +0000 (13:27 -0400)]
Setting the default values for NSUserDefaults

* Source/AppDelegate.m:
(initialize): Register the default preferences dict

15 years agoLaying out the user interface for the preferences window
Robert Sesek [Wed, 9 Jul 2008 17:09:56 +0000 (13:09 -0400)]
Laying out the user interface for the preferences window

* English.lproj/Preferences.xib

15 years agoAdding an empty preferences window and controller. Hooking up the Preferences menu...
Robert Sesek [Wed, 9 Jul 2008 17:05:14 +0000 (13:05 -0400)]
Adding an empty preferences window and controller. Hooking up the Preferences menu item.

* English.lproj/MainMenu.xib: Hooking up the Preferences menu item
* English.lproj/Preferences.xib: New file
* Source/PreferencesController.m+h: New files
* Source/AppDelegate.m+h: Adding an ivar for the PreferencesController
(showPreferences:): New method
* MacGDBp.xcodeproj: Project updates for new files

15 years agoMerge branch 'bug-125' 1.0.1
Robert Sesek [Mon, 23 Jun 2008 13:45:46 +0000 (09:45 -0400)]
Merge branch 'bug-125'

Conflicts:

Source/BSSourceView.m

15 years agoInstead of using the "stopping" status, just use "Stopped" for both itself and "stopping"
Robert Sesek [Mon, 23 Jun 2008 13:28:49 +0000 (09:28 -0400)]
Instead of using the "stopping" status, just use "Stopped" for both itself and "stopping"

* Source/DebuggerConnection.m:
(refreshStatus)

15 years agoClose the connection when we receive the "stopping" status. Fixes bug://report/125
Robert Sesek [Sun, 22 Jun 2008 16:25:05 +0000 (12:25 -0400)]
Close the connection when we receive the "stopping" status. Fixes bug://report/125

* Source/DebuggerConnection.m:
(refreshStatus): The "stopped" and "stopping" statuses should have the same effect now

15 years agoMake the markers prop in BSLineNumberView be retain instead of assign
Robert Sesek [Sun, 22 Jun 2008 16:10:47 +0000 (12:10 -0400)]
Make the markers prop in BSLineNumberView be retain instead of assign

* Source/BSLineNumberView.h

15 years agoBalancing with a [release] call
Robert Sesek [Sun, 22 Jun 2008 16:08:19 +0000 (12:08 -0400)]
Balancing with a [release] call

* Source/BSLineNumberView.m:
(drawRect:)

15 years agoMerge git://github.com/ciaran/macgdbp
Robert Sesek [Sun, 22 Jun 2008 14:21:24 +0000 (10:21 -0400)]
Merge git://github.com/ciaran/macgdbp

15 years agoWe need to balanace with a [release] call
Robert Sesek [Sun, 22 Jun 2008 13:58:34 +0000 (09:58 -0400)]
We need to balanace with a [release] call

* Source/BreakpointWindowController.m:
(gutterClickedAtLine:forFile:)

15 years agoSyntax highlight source files using the PHP executable
Ciarán Walsh [Sun, 22 Jun 2008 00:48:17 +0000 (01:48 +0100)]
Syntax highlight source files using the PHP executable

15 years agoTell the breakpoints window to open at launch, though in back of the debugger
Robert Sesek [Wed, 18 Jun 2008 18:13:07 +0000 (14:13 -0400)]
Tell the breakpoints window to open at launch, though in back of the debugger

* Source/BreakpointWindowController.m:
(init): [orderBack:] the window

15 years agoAdded a [release] call
Robert Sesek [Wed, 18 Jun 2008 18:09:38 +0000 (14:09 -0400)]
Added a [release] call

* Source/AppDelegate.m:
(versionCheck:): Need to release the NSXMLDocument because we alloc'd it

15 years agoVersion 1.0.1
Robert Sesek [Wed, 18 Jun 2008 14:18:13 +0000 (10:18 -0400)]
Version 1.0.1

* Info.plist

15 years agoReturn the NSXMLDocument in [DebuggerConnection processData:] as autorelease
Robert Sesek [Wed, 18 Jun 2008 14:13:23 +0000 (10:13 -0400)]
Return the NSXMLDocument in [DebuggerConnection processData:] as autorelease

* Source/DebuggerConnection.m:
(processData:): [autorelease] the retval

15 years agoInstead of leaking an alloc'd NSString, use an autorelease'd initializer
Robert Sesek [Wed, 18 Jun 2008 13:47:43 +0000 (09:47 -0400)]
Instead of leaking an alloc'd NSString, use an autorelease'd initializer

* Source/SocketWrapper.m:
(receive:): When building up the full NSString, use the non-alloc-izing initializer

15 years agoThe hostname was using an autorelease'd initializer, so switch to an alloc'd one
Robert Sesek [Wed, 18 Jun 2008 13:40:31 +0000 (09:40 -0400)]
The hostname was using an autorelease'd initializer, so switch to an alloc'd one

* Source/SocketWrapper.m:
(connect:): Use [NSString initWithUTF8String:] instead of [NSString stringWithUTF8String:]
(dealloc): Add the corresponding release call

15 years agoFix a few exceptions/warnings related to going no-gc
Robert Sesek [Wed, 18 Jun 2008 13:26:40 +0000 (09:26 -0400)]
Fix a few exceptions/warnings related to going no-gc

* Source/AppDelegate.m
(versionCheck:): Add an NSAutoreleasePool
* Source/BreakpointManager.h: Specify an assignment type for the connection ivar
* Source/SocketWrapper.m:
(connect:): Add an NSAutoreleasePool

15 years agoMerge branch 'master' into no-gc
Robert Sesek [Wed, 18 Jun 2008 13:17:01 +0000 (09:17 -0400)]
Merge branch 'master' into no-gc

15 years agoCenter the version check window (when it pops up) and the main window 1.0
Robert Sesek [Tue, 17 Jun 2008 13:27:21 +0000 (09:27 -0400)]
Center the version check window (when it pops up) and the main window

* Source/AppDelegate.m:
(versionCheck:)
* Source/DebuggerWindowController.m:
(awakeFromNib)

15 years agoHave the help menu go to our website instead of saying no help avaliable
Robert Sesek [Tue, 17 Jun 2008 13:21:40 +0000 (09:21 -0400)]
Have the help menu go to our website instead of saying no help avaliable

* Source/AppDelegate.m+h:
(openHelpPage:): New method
* English.lproj/MainMenu.xib: Change the IBA for the help action

15 years agoAdding a *real* version checking system
Robert Sesek [Mon, 16 Jun 2008 23:51:40 +0000 (19:51 -0400)]
Adding a *real* version checking system

* English.lproj/MainMenu.xib: Adding the version update window
* Source/AppDelegate.h: Adding IBOs for the updater window and the update information string
* Source/AppDelegate.m:
(init): Run the version check method
(versionCheck:): New method
(openUpdateInformation:): New method

15 years agoThis is going to be v1.0
Robert Sesek [Thu, 12 Jun 2008 16:24:07 +0000 (12:24 -0400)]
This is going to be v1.0

* Info.plist

15 years agoAfter we establish a connection, we need to resend any offline breakpoints
Robert Sesek [Thu, 12 Jun 2008 16:20:08 +0000 (12:20 -0400)]
After we establish a connection, we need to resend any offline breakpoints

* Source/DebuggerConnection.m:
(socketDidAccept:)

15 years agoProtect against array out of bounds exceptions when removing breakpoints
Robert Sesek [Thu, 12 Jun 2008 16:19:30 +0000 (12:19 -0400)]
Protect against array out of bounds exceptions when removing breakpoints

* Source/BreakpointWindowController.m:
(removeBreakpoint:): If there are no selected objects in the NS-AC, don't try to remove breakpoints

15 years agoChange the font size of the breakpoint NS-TV to be size 11
Robert Sesek [Thu, 12 Jun 2008 15:36:45 +0000 (11:36 -0400)]
Change the font size of the breakpoint NS-TV to be size 11

* English.lproj/Breakpoints.xib

15 years agoThe breakpoint manager now works -- breakpoints can be set from the main debugger...
Robert Sesek [Thu, 12 Jun 2008 15:31:53 +0000 (11:31 -0400)]
The breakpoint manager now works -- breakpoints can be set from the main debugger or the manager

* English.lproj/Breakpoints.xib: Set the NSTableView's delegate to be File's Owner and disconnect the content IBO to the NS-AC
* Source/BreakpointManager.m:
(updateDisplaysForfile:): New private method
(addBreakpoint:): Call [updateDisplaysForfile:]
(removeBreakpointAt:inFile:): ditto
* BreakpointWindowController.m+h: Add props and synth them for sourceView and arrayController ivars
(removeBreakpoint:): Fill out method stub
(tableViewSelectionDidChange:): Implement delegate method
* DebuggerWindowController.m+h: Add prop/synth for sourceViewer ivar

15 years agoFixing a bug where if the register depth was too deep, more properties would not...
Robert Sesek [Thu, 12 Jun 2008 13:51:57 +0000 (09:51 -0400)]
Fixing a bug where if the register depth was too deep, more properties would not be fetched/inserted correctly

* Source/AppDelegate.m+h: Add and synthesize props for debugger and breakpoint ivars
* Source/DebuggerConnection.m+h:
(getProperty:forNode:): Renamed [getProperty:] and now return an NSArray rather than attaching to a node
* Source/DebuggerWindowController.m+h:
(addChildren:toNode:): Removed
(outlineViewItemDidExpand:): Don't have to do extra fetch work here because it will now be done in the model
* Source/NSXMLElementAdditions.m+h:
(subnodes): New method that does the same thing as [children] but intelligently fetches more depth
* English.lproj/Debugger.xib: Tell the regiser NSTreeController to use [subnodes] instead of [children]

15 years agoAnother instance where [BSLineNumberView setMarkers:] takes a set and not an NSArray
Robert Sesek [Wed, 11 Jun 2008 20:56:29 +0000 (16:56 -0400)]
Another instance where [BSLineNumberView setMarkers:] takes a set and not an NSArray

* Source/BreakpointWindowController.m:
(gutterClickedAtLine:forFile:)

15 years agoTrying to use mutableChildNodes and appending mock-NSTreeNode objects
Robert Sesek [Wed, 11 Jun 2008 19:33:40 +0000 (15:33 -0400)]
Trying to use mutableChildNodes and appending mock-NSTreeNode objects

15 years agoIndex path by appending IP with a counter
Robert Sesek [Wed, 11 Jun 2008 17:57:22 +0000 (13:57 -0400)]
Index path by appending IP with a counter

15 years agoIndex path by appending 0 to the IP
Robert Sesek [Wed, 11 Jun 2008 17:55:44 +0000 (13:55 -0400)]
Index path by appending 0 to the IP

15 years ago[BSLineNumberView setMarkers:] takes an NSSet and not an NSArray
Robert Sesek [Wed, 11 Jun 2008 14:30:04 +0000 (10:30 -0400)]
[BSLineNumberView setMarkers:] takes an NSSet and not an NSArray

* Source/DebuggerWindowController.m:
(gutterClickedAtLine:forFile:): Create an NSSet from the NSArray

15 years agoSet the "Automatically Rearranges Content" and "Prepares Content" flags on the Breakp...
Robert Sesek [Wed, 11 Jun 2008 14:26:54 +0000 (10:26 -0400)]
Set the "Automatically Rearranges Content" and "Prepares Content" flags on the Breakpoints.xib NSArrayController

* English.lproj/Breakpoints.xib

15 years agoIn DebuggerConnection, we need to protect against setting breakpoints with no active...
Robert Sesek [Wed, 11 Jun 2008 14:11:17 +0000 (10:11 -0400)]
In DebuggerConnection, we need to protect against setting breakpoints with no active connection

* Source/DebuggerConnection.m:
(addBreakpoint:)
(removeBreakpoint:)

15 years agoSet the BSSourceView's delegate in Breakpoints.xib
Robert Sesek [Wed, 11 Jun 2008 13:51:36 +0000 (09:51 -0400)]
Set the BSSourceView's delegate in Breakpoints.xib

* English.lproj/Breakpoints.xib

15 years agoHave the BreakpointManager tell the DebuggerConnection about breakpoints, rather...
Robert Sesek [Wed, 11 Jun 2008 13:46:12 +0000 (09:46 -0400)]
Have the BreakpointManager tell the DebuggerConnection about breakpoints, rather than controllers

* Source/BreakpointManager.m:
(addBreakpoint:)
(removeBreakpointAt:inFile:)
* Source/DebuggerWindowController.m:
(gutterClickedAtLine:forFile:)

15 years agoAuto-hide the scrollbars in BSSourceView
Robert Sesek [Tue, 10 Jun 2008 18:33:58 +0000 (14:33 -0400)]
Auto-hide the scrollbars in BSSourceView

* Source/BSSourceView.m:
(setupViews)

15 years agoAutomatically hide scrollbars on the NSTableView of breakpoints
Robert Sesek [Tue, 10 Jun 2008 18:26:24 +0000 (14:26 -0400)]
Automatically hide scrollbars on the NSTableView of breakpoints

* English.lproj/Breakpoints.xib

15 years agoSet the BreakpointManager's connection to the DebuggerConnection instance
Robert Sesek [Tue, 10 Jun 2008 18:21:05 +0000 (14:21 -0400)]
Set the BreakpointManager's connection to the DebuggerConnection instance

* Source/DebuggerConnection.m:
(initWithWindowController:port:session): Set the connection to be self

15 years agoAdd a prop for DebuggerConnection and change the breakpoints ivar to a prop
Robert Sesek [Tue, 10 Jun 2008 18:04:59 +0000 (14:04 -0400)]
Add a prop for DebuggerConnection and change the breakpoints ivar to a prop

* Source/BreakpointManager.m+h

15 years agoHooking up the BSSourceView outlet and implement delegates
Robert Sesek [Tue, 10 Jun 2008 17:59:53 +0000 (13:59 -0400)]
Hooking up the BSSourceView outlet and implement delegates

* English.lproj/Breakpoints.xib: Hook up outlet
* Source/BreakpointWindowController.h: Add the ivar
* Source/BreakpointWindowController.m:
(addBreakpoint:): Show the NSOpenPanel to select a file
(gutterClickedAtLine:forFile:): New method

15 years agoHooking up a NSArrayController to manage the breakpoints
Robert Sesek [Tue, 10 Jun 2008 16:35:14 +0000 (12:35 -0400)]
Hooking up a NSArrayController to manage the breakpoints

* English.lproj/Breakpoints.xib
* Source/BreakpointWindowController.h: Add an ivar for the NSAC

15 years agoAdding IBAs to Breakpoints.xib and the BWC
Robert Sesek [Tue, 10 Jun 2008 16:11:21 +0000 (12:11 -0400)]
Adding IBAs to Breakpoints.xib and the BWC

* English.lproj/Breakpoints.xib: Adding actions for the +/- buttons
* Source/BreakpointWindowController.m+h: Adding the code complements for the IBAs

15 years agoRewrite BreakpointManager to use NSArray instead a faux hashtable using a NSDictionary
Robert Sesek [Tue, 10 Jun 2008 15:58:11 +0000 (11:58 -0400)]
Rewrite BreakpointManager to use NSArray instead a faux hashtable using a NSDictionary

* Source/Breakpoint.m+h

15 years agoAdd an ivar for the BreakpointManager in the BreakpointWindowController
Robert Sesek [Tue, 10 Jun 2008 15:30:11 +0000 (11:30 -0400)]
Add an ivar for the BreakpointManager in the BreakpointWindowController

* Source/BreakpointWindowController.h: Add the ivar manager
* Source/BreakpointWindowController.m:
(init:): Set the ivar to the sharedManager

15 years agoFixing some UI quirks in the breakpoints window
Robert Sesek [Mon, 9 Jun 2008 20:40:30 +0000 (16:40 -0400)]
Fixing some UI quirks in the breakpoints window

* English.lproj/Breakpoints.xib

15 years agoFinishing hooking up the XIB
Robert Sesek [Mon, 9 Jun 2008 20:35:40 +0000 (16:35 -0400)]
Finishing hooking up the XIB

* English.lproj/Breakpoints.xib: Set File's Owner to be BreakpointWindowController and set the window IBO
* Source/BreakpointWindowController.m:
(init): Adding a comment

15 years agoFixed a warning in Source/BSSourceView.m:48 -- method possibly missing a [super deall...
Robert Sesek [Mon, 9 Jun 2008 20:06:09 +0000 (16:06 -0400)]
Fixed a warning in Source/BSSourceView.m:48 -- method possibly missing a [super dealloc] call

15 years agoDisabling GC
Robert Sesek [Mon, 9 Jun 2008 20:05:06 +0000 (16:05 -0400)]
Disabling GC

* MacGDBp.xcodeproj

15 years agoMerge branch 'master' into no-gc
Robert Sesek [Mon, 9 Jun 2008 20:04:06 +0000 (16:04 -0400)]
Merge branch 'master' into no-gc

Conflicts:

Source/Breakpoint.m
Source/ConnectWindowController.m

15 years agoWe need an instance of BreakpointWindowController in AppDelegate
Robert Sesek [Mon, 9 Jun 2008 19:55:03 +0000 (15:55 -0400)]
We need an instance of BreakpointWindowController in AppDelegate

* Source/AppDelegate.m:
(applicationDidFinishLaunching:): Init BreakpointWindowController to breakpoints
* Source/BreakpointWindowController.m:
(init): Add an init method

15 years agoAdding a breakpoints NSWindowController for Breakpoints.xib
Robert Sesek [Mon, 9 Jun 2008 19:51:01 +0000 (15:51 -0400)]
Adding a breakpoints NSWindowController for Breakpoints.xib

* Source/BreakpointWindowController.m+h: New files
* MacGDBp.xcodeproj: Project updates for BreakpointWindowController
* Source/AppDelegate.m+h:
(showBreakpointWindow:): New method
* English.lproj/MainMenu.xib: Add a

15 years agoAdding Breakpoints.xib for the breakpoints manager
Robert Sesek [Mon, 9 Jun 2008 19:43:39 +0000 (15:43 -0400)]
Adding Breakpoints.xib for the breakpoints manager

* English.lproj/Breakpoints.xib: New file
* MacGDBp.xcodeproj: Project updates for the new XIB