panicTrap - Code to trap Tcl panic calls and dump the tcl stack 

A Tcl interface to the tcl's panic service.

This project provides a Tcl code to trap tcl panics.
It defines a procedure "panicTrap" which, when called, dumps the stack.
Since we can not really depend on tcl to be whole when this happens,
we attempt to use basic C functions to do this.

On a panic, it will do the dump to stderr and then exit.

For instructions on how to use, consult the panicTrap (n) man page.

To make type:

      ./configure
      make 
      make install

The configure script will deduce $PREFIX from the tcl installation.
The generated Makefile uses the file $PREFIX/lib/tclConfig.sh that was left by
the make of tcl for most of its configuration parameters.

The Makefile generates pkgIndex.tcl files that are compatible with tcl >= 7.6.

Written by:  Tom Turkey (tom@gandk.site)

Use at your own risk.

    Copyright (C) 2023 Tom Turkey

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
