Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] Another try at Cygwin GDB - mi.core

You could actually do the same thing without making changes to MISession
or the SourceManager.  What you would do, is in the CygwinGdbDebugger create your
own mi CommandFactory which extends the default, but overrides the
createMIEnvironmentDirectory(dirs) method which then translate the dirs to cygwin dirs,
then set the CommandFactroy on the MISession (setCommandFactory()). This is all local
to the create methods of ICDebugger for CygwinGDBDebugger.  I hope this is clear....


Schaefer, Doug wrote:
I have made another attempt at supporting Cygwin GDB without messing with native GDB. This patch (and the following one for mi.ui) creates a new debugger for Cygwin GDB. It subclasses the GDBDebugger but sets a flag in MISession to not that this is Cygwin. The Source Manager checks the flag and converts the path if necessary. Please review.

[snip]



Back to the top