Re: [Cgdb-devel] Mac OS X 10.5 cgdb Patches
Brought to you by:
bobbybrasko,
crouchingturbo
From: Bob R. <bo...@br...> - 2009-07-22 02:37:33
|
On Mon, Jun 15, 2009 at 04:18:51PM -0700, Kyle McKay wrote: > cgdb-0.6.4 has difficulties building for Mac OS X 10.5. It needs to > have HAVE_OPENPTY defined. > > You can either do: > > CFLAGS=-DHAVE_OPENPTY ./configure > > Or apply a patch to configure.init. The patches are attached to cgdb > bug 2806868 here: > > https://sourceforge.net/tracker/?func=detail&aid=2806854&group_id=72581&atid=534974 OK, I've applied this patch, please try this test release, http://brasko.net:81/bob/cgdb-20090721.tar.gz and let me know how it works out. If it works for you, I'll put it in the next release. > Additionally, Mac OS X commonly uses files with > extensions .cp, .m, .mm and .M. These files are not currently > colorized by the cgdb tokenizer. The C tokenizer does a very good job > with these (.cp = C++, .m = Objective-C, .mm/.M = Objective-C++). A > simple patch to tokenizer.c allows the C tokenizer to colorize these. > The patch is attached to cgdb bug 2806868 here: > > https://sourceforge.net/tracker/?func=detail&aid=2806868&group_id=72581&atid=534974 I'd prefer not to do a solution like this. However, if you want to write the entire scanner for the Objective-C++ language, I'll accept it. I can show you what to do if you want. It's mostly just a flex scanner under the hood. All you really need to do is enumerate all the keywords. Thanks, Bob Rossi |