[comp.sys.mac.programmer] symbol tables for LSC, code resources and TMON

broe@uhura.cc.rochester.edu (Eric Brown) (05/25/89)

I am trying to debug my code resources with TMON.  The problem is
that it would be nice if I could see what procedure I was debugging.
Since TMON allows the loading of symbol tables into memory, I was
wondering if anybody knew how to get LSC to generate these symbol
tables for TMON.  According to the TMON manual p.34, this should
be a .MAP file.  Perhaps there is a way to extract this from the
code resource file - I don't know.

Thanks in advance.

-Eric.

ksitze@nmsu.edu (Kevin Sitze) (05/25/89)

In article: <broe@uhura.cc.rochester.edu's message of 24 May 89
18:06:04 GMT> Eric writes:
>I am trying to debug my code resources with TMON.  The problem is
>that it would be nice if I could see what procedure I was debugging.
>Since TMON allows the loading of symbol tables into memory, I was
>wondering if anybody knew how to get LSC to generate these symbol
>tables for TMON.  According to the TMON manual p.34, this should
>be a .MAP file.  Perhaps there is a way to extract this from the
>code resource file - I don't know.

I'm afraid that LSC doesn't generate a symbole table (as far as I
know) but you can get the information you want by going into the
options dialog box (in the Edit menu, at the very bottom).  Click on
the option 'Code Generation' and select the first choice: 'MacsBugs
symbols'.  TMON will display the first eight characters (in uppercase)
of the current routine.  No problem.

Your welcome.

					-Kelesi
--
+--------------------------------------------------------------------+
| From the Macintosh of: Kevin L. Sitze. This is ME: ksitze@NMSU.edu |
+------------------------------------------------------+-------------+
| The difference between intelligence and stupidity is |   Is this   |
| that intelligence has a limit.          -- anonymous |   better?   |
+------------------------------------------------------+-------------+

pcossenb@rodan.acs.syr.edu (Paul C. Ossenbruggen) (05/25/89)

In article <KSITZE.89May24175002@picuris.nmsu.edu> ksitze@nmsu.edu (Kevin Sitze) writes:
>In article: <broe@uhura.cc.rochester.edu's message of 24 May 89
>18:06:04 GMT> Eric writes:
>>>that it would be nice if I could see what procedure I was debugging.
>>
>I'm afraid that LSC doesn't generate a symbole table (as far as I
>know) but you can get the information you want by going into the
>options dialog box (in the Edit menu, at the very bottom).  Click on
>the option 'Code Generation' and select the first choice: 'MacsBugs
>symbols'.  TMON will display the first eight characters (in uppercase)
>of the current routine.  No problem.
>
Just remeber that TMON will not see the procedure unless the procedure sets up
a stack frame. That is, in assembly, uses the Link instruction. So procedures
without any parameters or local variables will not show up.



- Paul





-------------------------------------------------------------------------------
|  Paul C. Ossenbruggen                     pcossenb@rodan.acs.syr.edu        |
|  Syracuse University                      rspco@suvm.bitnet                 |
|                                            pcossenb@sunrise.acs.syr.edu      |