Discussion:
Debugging custom programming languages with wdw?
(too old to reply)
Johann 'Myrkraverk' Oskarsson
2020-04-26 17:03:20 UTC
Permalink
Dear openwatcom.contributors,

I came across bld/wv/hlp/whatsup.doc in the source tree. There they
explain that it's possible to debug AutoCAD Lisp applications with the
Watcom debugger. This is right at the start of the file, if you care
to take a look.

Is this capability still existant in the OpenWatcom source tree? Can
I develop a trap file for my own, let's say interpreted, programming
language, and debug the applications in wdw?

What are trap files, and are the sources still around?

And if I can develop a trap file for my programming language, is it
possible to use wdw to automatically switch between the host language,
and extensions written in C? Similar to some debuggers who are able to
switch between Java and C code, when the application is using JNI.
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Steven Levine
2020-04-26 22:09:04 UTC
Permalink
This post might be inappropriate. Click to display it.
Johann 'Myrkraverk' Oskarsson
2020-04-27 12:23:30 UTC
Permalink
Post by Steven Levine
On Sun, 26 Apr 2020 17:03:20 UTC, Johann 'Myrkraverk' Oskarsson
Hi Johann,
Post by Johann 'Myrkraverk' Oskarsson
Is this capability still existant in the OpenWatcom source tree?
It should be.
Post by Johann 'Myrkraverk' Oskarsson
Can
I develop a trap file for my own, let's say interpreted, programming
language, and debug the applications in wdw?
Probably. If the .trp file can control your interpreted language's
runtime, it should be possible.
Post by Johann 'Myrkraverk' Oskarsson
What are trap files, and are the sources still around?
For the gory details, see
dig\ shared debug support (debugger, trap files,
profiler)
dip\ debug info processor
mad\ machine architecture descriptions used by
debugger
trap\ debugger trap files (std.d32 etc.)
wv\ debugger (wvideo)
doc\ debugger internals docs
in the OpenWatcom sources. .trp files interface with the OpenWatcom
debugger to pass machine dependent debugging data to the OpenWatcom
debugger (wdw or wd) which are pretty much machine independent.
Post by Johann 'Myrkraverk' Oskarsson
And if I can develop a trap file for my programming language, is it
possible to use wdw to automatically switch between the host language,
and extensions written in C?
That's an interesting question. The debugger knows how switch between
assembler and C and Fortran (I think). Please let us know what you
find out.
Thank you. I'll take a look, maybe next weekend. My language is still
in the design phase, so I won't have anything to show for a while, but I
do want mixed programming with, hopefully, debugging in wdw.
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Jiri Malak
2020-05-03 14:54:35 UTC
Permalink
Post by Steven Levine
On Sun, 26 Apr 2020 17:03:20 UTC, Johann 'Myrkraverk' Oskarsson
Hi Johann,
Post by Johann 'Myrkraverk' Oskarsson
Is this capability still existant in the OpenWatcom source tree?
It should be.
Post by Johann 'Myrkraverk' Oskarsson
Can
I develop a trap file for my own, let's say interpreted, programming
language, and debug the applications in wdw?
Probably.  If the .trp file can control your interpreted language's
runtime, it should be possible.
Post by Johann 'Myrkraverk' Oskarsson
What are trap files, and are the sources still around?
For the gory details, see
       dig\              shared debug support (debugger, trap files,
profiler)
       dip\              debug info processor
       mad\             machine architecture descriptions used by
debugger
       trap\             debugger trap files (std.d32 etc.)
       wv\               debugger (wvideo)
         doc\            debugger internals docs
in the OpenWatcom sources.  .trp files interface with the OpenWatcom
debugger to pass machine dependent debugging data to the OpenWatcom
debugger (wdw or wd) which are pretty much machine independent.
Post by Johann 'Myrkraverk' Oskarsson
And if I can develop a trap file for my programming language, is it
possible to use wdw to automatically switch between the host language,
and extensions written in C?
That's an interesting question.  The debugger knows how switch between
assembler and C and Fortran (I think).  Please let us know what you
find out.
Thank you.  I'll take a look, maybe next weekend.  My language is still
in the design phase, so I won't have anything to show for a while, but I
do want mixed programming with, hopefully, debugging in wdw.
If you want introduced new Language you need to add support for it into:
- DIP (Debug Information Processor)
- support for language syntax to SSL processor (.prs files)
- encoding (code generator) and decoding (DIP) of debug information

Your host Operating system need appropriate Trap file, if you use
already supported OS, you don't need to create new trap file and you can
use it.
Details about trap file is in WD design documentation wddoc, you can
create if in pdf or other format.


Operating system (target host) is related to Trap file, that you need
develop it. Documentation related
The programming language is about debug information and its processing
in DIP processor.

Loading...