Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!cornell!rochester!pt.cs.cmu.edu!cat.cmu.edu!pane From: pane@cat.cmu.edu (John Pane) Newsgroups: comp.sys.mac.programmer Subject: Re: Running MacApp1.1 under MPW 3.0? Message-ID: <5202@pt.cs.cmu.edu> Date: 13 Jun 89 13:50:15 GMT References: <3949@hacgate.scg.hac.com> <32367@apple.Apple.COM> Organization: Carnegie-Mellon University, CS/RI Lines: 39 In article <32367@apple.Apple.COM> keith@Apple.COM (Keith Rollin) writes: >2) The article in FrameWorks states that debug versions of your program will >likely not work. In fact, I have NEVER heard of anyone getting a debug >version of they MacApp program to work after being compiled with MPW 3.0. >You don't state above whether or not you are creating non-debug or debug >versions of your program, so I don't know if this comment applies. I have successfully patched MacApp 1.1.1 to allow creation of a debugging version with MPW 3.0. We use the debugging version daily here on the MacGnome project, and it seems to work fine. It's been a while, but here is a list of what I think I did to get it to work: UMeasure.p, Line 10: Changed the {$D++} to {$D+} UTrace.inc1.p, Lines 994-996: Replaced this While loop with the While loop and adjacent If statement from the MacApp 2.0 code: {Search for RTS or JMP (A0) or RTD #$00nn} {Thanks to Mike Bentley} WHILE (pc^ - 1 <> $4E75 - 1) & (pc^ - 1 <> $4ED0 - 1) & (pc^ - 1 <> $4E74 - 1) DO pc := ZPINTEGER(ORD(pc) + 2); IF pc^ - 1 = $4E74 - 1 THEN {If it was RTD, skip past displacement} pc := ZPINTEGER(ORD4(pc) + 2); MacApp.make1, Line 10: Add the compiler switch "-mbg ch8" to the PascalOptions variable. -- John Pane pane@cs.cmu.edu School of Computer Science Carnegie Mellon University (412) 268-5884 -- John Pane pane@cs.cmu.edu School of Computer Science Carnegie Mellon University (412) 268-5884 --