[comp.lang.c] Debugging Zortech C++

emb978@leah.Albany.Edu (Eric M. Boehm) (10/21/88)

I purchased Zortech C++ a few months ago. One of the reasons I purchased
it (other than object oriented programming) was its "compatibility" with
Codeview. However, a recent attempt at debugging was quite frustrating. I
compiled according to the manual "ztc -g -co file.c" and made sure the
linker was Microsoft. When I tried to watch a variable I got "unknown
symbol". I recompiled with quickc and had no problem. On comparing the
map files, the quickc map file had $$SYMBOLS in the symbol table. Zortech
did not.

It appears that using Zortech will allow you to display source code and step
through it. The only way to watch variables would be to watch the addresses.
You would need to go to assembly language mode (or mixed mode) to find the
variable addresses. Hardly symbolic debugging!

Has anybody else had this problem? Is there a solution? Is this a bug in
Zortech that they fixed later on? It looks like no provision was made for
watching symbols.

usenet@cps3xx.UUCP (Usenet file owner) (10/22/88)

in article <1142@leah.Albany.Edu>, emb978@leah.Albany.Edu (Eric M. Boehm) says:
> Keywords: Zortech Codeview Unknown symbol
> Xref: cps3xx comp.lang.c++:1807 comp.lang.c:13214
> 
> I purchased Zortech C++ a few months ago. One of the reasons I purchased
> it (other than object oriented programming) was its "compatibility" with
> Codeview. However, a recent attempt at debugging was quite frustrating. I

Microsoft does not publish their specs on the stack frame for local 
variables. Therefore, anyone who makes a compiler that specifies that
it is Codeview compatible really means that you can step through code
and examine global variables with Codeview. I don't have my Zortech
manual here at work with me, but I believe I saw somewhere in the manual
that you cannot look at local variables. This really is not a Zortech
specific problem, it'll happen with anybody's compiler.

I like the ZOrtech compiler alot, however, their ads are a bit
misleading, as they state that you can compile any Turbo C or Microsoft
C code without changes and that it is Codeview compatible. The
memory manipulation commands are different between Turbo and Microsoft.
Zortech does it Microsoft's way. Also, ZOrtech's method of doing
interrupts is completely different than either one.


John H. Lawitzke      UUCP: ...rutgers!mailrus!frith!fciiho!jhl
Michigan Farm Bureau        ...decvax!purdue!mailrus!frith!fciiho!jhl
Insurance Group

cww@ndmath.UUCP (Clarence W. Wilkerson) (11/05/88)

One limitation listed was that local variables can not
be watched.
.