ronald@UCDAVIS.EDU (07/30/89)
Bug report for: gdb-3.2 Machine: Cubix QB3/386 OS: System V Release 3.2 (Cubix Id: 386-3/A/0) Config: config-gdb i386 Problems: Installation was less than "easy". 1) Typos in the Makefiles. Here are the patches. diff -rc2 gdb-3.2/Makefile gdb/Makefile *** gdb-3.2/Makefile Mon Jul 10 21:07:03 1989 --- gdb/Makefile Sat Jul 29 13:52:13 1989 *************** *** 101,105 **** CLIBS = ${ADD_FILES} ${TERMCAP} # for USG ! #CLIBS= {$ADD_FILES} ${TERMCAP} -lPW ADD_FILES = ${OBSTACK} ${REGEX} ${ALLOCA} ${GNU_MALLOC} --- 101,105 ---- CLIBS = ${ADD_FILES} ${TERMCAP} # for USG ! #CLIBS= ${ADD_FILES} ${TERMCAP} -lPW ADD_FILES = ${OBSTACK} ${REGEX} ${ALLOCA} ${GNU_MALLOC} diff -rc2 gdb-3.2/readline/Makefile gdb/readline/Makefile *** gdb-3.2/readline/Makefile Sat Jul 8 16:03:50 1989 --- gdb/readline/Makefile Sat Jul 29 13:44:51 1989 *************** *** 8,12 **** # the type of the machine (like -sun3) into the flags. .c.o: ! $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ # Destination installation directory. The libraries are copied here if --- 8,12 ---- # the type of the machine (like -sun3) into the flags. .c.o: ! $(CC) -c $(CFLAGS) $(CPPFLAGS) $< # Destination installation directory. The libraries are copied here if *************** *** 21,25 **** DEBUG_FLAGS = -g # LDFLAGS = $(DEBUG_FLAGS) ! CFLAGS = $(DEBUG_FLAGS) # If you don't have Gcc use cc. --- 21,25 ---- DEBUG_FLAGS = -g # LDFLAGS = $(DEBUG_FLAGS) ! CFLAGS = $(DEBUG_FLAGS) $(SYSV_DEFINE) # If you don't have Gcc use cc. 2) Apparently the structure of the floating point support variables in the user structure has changed in /usr/include/sys/user.h. Here is the patch. diff -rc2 gdb-3.2/i386-dep.c gdb/i386-dep.c *** gdb-3.2/i386-dep.c Wed Jul 5 12:46:04 1989 --- gdb/i386-dep.c Sat Jul 29 13:30:37 1989 *************** *** 1173,1177 **** } ! uaddr = (char *)&u.u_fpstate - (char *)&u; if (have_inferior_p ()) { --- 1173,1177 ---- } ! uaddr = (char *)&u.u_fps.u_fpstate - (char *)&u; if (have_inferior_p ()) { 3) TIOCGETC is defined in my termio.h, but struct tchars is not. This makes problems for inflow.c on my machine. Since Emacs also had this problem on my machine, I have commented out the define in my termio.h file. Someone please enlighten me if this is not the right thing to do. 4) In my pwd.h, getpwuid() and getpwent() are of type struct passwd *. Here is the patch. diff -rc2 gdb-3.2/readline/readline.c gdb/readline/readline.c *** gdb-3.2/readline/readline.c Fri Jul 7 14:45:35 1989 --- gdb/readline/readline.c Sat Jul 29 13:47:30 1989 *************** *** 60,64 **** #include <pwd.h> #ifdef SYSV ! struct pwd *getpwuid (), *getpwent (); #endif --- 60,64 ---- #include <pwd.h> #ifdef SYSV ! struct passwd *getpwuid (), *getpwent (); #endif 5) Vi command line emulation does not emulate vi very well (not too many commands emulated and the cursor positioning resembles emacs' vip-mode, yuk). I would prefer a Korn-shell-like vi emulation. (BTW, it isn't documented but both C-M-j and C-M-m will get you into vi emulation.) -- Ronald Cole | uucp: cvms!ronald voice: +1 916 895 8321 Senior Software Engineer | internet: csusac!cvms!ronald@ucdavis.edu CVM Systems +---------------------------------------------------- "SCCS, the source motel! Programs check in and never check out!" - Ken Thompson