[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Source Locators



    Date: Tue, 16 Jun 87 03:17 EDT
    From: Robert W. Kerns <RWK@YUKON.SCRC.Symbolics.COM>
        Date: Wed, 10 Jun 87 12:02:29 PDT
        From: luria@renoir.Berkeley.EDU (Marc Luria)
        In Genera 7, when viewing code in the debugger, I get the message

        this function was not compiled with source locators and therefore
        will not be mouse sensitive.  How do I compile with source locators,
        and what will become mouse sensitive?

    Source locators are information that the compiler can put into a compiled
    function to allow the :Show Source Code command to know what piece of
    code corresponds to what PC in the function.  This allows it to do various
    things with the code, such as evaluating the code fragment (m-sh-Middle)
    set a breakpoint on it (c-m-L) or proceed to a that point (c-m-R).

    You can also manipulate breakpoints on code from the editor, using the
    same gestures, if you've compiled the function with source-locators.
    You don't have to get into the debugger somehow so you can do :Show Compiled
    Code; just go to the editor and click on the right piece.  (Yet another
    advantage of the editor using the dynamic-window technology).

    You compile with source locators by setting compiler:*inhibit-using-source-locators*
    to nil and compiling from the editor, or by compiling using the c-m-sh-C command,
    which toggles the value of compiler:*inhibit-using-source-locators*.

Funny isn't it. I have compiler:*inhibit-using-source-locators* set to nil
and I have never been able to even observe the aformentioned magic. Not in
Zmacs, not with the :Show source Code command, not in the debugger with
a :Show Compiled Code command, and not with the window debugger. Nothing ever
seems to become mouse sensitive. When I do a <help> apropos in Zmacs pertaining
to the keywords "source", "breakpoint", etc. I find no commands. I know that this
only works with compilation to core and not to file and thats what I have done.
I can't find any documentation on this obscure seemingly unimplemented feature.
Does it really exist? Can someone tell me what I am doing wrong?
        Jeff (Qobi)
-------