home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
4
/
4003
< prev
next >
Wrap
Text File
|
1991-09-08
|
43KB
|
1,182 lines
Newsgroups: alt.sources
Path: wupost!zaphod.mps.ohio-state.edu!think.com!news.bbn.com!mips2!bubba!jtsillas
From: jtsillas@bubba.ma30.bull.com (James Tsillas)
Subject: mxgdb 1.0.3 (1/10)
Organization: Bull HN, Worldwide Information Systems, Billerica, Mass., USA
Distribution: alt
Date: 6 Sep 91 14:19:31
Message-ID: <JTSILLAS.91Sep6141931@bubba.ma30.bull.com>
Sender: news@mips2.ma30.bull.com (Usenet News Manager)
This is the source for mxgdb 1.0.3. Mxgdb is a Motif based GUI for the GNU gdb
utility. It is based on xxgdb (which is based on xdbx). This version adds
support for clone-device pseudo-tty's and enhances the command button
handling. Some bugs have also been fixed and some optimization has been done.
Mxgdb requires X11R4 and Motif 1.1 libraries. Below is the part of the README
file which contains some compatibility information:
-----------------------------------------------------------------------------
To build on SCO Unix or Bull DPX/ProStation 25 add -Dsco and -DSYSV.
To build on Bull DPX/2-[23]00 add -DNCLX, -DSYSV and -Dncl_mr.
To build on ISC UNIX add -DSYSV -DSVR4_PTY.
To build on Sun 4 and Sun 3 use -DSYSV and -DSUNOS4 if using SunOS 4.0 or
earlier, and usr /usr/5bin/cc compiler. If using SunOS 4.1 do not used -DSYSV
or -DSUNOS4 and use the normal compiler.
To build on SVR4 add -DSYSV and -DSVR4_PTY.
To build on BSD add nothing and cross your fingers.
To build on SystemV.3 add -DSYSV and cross your fingers.
To build on MIPS RISC/OS or Bull BOS/RISC use the bsd43 systype (which is the
default imake) and add nothing.
Mxgdb now supports /dev/ptmx (or SVR4 style) pseudo-tty's. If your system
has these types of pty's use -DSVR4_PTY when building.
GNU malloc is supplied with mxgdb to help improve speed. You may need to add
flags in order to build malloc.o. If you do not wish to use GNU malloc or if
you have trouble building gnu malloc, remove the malloc.c and malloc.o entries
in the Imakefile.
-----------------------------------------------------------------------------
Mxgdb is successfully running on a variety of systems. If you get it working on
a system not listed here. Let me know so I can include it on the list
and add the compilation options.
This version of mxgdb will not work with gdb-3.98 since the command formats
have changed with this release. I will most likely fix this with gdb-4.0.
Documentation will not be written for mxgdb at least until I am satisfied with
the interface. If someone wishes to write documentation I will gladly help.
---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (shar 3.46)
# made 08/26/1991 20:50 UTC by jtsillas@bullet
# Source directory /nfs/bubba/users/jtsillas
#
# existing files will NOT be overwritten unless -c is specified
#
# This is part 1 of a multipart archive
# do not concatenate these parts, unpack them in order with /bin/sh
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 6 -rw-r--r-- mxgdb/CVS.adm/Repository
# 2359 -rw-rw-r-- mxgdb/CVS.adm/Entries
# 6 -rw-r--r-- mxgdb/CVS.adm/Mod
# 2359 -rw-rw-r-- mxgdb/CVS.adm/Entries.Backup
# 339 -rw-r--r-- mxgdb/CVS.adm/Files
# 2518 -rw-rw-r-- mxgdb/filemenu.c
# 2399 -rw-rw-r-- mxgdb/README
# 10149 -rw-rw-r-- mxgdb/defs.h
# 838 -rw-r--r-- mxgdb/arrows.h
# 729 -rw-rw-r-- mxgdb/Imakefile
# 12188 -rw-r--r-- mxgdb/Makefile
# 18082 -rw-rw-r-- mxgdb/command.c
# 3289 -rw-rw-r-- mxgdb/Mxgdb.ad
# 1967 -rw-rw-r-- mxgdb/bitmaps.h
# 9084 -rw-rw-r-- mxgdb/callgdb.c
# 27029 -rw-rw-r-- mxgdb/source.c
# 10834 -rw-r--r-- mxgdb/signs.c
# 21420 -rw-rw-r-- mxgdb/windows.c
# 18249 -rw-r--r-- mxgdb/gdb_parser.c
# 17655 -rw-r--r-- mxgdb/gdb_regex.h
# 11294 -rw-rw-r-- mxgdb/global.h
# 539 -rw-r--r-- mxgdb/getpagesize.h
# 4220 -rw-rw-r-- mxgdb/signals.c
# 6448 -rw-rw-r-- mxgdb/handler.c
# 25023 -rw-r--r-- mxgdb/malloc.c
# 6984 -rw-rw-r-- mxgdb/parser.c
# 46422 -rw-r--r-- mxgdb/regex.c
# 10897 -rw-r--r-- mxgdb/regex.h
# 9190 -rw-r--r-- mxgdb/dialog.c
# 3928 -rw-r--r-- mxgdb/utils.c
# 32812 -rw-r--r-- mxgdb/callgdb.o
# 7504 -rw-rw-r-- mxgdb/gdb.c
# 9950 -rw-rw-r-- mxgdb/mxgdb.c
# 19079 -rw-rw-r-- mxgdb/bitmaps.c
# 19264 -rw-r--r-- mxgdb/gdb_handler.c
# 44536 -rw-r--r-- mxgdb/command.o
# 32760 -rw-r--r-- mxgdb/gdb.o
# 34500 -rw-r--r-- mxgdb/dialog.o
# 31312 -rw-r--r-- mxgdb/filemenu.o
# 44568 -rw-r--r-- mxgdb/handler.o
# 45664 -rw-r--r-- mxgdb/parser.o
# 14796 -rw-r--r-- mxgdb/regex.o
# 36756 -rw-r--r-- mxgdb/signs.o
# 31896 -rw-r--r-- mxgdb/signals.o
# 49528 -rw-r--r-- mxgdb/source.o
# 32256 -rw-r--r-- mxgdb/utils.o
# 49708 -rw-r--r-- mxgdb/windows.o
# 36036 -rw-r--r-- mxgdb/mxgdb.o
# 5484 -rw-r--r-- mxgdb/malloc.o
# 3660 -rw-r--r-- mxgdb/bitmaps.o
# 12178 -rw-r--r-- mxgdb/Makefile.bak
#
if test -r _shar_seq_.tmp; then
echo 'Must unpack archives in sequence!'
echo Please unpack part `cat _shar_seq_.tmp` next
exit 1
fi
# ============= mxgdb/CVS.adm/Repository ==============
if test ! -d 'mxgdb'; then
echo 'x - creating directory mxgdb'
mkdir 'mxgdb'
fi
if test ! -d 'mxgdb/CVS.adm'; then
echo 'x - creating directory mxgdb/CVS.adm'
mkdir 'mxgdb/CVS.adm'
fi
if test -f 'mxgdb/CVS.adm/Repository' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/CVS.adm/Repository (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/CVS.adm/Repository (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/CVS.adm/Repository' &&
mxgdb
SHAR_EOF
chmod 0644 mxgdb/CVS.adm/Repository ||
echo 'restore of mxgdb/CVS.adm/Repository failed'
Wc_c="`wc -c < 'mxgdb/CVS.adm/Repository'`"
test 6 -eq "$Wc_c" ||
echo 'mxgdb/CVS.adm/Repository: original size 6, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/CVS.adm/Entries ==============
if test -f 'mxgdb/CVS.adm/Entries' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/CVS.adm/Entries (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/CVS.adm/Entries (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/CVS.adm/Entries' &&
1.6|Fri Aug 2 15:07:36 1991 Fri Aug 2 15:07:36 1991 Mxgdb|
1.1.1.1|Fri Aug 2 15:07:47 1991 Fri Aug 2 15:07:47 1991 patchlevel.h|
-1.2|Wed Aug 7 23:46:41 1991 Wed Aug 7 23:46:20 1991 dbx.c|
-1.7|Wed Aug 7 23:46:23 1991 Wed Aug 7 23:46:23 1991 xdbx.c|
-1.3|Fri Aug 2 15:07:51 1991 Fri Aug 2 15:07:51 1991 triton.h|
-1.4|Wed Aug 14 13:51:44 1991 Wed Aug 14 13:51:44 1991 bitmaps2.h|
-1.1.1.1|Fri Aug 2 15:07:40 1991 Fri Aug 2 15:07:40 1991 datadpy.h|
1.2|Fri Aug 23 09:09:37 1991 Fri Aug 2 15:07:37 1991 arrows.h|
1.5|Fri Aug 23 09:09:42 1991 Wed Aug 14 13:51:47 1991 dialog.c|
1.3|Fri Aug 23 09:09:39 1991 Fri Aug 16 18:24:29 1991 gdb_parser.c|
1.2|Fri Aug 23 09:09:39 1991 Fri Aug 2 15:07:43 1991 gdb_regex.h|
1.1.1.1|Fri Aug 23 09:09:39 1991 Fri Aug 2 15:07:44 1991 getpagesize.h|
1.1.1.1|Fri Aug 23 09:09:40 1991 Fri Aug 2 15:07:46 1991 malloc.c|
1.1.1.1|Fri Aug 23 09:09:41 1991 Fri Aug 2 15:07:48 1991 regex.c|
1.1.1.1|Fri Aug 23 09:09:41 1991 Fri Aug 2 15:07:49 1991 regex.h|
-1.8|Wed Aug 14 13:51:45 1991 Wed Aug 14 13:51:45 1991 calldbx.c|
1.4|Fri Aug 23 09:09:38 1991 Wed Aug 7 17:30:43 1991 signs.c|
1.1.1.1|Fri Aug 23 09:09:42 1991 Fri Aug 2 15:07:52 1991 utils.c|
1.1|Fri Aug 23 12:34:19 1991 Fri Aug 23 12:34:19 1991 bitmaps.c|
1.1|Fri Aug 23 12:34:20 1991 Fri Aug 23 12:34:20 1991 callgdb.c|
1.1|Fri Aug 23 12:34:22 1991 Fri Aug 23 12:34:22 1991 gdb.c|
1.1|Fri Aug 23 12:34:23 1991 Fri Aug 23 12:34:23 1991 mxgdb.c|
1.3|Fri Aug 23 12:34:25 1991 Fri Aug 23 12:34:25 1991 Imakefile|
1.13|Fri Aug 23 12:34:26 1991 Fri Aug 23 12:34:26 1991 Mxgdb.ad|
1.9|Fri Aug 23 12:34:28 1991 Fri Aug 23 12:34:28 1991 README|
1.3|Fri Aug 23 12:34:29 1991 Fri Aug 23 12:34:29 1991 bitmaps.h|
1.10|Fri Aug 23 12:34:31 1991 Fri Aug 23 12:34:31 1991 command.c|
1.7|Fri Aug 23 12:34:33 1991 Fri Aug 23 12:34:33 1991 defs.h|
1.9|Fri Aug 23 12:34:34 1991 Fri Aug 23 12:34:34 1991 filemenu.c|
1.12|Fri Aug 23 12:34:36 1991 Wed Aug 21 18:58:15 1991 gdb_handler.c|
1.13|Fri Aug 23 12:34:38 1991 Fri Aug 23 12:34:38 1991 global.h|
1.2|Fri Aug 23 12:34:40 1991 Fri Aug 23 12:34:39 1991 handler.c|
1.2|Fri Aug 23 12:34:41 1991 Fri Aug 23 12:34:41 1991 parser.c|
1.4|Fri Aug 23 12:34:42 1991 Fri Aug 23 12:34:42 1991 signals.c|
1.13|Fri Aug 23 12:34:45 1991 Fri Aug 23 12:34:45 1991 source.c|
1.17|Fri Aug 23 12:34:47 1991 Fri Aug 23 12:34:47 1991 windows.c|
SHAR_EOF
chmod 0664 mxgdb/CVS.adm/Entries ||
echo 'restore of mxgdb/CVS.adm/Entries failed'
Wc_c="`wc -c < 'mxgdb/CVS.adm/Entries'`"
test 2359 -eq "$Wc_c" ||
echo 'mxgdb/CVS.adm/Entries: original size 2359, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/CVS.adm/Mod ==============
if test -f 'mxgdb/CVS.adm/Mod' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/CVS.adm/Mod (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/CVS.adm/Mod (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/CVS.adm/Mod' &&
dbx.c
SHAR_EOF
chmod 0644 mxgdb/CVS.adm/Mod ||
echo 'restore of mxgdb/CVS.adm/Mod failed'
Wc_c="`wc -c < 'mxgdb/CVS.adm/Mod'`"
test 6 -eq "$Wc_c" ||
echo 'mxgdb/CVS.adm/Mod: original size 6, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/CVS.adm/Entries.Backup ==============
if test -f 'mxgdb/CVS.adm/Entries.Backup' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/CVS.adm/Entries.Backup (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/CVS.adm/Entries.Backup (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/CVS.adm/Entries.Backup' &&
1.6|Fri Aug 2 15:07:36 1991 Fri Aug 2 15:07:36 1991 Mxgdb|
1.1.1.1|Fri Aug 2 15:07:47 1991 Fri Aug 2 15:07:47 1991 patchlevel.h|
1.16|Wed Aug 14 13:51:54 1991 Wed Aug 14 13:51:54 1991 windows.c|
-1.2|Wed Aug 7 23:46:41 1991 Wed Aug 7 23:46:20 1991 dbx.c|
-1.7|Wed Aug 7 23:46:23 1991 Wed Aug 7 23:46:23 1991 xdbx.c|
-1.3|Fri Aug 2 15:07:51 1991 Fri Aug 2 15:07:51 1991 triton.h|
-1.4|Wed Aug 14 13:51:44 1991 Wed Aug 14 13:51:44 1991 bitmaps2.h|
-1.1.1.1|Fri Aug 2 15:07:40 1991 Fri Aug 2 15:07:40 1991 datadpy.h|
1.2|Fri Aug 23 09:09:37 1991 Fri Aug 2 15:07:37 1991 arrows.h|
1.5|Fri Aug 23 09:09:42 1991 Wed Aug 14 13:51:47 1991 dialog.c|
1.3|Fri Aug 23 09:09:39 1991 Fri Aug 16 18:24:29 1991 gdb_parser.c|
1.2|Fri Aug 23 09:09:39 1991 Fri Aug 2 15:07:43 1991 gdb_regex.h|
1.1.1.1|Fri Aug 23 09:09:39 1991 Fri Aug 2 15:07:44 1991 getpagesize.h|
1.1.1.1|Fri Aug 23 09:09:40 1991 Fri Aug 2 15:07:46 1991 malloc.c|
1.1.1.1|Fri Aug 23 09:09:41 1991 Fri Aug 2 15:07:48 1991 regex.c|
1.1.1.1|Fri Aug 23 09:09:41 1991 Fri Aug 2 15:07:49 1991 regex.h|
-1.8|Wed Aug 14 13:51:45 1991 Wed Aug 14 13:51:45 1991 calldbx.c|
1.4|Fri Aug 23 09:09:38 1991 Wed Aug 7 17:30:43 1991 signs.c|
1.1.1.1|Fri Aug 23 09:09:42 1991 Fri Aug 2 15:07:52 1991 utils.c|
1.1|Fri Aug 23 12:34:19 1991 Fri Aug 23 12:34:19 1991 bitmaps.c|
1.1|Fri Aug 23 12:34:20 1991 Fri Aug 23 12:34:20 1991 callgdb.c|
1.1|Fri Aug 23 12:34:22 1991 Fri Aug 23 12:34:22 1991 gdb.c|
1.1|Fri Aug 23 12:34:23 1991 Fri Aug 23 12:34:23 1991 mxgdb.c|
1.3|Fri Aug 23 12:34:25 1991 Fri Aug 23 12:34:25 1991 Imakefile|
1.13|Fri Aug 23 12:34:26 1991 Fri Aug 23 12:34:26 1991 Mxgdb.ad|
1.9|Fri Aug 23 12:34:28 1991 Fri Aug 23 12:34:28 1991 README|
1.3|Fri Aug 23 12:34:29 1991 Fri Aug 23 12:34:29 1991 bitmaps.h|
1.10|Fri Aug 23 12:34:31 1991 Fri Aug 23 12:34:31 1991 command.c|
1.7|Fri Aug 23 12:34:33 1991 Fri Aug 23 12:34:33 1991 defs.h|
1.9|Fri Aug 23 12:34:34 1991 Fri Aug 23 12:34:34 1991 filemenu.c|
1.12|Fri Aug 23 12:34:36 1991 Wed Aug 21 18:58:15 1991 gdb_handler.c|
1.13|Fri Aug 23 12:34:38 1991 Fri Aug 23 12:34:38 1991 global.h|
1.2|Fri Aug 23 12:34:40 1991 Fri Aug 23 12:34:39 1991 handler.c|
1.2|Fri Aug 23 12:34:41 1991 Fri Aug 23 12:34:41 1991 parser.c|
1.4|Fri Aug 23 12:34:42 1991 Fri Aug 23 12:34:42 1991 signals.c|
1.13|Fri Aug 23 12:34:45 1991 Fri Aug 23 12:34:45 1991 source.c|
SHAR_EOF
chmod 0664 mxgdb/CVS.adm/Entries.Backup ||
echo 'restore of mxgdb/CVS.adm/Entries.Backup failed'
Wc_c="`wc -c < 'mxgdb/CVS.adm/Entries.Backup'`"
test 2359 -eq "$Wc_c" ||
echo 'mxgdb/CVS.adm/Entries.Backup: original size 2359, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/CVS.adm/Files ==============
if test -f 'mxgdb/CVS.adm/Files' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/CVS.adm/Files (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/CVS.adm/Files (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/CVS.adm/Files' &&
Imakefile
Mxgdb
Mxgdb.ad
README
arrows.h
bitmaps.c
bitmaps.h
bitmaps2.h
calldbx.c
callgdb.c
command.c
datadpy.h
dbx.c
defs.h
dialog.c
filemenu.c
gdb.c
gdb_handler.c
gdb_parser.c
gdb_regex.h
getpagesize.h
global.h
handler.c
malloc.c
mxgdb.c
parser.c
patchlevel.h
regex.c
regex.h
signals.c
signs.c
source.c
triton.h
utils.c
windows.c
xdbx.c
SHAR_EOF
chmod 0644 mxgdb/CVS.adm/Files ||
echo 'restore of mxgdb/CVS.adm/Files failed'
Wc_c="`wc -c < 'mxgdb/CVS.adm/Files'`"
test 339 -eq "$Wc_c" ||
echo 'mxgdb/CVS.adm/Files: original size 339, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/filemenu.c ==============
if test -f 'mxgdb/filemenu.c' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/filemenu.c (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/filemenu.c (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/filemenu.c' &&
static char rcsid[] = "$Id: filemenu.c,v 1.9 1991/08/23 16:34:34 jtsillas Exp $";
X
/* filemenu.c
X *
X * Construct a file menu (directory browser) which allows a user to go
X * up and down the directory tree, to select text files to display, and
X * to select executable files to debug. The file menu is popped up by
X * the 'file' command button.
X * Duane Voth (duanev@mcc.com) contributed to the layout of the file menu,
X * plus some code and ideas.
X *
X * File(): Command callback for the 'file' command button.
X */
X
#include <ctype.h>
#include <X11/Xos.h>
#include <sys/stat.h>
X
# include <stdio.h>
X
#include "global.h"
#include <Xm/Xm.h>
#include <Xm/FileSB.h>
X
void CancelCallBack()
{
X XtUnmanageChild(fileSel);
}
X
void OKCallBack(w, client_data, call_data)
Widget w;
caddr_t client_data;
XXmFileSelectionBoxCallbackStruct *call_data;
{
X Widget TextW;
X
X char *string;
X char command[LINESIZ];
X Arg args[5];
X struct stat statbuf;
X
X TextW = XmFileSelectionBoxGetChild(w, XmDIALOG_TEXT);
X string = (char *)XmTextGetString(TextW);
X
X XtUnmanageChild(fileSel);
#if !defined(SCO) && !defined(ISC)
X if(lstat(string, &statbuf) == -1)
#else
X if(stat(string, &statbuf) == -1)
#endif
X {
X UpdateMessageWindow("Could not stat file or directory", NULL);
X if(string) XtFree(string);
X return;
X }
X if (statbuf.st_mode & S_IFDIR)
X sprintf(command, "dir %s\n", string);
X else
X if (statbuf.st_mode & S_IEXEC) /* is executable */
X {
X sprintf(command, "exec-file %s\n", string);
X send_command(command);
X AppendDialogText(command);
X
X Echo = True;
X Parse = True;
X Prompt = False;
X while (!Prompt)
X read_dbx();
X
X sprintf(command, "symbol-file %s\n", string);
X }
X else
X {
X /* Normalize the filename to the last */
X /* part of the path. Gdb doesn't like */
X /* full pathnames in its list calls. */
X int tmpindex;
X for(tmpindex = strlen(string) + 1; string[tmpindex] != '/' &&
X tmpindex; tmpindex--);
X sprintf(command, "list %s:1\n", &string[tmpindex+1]);
X }
X send_command(command);
X AppendDialogText(command);
X XtFree(string);
}
X
X
/* File command button callback.
X */
/* ARGSUSED */
void File(w, client_data, call_data)
X Widget w;
X caddr_t client_data;
X caddr_t call_data;
{
X Arg args[MAXARGS];
X Cardinal n;
X Position x, y, x_offset;
X Dimension fileMenu_width, fileMenuLabel_width, border_width,
X width, dialog_width;
X
X XtManageChild(fileSel);
X
X UpdateMessageWindow("Select a file or directory", NULL);
}
X
X
X
X
SHAR_EOF
chmod 0664 mxgdb/filemenu.c ||
echo 'restore of mxgdb/filemenu.c failed'
Wc_c="`wc -c < 'mxgdb/filemenu.c'`"
test 2518 -eq "$Wc_c" ||
echo 'mxgdb/filemenu.c: original size 2518, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/README ==============
if test -f 'mxgdb/README' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/README (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/README (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/README' &&
$Id: README,v 1.9 1991/08/23 16:34:27 jtsillas Exp $
X
X
8-16-91
X
This is an alpha release of a Motif translation of xxgdb.
During translation alot has been changed to fit the Motif style
and my own personal preference. You may not agree with some of the
changes and I ask that you let me know; I'll listen at the very least.
X
A bug which is in this version and which I have no time to fix
is with the handling of the vertical scroll bar for the source
window. Some source files may cause the scroll bar to fail. If you
notice this problem please let me know and give some details as
to how you found it.
X
The 'display' window command could also be spruced up. Send comments on
this.
X
When writing GUI's its a big help if you know what the final look will be
before you start so I am eager to hear from people who wish to see a
particular look.
X
-----------------------------------------------------------------------------
To build on SCO Unix add -Dsco and -DSYSV.
X
To build on DPX/2-[23]00 add -DNCLX, -DSYSV and -Dncl_mr.
X
To build on ISC UNIX add -DSYSV -DSVR4_PTY.
X
To build on Sun 4 and Sun 3 use -DSYSV and -DSUNOS4 if using SunOS 4.0 or
earlier, and usr /usr/5bin/cc compiler. If using SunOS 4.1 do not used -DSYSV
or -DSUNOS4 and use the normal compiler.
X
To build on SVR4 add -DSYSV and -DSVR4_PTY.
X
To build on BSD add nothing and cross your fingers.
X
To build on SystemV.3 add -DSYSV and cross your fingers.
X
Mxgdb now supports /dev/ptmx (or SVR4 style) pseudo-tty's. If your system
has these types of pty's use -DSVR4_PTY when building.
X
GNU malloc is supplied with mxgdb to help improve speed. You may need to add
flags in order to build malloc.o. If you do not wish to use GNU malloc,
remove the malloc.c and malloc.o entries in the Imakefile.
-----------------------------------------------------------------------------
X
Mxgdb is successfully running on a variety of systems. If you get it working on
a system not listed here. Let me know so I can include it on the list
and add the compilation options.
X
This version of mxgdb will not work with gdb-3.98 since the command formats
have changed with this release. I will most likely fix this with gdb-4.0.
X
Documentation will not be written for mxgdb at least until I am satisfied with
the interface. If someone wishes to write documentation I will gladly help.
X
Enjoy.
X
-Jim.
X
My email address is:
J.Tsillas@ma30.bull.com
X
SHAR_EOF
chmod 0664 mxgdb/README ||
echo 'restore of mxgdb/README failed'
Wc_c="`wc -c < 'mxgdb/README'`"
test 2399 -eq "$Wc_c" ||
echo 'mxgdb/README: original size 2399, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/defs.h ==============
if test -f 'mxgdb/defs.h' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/defs.h (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/defs.h (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/defs.h' &&
/* $Id: defs.h,v 1.7 1991/08/23 16:34:32 jtsillas Exp $ */
X
/*****************************************************************************
X *
X * xdbx - X Window System interface to the dbx debugger
X *
X * Copyright 1989 The University of Texas at Austin
X * Copyright 1990 Microelectronics and Computer Technology Corporation
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of The University of Texas
X * and Microelectronics and Computer Technology Corporation (MCC) not be
X * used in advertising or publicity pertaining to distribution of
X * the software without specific, written prior permission. The
X * University of Texas and MCC makes no representations about the
X * suitability of this software for any purpose. It is provided "as is"
X * without express or implied warranty.
X *
X * THE UNIVERSITY OF TEXAS AND MCC DISCLAIMS ALL WARRANTIES WITH REGARD TO
X * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
X * FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF TEXAS OR MCC BE LIABLE FOR
X * ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
X * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
X * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
X * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
X *
X * Author: Po Cheung
X * Created: March 10, 1989
X *
X *****************************************************************************
X *
X * xxgdb - X Window System interface to the gdb debugger
X *
X * Copyright 1990 Thomson Consumer Electronics, Inc.
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Thomson Consumer
X * Electronics (TCE) not be used in advertising or publicity pertaining
X * to distribution of the software without specific, written prior
X * permission. TCE makes no representations about the suitability of
X * this software for any purpose. It is provided "as is" without express
X * or implied warranty.
X *
X * TCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
X * SHALL TCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
X * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X *
X * Adaptation to GDB: Pierre Willard
X * XXGDB Created: December, 1990
X *
X *****************************************************************************/
X
/* defs.h
X *
X * Contain #includes, #defines and typedefs
X */
X
#include <stdio.h>
#include <sys/param.h>
#include <X11/Xos.h>
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/Xatom.h>
#include <X11/Shell.h>
#include <X11/cursorfont.h>
#include <Xm/Xm.h>
X
#ifndef AssignMax
#define AssignMax(x, y) if ((y) > (x)) x = (y)
#endif
#ifndef AssignMin
#define AssignMin(x, y) if ((y) < (x)) x = (y)
#endif
X
#define NHELPLABELS 50 /* Number of labels for children on select */
#define NHELPBUTTONS 50 /* Number of buttons for children */
#define LINESIZ 512 /* input line length */
#define MAXNAME 256 /* max identifier length */
#define MAXARGS 20 /* max number of args */
#define ADD_SIZE 16 /* # of files added during Realloc */
#define CHARS_PER_LINE 20 /* estimated number of chars per line */
#define ADD_LINES 50 /* # of lines to be added in realloc */
#define NTOKENS 6 /* number of tokens */
#define DEBUGGER "gdb" /* name of executable */
#define XDBXPROMPT "(mxgdb) " /* xdbx prompt string */
#define DELIMITERS " !%^&*()+=~|;:{},/#<?\"\n\t"
X
#define BREAK_HELP "Please select a function name or an address, or put cursor on a line to break at"
#define CLEAR_HELP "Please select a stop sign to clear"
#define PRINT_HELP "Please select an expression to print"
#define UNDISPLAY_HELP "Please select a number to undisplay"
#define DISPLAY_HELP "Please select ax expression to display"
#define SEARCH_HELP "Nothing to search"
X
#define LASTCH(s) (s[strlen(s)-1]) /* Last character in a string */
#define SECLASTCH(s) (s[strlen(s)-2]) /* Second to last character */
X
#define _SCROLLDOWN ((int *)1) /* These are used as callback arguments */
#define _SCROLLUP ((int *)2) /* for the vertical scroll back and for the */
#define _SCROLLUPPAGE ((int *)3) /* left/right page buttons. */
#define _SCROLLDOWNPAGE ((int *)4)
#define _SCROLLDRAG ((int *)5)
#define _SCROLLRIGHT ((int *) 6)
#define _SCROLLLEFT ((int *) 7)
#define _SCROLLDROP ((int *) 8)
#define _PAGELEFT ((int *) 9)
#define _PAGERIGHT ((int *) 10)
#define SASH_MOTION 1 /* An UpdateSigns reason */
X
#define HELP_LEVELS 8 /* The maximum number of levels in help */
#define HELP_SIZE 128 /* The maximum length of help command */
X
typedef struct { /* Structure which defines a button */
X Widget Button; /* within the pulldown menu heirarchy */
X char *Label; /* in the menu bar. This is used by */
X char *Argument; /* the Command heirarchy and the Help */
X char *RN; /* heirarchy. Button specifies the */
X void (*CB)(); /* widget, Label is text placed in the */
X char *accel; /* button, Argument is passed to the */
X char *acceltext; /* callback (CB XmNactivateCallback), */
} MenuButtonStruct; /* RN is the resource name, accel and */
X /* acceltext are the accelerator KeyPress */
X /* and text, respectively. */
X
typedef struct { /* Structure which defines a pulldown menu */
X Widget CB; /* pane within the oulldown menu heirarchy. */
X Widget PM; /* CB is the CascadeButton widget, PM is the */
X char *Label; /* PM is the PulldownMenu, Label is the */
X char *RNPM; /* button's label, RNPM and RNCB are the */
X char *RNCB; /* resource names for the PM and CB, Buttons */
X MenuButtonStruct *Buttons; /* points to a MenuButton Struct for the */
X int Nbuttons; /* child buttons, Nbuttons is the number of */
X char mnemonic; /* button children, mnemonic is the mnemonic */
} PMCBStruct; /* KeySym. */
X
typedef struct { /* This structure defines the buttons for */
X Widget button; /* the vertical command buttons next to the */
X char *buttonname; /* source window. */
X char *labelbits;
X int labelwidth;
X int labelheight;
X void (*CB)();
X char *CBarg;
} buttonstruct;
X
typedef struct {
X Boolean useCommandDialog; /* Use a dialog box for the command windows */
X Boolean bell; /* if True, bell on */
X String delimiters; /* set of delimiters for word selection */
X String prompt; /* prompt string for xdbx */
X
X Pixel stop_color; /* color of stop sign */
X Pixel arrow_color; /* color of arrow sign */
X Pixel updown_color; /* color of updown sign */
X Pixel bomb_color; /* color of bomb sign */
X
X Boolean bigicon; /* xdbx option -bigicon */
X Boolean debug; /* xdbx option -debug */
X
X String includeDir; /* dbx option -I includeDir */
X String cfile; /* Berkeley dbx option -c file */
X String startup; /* SunOS 4.0 dbx option -s startup */
X String tstartup; /* SunOS 4.0 dbx option -sr tstartup */
} MxgdbResources;
X
typedef struct {
X char *filename; /* name of file */
X char *pathname; /* full path name of file */
X char *buf; /* buffer holding source file */
X long filesize; /* size of file in bytes */
X time_t mtime; /* time last modified */
X int lines; /* # of lines on display */
X int currentline; /* line where caret is */
X int topline; /* top line number in the window */
X int bottomline; /* bottom line number in window */
X int lastline; /* number of lines in source file */
X XmTextPosition topPosition; /* top display position of buffer */
X XmTextPosition *linepos; /* array of text pos for each newline*/
} FileRec, *FileRecPtr;
X
typedef struct {
X char *mesg; /* part of matched string */
X unsigned stop; /* stop number */
X char *func; /* function name */
X int line; /* line number */
X char *file; /* file name */
X char *display; /* variable display output */
} Tokens;
X
typedef struct {
X char *pat; /* regular expression */
X struct re_pattern_buffer *buf; /* buffer for compile regex */
X int reg_token[NTOKENS]; /* register number */
} PatternRec, *PatternRecPtr;
X
typedef struct commandRec {
X char *command;
X struct commandRec *next;
} CommandRec, *CommandRecPtr;
X
typedef struct {
X Cardinal i; /* index to arrowsign[] */
X char file[MAXNAME]; /* file associated with */
X int line; /* line number */
X char func[MAXNAME]; /* function name associated with */
} Arrow;
X
typedef struct {
X Cardinal i; /* index to updownsign[] */
X char file[MAXNAME]; /* file associated with */
X int line; /* line number */
X char func[MAXNAME]; /* function name associated with */
} Updown;
X
typedef struct {
X char *file; /* file associated with */
X int line; /* line number of stop */
X unsigned tag; /* used in deleting stops */
} Stops;
X
typedef struct {
X Cardinal i; /* index to bombsign[] */
X char file[MAXNAME]; /* file associated with */
X int line; /* line number */
X char func[MAXNAME]; /* function name associated with */
} Bomb;
X
X
typedef struct {
X Widget w;
X Boolean mapped;
} ArrowSign;
X
typedef struct {
X Widget w;
X Boolean mapped;
} UpdownSign;
X
typedef struct {
X Widget w;
X Boolean mapped;
} StopSign;
X
typedef struct {
X Widget w;
X Boolean mapped;
} BombSign;
SHAR_EOF
chmod 0664 mxgdb/defs.h ||
echo 'restore of mxgdb/defs.h failed'
Wc_c="`wc -c < 'mxgdb/defs.h'`"
test 10149 -eq "$Wc_c" ||
echo 'mxgdb/defs.h: original size 10149, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/arrows.h ==============
if test -f 'mxgdb/arrows.h' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/arrows.h (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/arrows.h (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/arrows.h' &&
/* $Id: arrows.h,v 1.2 1991/08/02 01:16:55 jtsillas Exp $ */
X
X
#define arrowup_width 24
#define arrowup_height 16
static char arrowup_bits[] = {
X 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x3c, 0x00,
X 0x00, 0x7e, 0x00, 0x00, 0xff, 0x00, 0x80, 0xff, 0x01, 0xc0, 0xff, 0x03,
X 0xe0, 0xff, 0x07, 0xf0, 0xff, 0x0f, 0xf8, 0xff, 0x1f, 0xfc, 0xff, 0x3f,
X 0xfe, 0xff, 0x7f, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
X
X
#define arrowdown_width 24
#define arrowdown_height 16
static char arrowdown_bits[] = {
X 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x7f, 0xfe, 0xff, 0x7f,
X 0xfc, 0xff, 0x3f, 0xf8, 0xff, 0x1f, 0xf0, 0xff, 0x0f, 0xe0, 0xff, 0x07,
X 0xc0, 0xff, 0x03, 0x80, 0xff, 0x01, 0x00, 0xff, 0x00, 0x00, 0x7e, 0x00,
X 0x00, 0x3c, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
X
SHAR_EOF
chmod 0644 mxgdb/arrows.h ||
echo 'restore of mxgdb/arrows.h failed'
Wc_c="`wc -c < 'mxgdb/arrows.h'`"
test 838 -eq "$Wc_c" ||
echo 'mxgdb/arrows.h: original size 838, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/Imakefile ==============
if test -f 'mxgdb/Imakefile' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/Imakefile (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/Imakefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/Imakefile' &&
# $Id: Imakefile,v 1.3 1991/08/23 16:34:24 jtsillas Exp $
X
#
# Read the README file for a list of options to include for your system
#
LOCAL_LIBRARIES = $(XMLIB) $(XTLIB) $(XLIB)
X
X SRCS1 = callgdb.c command.c gdb.c dialog.c filemenu.c \
X handler.c parser.c regex.c signs.c signals.c source.c \
X utils.c windows.c mxgdb.c malloc.c bitmaps.c
X
X OBJS1 = callgdb.o command.o gdb.o dialog.o filemenu.o \
X handler.o parser.o regex.o signs.o signals.o source.o \
X utils.o windows.o mxgdb.o malloc.o bitmaps.o
X
PROGRAMS = mxgdb
X
NormalLibraryObjectRule()
X
ComplexProgramTarget_1(mxgdb,$(LOCAL_LIBRARIES), $(SYSLIBS))
X
InstallAppDefaults(Mxgdb)
X
handler.o: gdb_handler.c
parser.o: gdb_parser.c gdb_regex.h
SHAR_EOF
chmod 0664 mxgdb/Imakefile ||
echo 'restore of mxgdb/Imakefile failed'
Wc_c="`wc -c < 'mxgdb/Imakefile'`"
test 729 -eq "$Wc_c" ||
echo 'mxgdb/Imakefile: original size 729, current size' "$Wc_c"
rm -f _shar_wnt_.tmp
fi
# ============= mxgdb/Makefile ==============
if test -f 'mxgdb/Makefile' -a X"$1" != X"-c"; then
echo 'x - skipping mxgdb/Makefile (File already exists)'
rm -f _shar_wnt_.tmp
else
> _shar_wnt_.tmp
echo 'x - extracting mxgdb/Makefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'mxgdb/Makefile' &&
# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
X
###########################################################################
# Makefile generated from "Imake.tmpl" and </tmp/IIf.001469>
# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
#
# Platform-specific parameters may be set in the appropriate .cf
# configuration files. Site-wide parameters may be set in the file
# site.def. Full rebuilds are recommended if any parameters are changed.
#
# If your C preprocessor doesn't define any unique symbols, you'll need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make Makefile", "make Makefiles", or "make World").
#
# If you absolutely can't get imake to work, you'll need to set the
# variables at the top of each Makefile as well as the dependencies at the
# bottom (makedepend will do this automatically).
#
X
###########################################################################
# platform-specific configuration parameters - edit Mips.cf to change
X
# platform: $XConsortium: Mips.cf,v 1.2 89/01/11 14:58:19 jim Exp $
# operating system: RISCOS
X
X SYSVTYPE = -systype sysv
X BSDTYPE = -systype bsd43
X SYSVDEFS = -DMips -DSYSV
X BSDDEFS = -DMips -DBSD43
X SYSVINCS = -I$(DESTDIR)/usr/include/bsd
X BSDINCS =
X SYSVLIBS = -lbsd -lmld
X BSDLIBS = -lmld
X
X SYSTYPE = $(BSDTYPE)
X SYSDEFS = $(BSDDEFS)
X SYSINCS = $(BSDINCS)
X SYSLIBS = $(BSDLIBS)
X
X OPTIM = -O -Olimit 2000 -Wf,-XNd8400,-XNp12000
X CCOPT = -signed
X DEFINES = -D_NO_PROTO
SYSVCFLAGS = $(OPTIM) $(CCOPT) $(SYSVTYPE) $(INCLUDES) $(SYSVDEFS) $(SYSVINCS) $(DEFINES)
X BSDCFLAGS = $(OPTIM) $(CCOPT) $(BSDTYPE) $(INCLUDES) $(BSDDEFS) $(BSDINCS) $(DEFINES)
X
X ETCDIR = /etc
X ULIBDIR = /usr/lib
X
X XINSTALLDIR = X-windows4.0
X INSTALLFLAGS = -m 0555
X RS1210DIR = $(DESTDIR)/usr/$(XINSTALLDIR)/RS1210
X CONTRIBBINDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/bin
CONTRIBAPPSDEFDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/lib/app-defaults
X CONTRIBMANDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/man
X CONTRIBSRCDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/src
X EXTRABINDIR = $(BINDIR)/extra
X RS1210LIBDIR = $(LIBDIR)/ncd
X
X BINPATH = /usr/bin/X11
X LIBPATH = /usr/lib/X11
X ETCPATH = /usr/etc/X11
X ADMPATH = /usr/adm
X NCDPATH = /usr/X11/ncd
X EXTRABINPATH = $(BINPATH)/extra
X NCDLIBPATH = $(LIBPATH)/ncd
X XINITPATH = $(LIBPATH)/xinit
X XDMPATH = $(ETCPATH)/xdm
X UWMPATH = $(LIBPATH)/uwm
X AWMPATH = $(LIBPATH)/awm
X MWMPATH = $(LIBPATH)/mwm
X TWMPATH = $(LIBPATH)/twm
X XAPPLOADPATH = $(LIBPATH)/app-defaults
X RS1210SRC = $(TOP)/rs1210
X
X MOTIFSRC = $(TOP)/motif
X MLIBSRC = $(MOTIFSRC)/lib
X MCLIENTSRC = $(MOTIFSRC)/clients
X MDEMOSRC = $(MOTIFSRC)/demos
X MTOOLKITSRC = $(MOTIFSRC)/X11R4/lib/Xt
X MWIDGETSRC = $(MLIBSRC)/Xm
X INCLUDEXMSRC = $(MLIBSRC)/Xm
X MRESOURCESRC = $(MLIBSRC)/Mrm
X MWMDIR = $(LIBDIR)/Mwm
X DEMOBINDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/demos/bin
X DEMOSRCDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/demos/src
X MINCLUDE = $(TOP)/include
X UILSRC = $(MCLIENTSRC)/uil
X UIL = $(UILSRC)/uil
X
X XMTOOLLIB = $(MTOOLKITSRC)/libXt.a
X XMLIB = $(MWIDGETSRC)/libXm.a
X MRESOURCELIB = $(MRESOURCESRC)/libMrm.a
X UILLIB = $(UILSRC)/libUil.a
X
X XWCMSRC = $(LIBSRC)/Xwcm
X SYSVDEPXWCMLIB = $(XWCMSRC)/libsysvXwcm.a
X BSDDEPXWCMLIB = $(XWCMSRC)/libbsdXwcm.a
X DEPXWCMLIB = $(XWCMSRC)/libXwcm.a
X
X SYSVXWCMLIB = $(SYSVDEPXWCMLIB)
X BSDXWCMLIB = $(BSDDEPXWCMLIB)
X XWCMLIB = $(DEPXWCMLIB)
X
X BUILDTOOLSDIR = $(TOP)/buildtools
CROSSENVOVERRIDE= DESTROOT=/ COMP_TARGET_ROOT=/ ETCDIR=/etc ULIBDIR=/usr/lib
X
###########################################################################
# site-specific configuration parameters - edit site.def to change
X
# site: $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
X
X SHELL = /bin/sh
X
X TOP = .
X CURRENT_DIR = .
X
X AR = ar clr
X BOOTSTRAPCFLAGS = $(SYSDEFS)
X CC = cc
X
X COMPRESS = compress
X CPP = /lib/cpp $(STD_CPP_DEFINES)
X PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
X INSTALL = $(ETCDIR)/mipsinstall
X LD = ld
X LINT = lint
X LINTLIBFLAG = -C
X LINTOPTS = -axz
X LN = ln -s
X MAKE = make ETCDIR='$(ETCDIR)' ULIBDIR='$(ULIBDIR)'
X MV = mv
X CP = cp
X RANLIB = /bin/true
X RANLIBINSTFLAGS =
X RM = rm -f
X STD_INCLUDES =
X STD_CPP_DEFINES = $(SYSDEFS)
X STD_DEFINES = $(SYSDEFS) $(SYSINCS)
X EXTRA_LOAD_FLAGS =
X EXTRA_LIBRARIES = $(SYSLIBS)
X TAGS = ctags
X
X SIGNAL_DEFINES = -DSIGNALRETURNSINT
X
X PROTO_DEFINES =
X
X INSTPGMFLAGS =
X
X INSTBINFLAGS = -m 0755
X INSTUIDFLAGS = -m 4755
X INSTLIBFLAGS = -m 0664
X INSTINCFLAGS = -m 0444
X INSTMANFLAGS = -m 0444
X INSTDATFLAGS = -m 0444
X INSTKMEMFLAGS = -g sys -m 2755
X
X DESTDIR = $(DESTROOT)
X
X TOP_INCLUDES = -I$(INCROOT)
X
X CDEBUGFLAGS = $(OPTIM) $(CCOPT) $(SYSTYPE)
X CCOPTIONS =
X COMPATFLAGS =
X
X ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
X ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS) $(EXT_DEFINES)
X CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
X LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
X LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
X LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
X LDCOMBINEFLAGS = -X -r
X
X MACROFILE = Mips.cf
X RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *.u *.b
X
X IMAKE_DEFINES =
X
X IRULESRC = $(CONFIGDIR)
X IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
X
X ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
X $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
X $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
X
###########################################################################
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
X
###########################################################################
# X Window System make variables; this need to be coordinated with rules
# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
X
X PATHSEP = /
X USRLIBDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/lib
X BINDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/bin
X INCROOT = $(DESTDIR)/usr/$(XINSTALLDIR)/include
X BUILDINCROOT = $(TOP)
X BUILDINCDIR = $(BUILDINCROOT)/X11
X BUILDINCTOP = ..
X INCDIR = $(INCROOT)/X11
X ADMDIR = $(DESTDIR)/usr/adm
X LIBDIR = $(USRLIBDIR)/X11
X CONFIGDIR = $(LIBDIR)/config
X LINTLIBDIR = $(USRLIBDIR)/lint
X
X FONTDIR = $(LIBDIR)/fonts
X XINITDIR = $(LIBDIR)/xinit
X XDMDIR = $(DESTDIR)/usr/X11/etc/xdm
X AWMDIR = $(LIBDIR)/awm
X TWMDIR = $(LIBDIR)/twm
X GWMDIR = $(LIBDIR)/gwm
X MANPATH = $(DESTDIR)/usr/$(XINSTALLDIR)/man/cat
X MANSOURCEPATH = $(MANPATH)/man
X MANDIR = $(MANSOURCEPATH)1
X LIBMANDIR = $(MANSOURCEPATH)3
X XAPPLOADDIR = $(LIBDIR)/app-defaults
X
X FONTCFLAGS = -t
X
X INSTAPPFLAGS = $(INSTDATFLAGS)
X
X IMAKE = imake
X DEPEND = makedepend
X RGB = rgb
X FONTC = bdftosnf
X MKFONTDIR = mkfontdir
X MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
X
X CONFIGSRC = $(TOP)/config
X CLIENTSRC = $(TOP)/clients
X DEMOSRC = $(TOP)/demos
X LIBSRC = $(TOP)/lib
X FONTSRC = $(TOP)/fonts
X INCLUDESRC = $(TOP)/X11
X SERVERSRC = $(TOP)/server
X UTILSRC = $(TOP)/util
X SCRIPTSRC = $(UTILSRC)/scripts
X EXAMPLESRC = $(TOP)/examples
X CONTRIBSRC = $(TOP)/../contrib
X DOCSRC = $(TOP)/doc
X RGBSRC = $(TOP)/rgb
X DEPENDSRC = $(UTILSRC)/makedepend
X IMAKESRC = $(CONFIGSRC)
X XAUTHSRC = $(LIBSRC)/Xau
X XLIBSRC = $(LIBSRC)/X
X XMUSRC = $(LIBSRC)/Xmu
X TOOLKITSRC = $(LIBSRC)/Xt
X AWIDGETSRC = $(LIBSRC)/Xaw
X OLDXLIBSRC = $(LIBSRC)/oldX
X XDMCPLIBSRC = $(LIBSRC)/Xdmcp
X BDFTOSNFSRC = $(FONTSRC)/bdftosnf
X MKFONTDIRSRC = $(FONTSRC)/mkfontdir
X EXTENSIONSRC = $(TOP)/extensions
X
X DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
X EXTENSIONLIB = -lXext
X
X DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
X XLIB = $(EXTENSIONLIB) -lX11
X
X DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
X XAUTHLIB = -lXau
X
X DEPXMULIB = $(USRLIBDIR)/libXmu.a
X XMULIB = -lXmu
X
X DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
X OLDXLIB = -loldX
X
X DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
X XTOOLLIB = -lXt
X
X DEPXAWLIB = $(USRLIBDIR)/libXaw.a
X XAWLIB = -lXaw
X
X LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
X LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
X LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
X LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
X LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
SHAR_EOF
true || echo 'restore of mxgdb/Makefile failed'
fi
echo 'End of part 1'
echo 'File mxgdb/Makefile is continued in part 2'
echo 2 > _shar_seq_.tmp
exit 0