From: "Yuri Prokushev" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Date sent: Thu, 05 Dec 2002 02:25:19 +0600 (NSK) Priority: Normal Subject: [Sibyl] Send reply to: [EMAIL PROTECTED]
Hi, > >> h) Text-mode IDE > >> i) Debugger (GDB & GDB library) > TM> This is very important, I think. I really need an IDE with > TM> debuger to start working on OpenSibyl. Maybe I can help with > TM> IDE. I've never done this, but I'd like to try. Where to start if > TM> I want to add code to the IDE? > First of all, you need cvs. IDE and FreeVision available only in 1.1 > branch of fpc. Checkout sources. Binaries can be downloaded for ftp or > www of freepascal.org. For GDB support required GDB sources and gcc. > Adding GDB support not so easy, as I know. Now IDE work, but still > buggy. There are several things you could do, depending what suits best for you: 1) If you know C (at least partly), you might be able to compile EMX patched version of GDB sources to libgdb, and even add the available patches for Pascal language support on top of this afterwards (they'll need modifications most probably because of EMX patches). This would be enough to make debugging directly withing IDE possible (although not ideal - the old GDB 4.16 used by Eberhard Mattes for EMX has several problems, and the Pascal language support can only be limited there; still sufficient for basic things though). 2) If you know C somewhat better you could try to incorporate EMX patches originally created for GDB 4.16 to a some newer GDB version. This would have clear advantages (Pascal support is already integrated in later GDB versions), but is probably quite difficult. 3) If you're quite good in classical (objects based) TP/BP OOP (i.e. not the classes model known from Delphi) and/or Turbo Vision, you could try to fix one remaining compatibility problem of the current FreeVision - TView coordinates are absolute (whereas original TV uses relative coordinates based on position of its owner). This is a generic thing, not really bound to OS/2, but would be quite needed to enhance TP/BP compatibility and thus add FVision to future official FPC releases. 4) You could try to test and fix the IDE without GDB. This doesn't need much specific knowledge probably - just patient testing. Some of them might be bugs of the OS/2 version of RTL API units (keyboard, mouse, video) in fact. 5) You could try to fix the OS/2 INF documentation files support which is supposed to be available, but doesn't work (or at least didn't work for me). > BTW, current GDB can be used to debug. For watching vars use uppercase > varnames (of course, you can add them only by hands, not automaticaly > if use PMGDB). This is perfectly true, of course. GDB syntax isn't very easy to use, but it definitely works. In addition, PMGDB interface can make things _somewhat_ easier (tracing through source files is without any problems, viewing contents of variables can be done quite easily once you remember you have to uppercase everything and use C syntax where appropriate). Tomas ----------- To unsubscribe yourself from this list, send the following message to [EMAIL PROTECTED] unsubscribe sibyl end