[fpc-pascal] Nonfunctional debugger on OS X

Lance Boyle lanceboyle at cwazy.co.uk
Sun Jan 30 11:55:54 CET 2005


On Jan 29, 2005, at 2:05 AM, Paul Davidson wrote:

> Using XCode as well.  It would be good idea to upgrade your compiler 
> to 1.9.6.  Go to directory containing fpc dir and:
>
>   cvs -z 3 -d :pserver:cvs at cvs.freepascal.org:/FPC/CVS checkout -r 
> RELEASE_1_9_6
>
> Build instructions are at 
> http://www.surtec.com/~rj/Xcode-FreePascal/#FPC/CVS-Quickstart

I installed (from binary) 1.9.6. There was no change in the debugger 
warnings as I originally posted.
>
> As far as variables are concerned, you can typically only see local 
> vars.  Never been able to see
> string in meaningful way.

Not being able to see global variables seems like a significant bug.
>
> You may also wish to re-install the fpc XCode files

After installing 1.9.6, I attempted to re-install the XCode Integration 
Kit 1.1. The installer crashes. I've sent Dr. Jansen a crash log, but I 
don't think it is necessary to re-install Integration Kit anyway.

Jerry

>
> pd
>
> On Jan 29, 2005, at 1:14, Lance Boyle wrote:
>
>> I'm trying out FPC on OS X using XCode and am having trouble 
>> debugging. I installed FPC a few months ago and I _think_ I have 
>> 1.9.5, and I used the very cool Xcode Integration Kit at the time. 
>> I'm using XCode 1.5 on 10.3.7.
>>
>> I also have installed GNAT, the Ada 95 compiler.
>>
>> I think GNAT replaces or patches GDB or some file associated with GDB.
>>
>> When I run the Hello World for the Pascal Tool (console app) with a 
>> breakpoint set on the writeln('Hello, World!'), the debugger sees it 
>> (execution pauses) but I'm not able to see the value of i, the loop 
>> variable, in the debugger window. I tried adding an array and I can't 
>> see it either.
>>
>> I'm wondering if the GNAT-altered GDB is causing the problem.
>>
>> I think there is a Mac GNAT person on one of the Pascal lists, so I'm 
>> wondering if I might get a hint as to what is happening here.
>>
>> I'll paste the debug output below.
>>
>> Thanks for any help,
>> Jerry
>>
>>
>> [Session started at 2005-01-28 22:59:40 -0700.]
>> GNU gdb 2003-01-28-cvs (Tue Jan  6 00:06:50 GMT 2004)
>> Copyright 2003 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and 
>> you are
>> welcome to change it and/or distribute copies of it under certain 
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for 
>> details.
>> This GDB was configured as "powerpc-apple-darwin7.2.0".
>> Loading program into debugger…
>> tty /dev/ttyp1
>> warning: Mapped symbol file "/usr/libexec/gdb/symfiles/dyld.syms" is 
>> for a different version of GDB; ignoring
>> warning: Mapped symbol file 
>> "/usr/libexec/gdb/symfiles/libSystem.B.dylib.syms" is for a different 
>> version of GDB; ignoring
>> Program loaded.
>> run
>> [Switching to process 3019 local thread 0xd03]
>> Running…
>> warning: Mapped symbol file 
>> "/usr/libexec/gdb/symfiles/libmathCommon.A.dylib.syms" is for a 
>> different version of GDB; ignoring
>> Warning: the current language does not match this frame.
>> Hello, World!
>> Hello, World!
>> Hello, World!
>> Hello, World!
>> Hello, World!
>>
>> Debugger stopped.
>> Program exited with status value:0.(gdb)
>>
>>





More information about the fpc-pascal mailing list