Article View: gnu.gdb.bug
Article #10157gdb release 3.5
From: ZLSIIAL%cms.manchester-computing...
Date: Thu, 29 Mar 1990 10:04
Date: Thu, 29 Mar 1990 10:04
158 lines
5839 bytes
5839 bytes
To the members of the GNU project maintaining @file{gdb}:
Note that all tab character in this file are lost because of the
mail processing software.
I am Owen Le Blanc of the Ocmputing Centre at the University of
Manchester, ZLSIIAL@CMS.MCC.AC.UK on the Janet network. I have
been maintaining versions of GNU CC and other GNU software on 10
large HP clusters with 86 processors, nearly all running HP-UX at
level 6.5.
I compiled @file{gdb} version 3.5 using the GNU C compiler in its
non-native version, that is, using the GNU assembler and loader
(tm.h = tm-hp9k320g.h).
The following change is required in readline.c because when
editing is on, the prompt (gdb) does not appear until after the
prompted input has been read:
*** readline.c.orig Sun Nov 26 21:31:36 1989
--- readline.c Tue Mar 27 06:52:46 1990
***************
*** 306,310 ****
--- 306,317 ----
{
if (rl_prompt)
+ #ifdef hpux
+ {
+ #endif
fprintf (out_stream, "%s", rl_prompt);
+ #ifdef hpux
+ fflush (out_stream);
+ }
+ #endif
}
else
***************
Why isn't history expansion on by default?
*** main.c.orig Fri Jan 26 20:12:59 1990
--- main.c Mon Mar 26 06:29:51 1990
***************
*** 1737,1741 ****
/* Set the important stuff up for command editing. */
command_editing_p = 1;
! history_expansion_p = 0;
write_history_p = 0;
--- 1737,1741 ----
/* Set the important stuff up for command editing. */
command_editing_p = 1;
! history_expansion_p = 1;
write_history_p = 0;
***************
It is very convenient for those of us who are not using standard Unix
@file{ar} and @file{ranlib} that @file{gdb/readline/Makefile} includes
variables @var{AR} and @var{RANLIB}. Unfortunately @file{gdb/Makefile}
does not support these variables.
Make clean is altered to delete @file{y.*} and @file{copying.c}.
The latter file should remain in the distribution only if local
versions of @code{awk} fail.
The remaining changes in the Makefile are introduced to make gdb use
gcc's @code{__builtin_alloca}. Of course it would be better if all
files in GNU software using @code{alloca} included the test
#ifdef __GNUC__
#define alloca __builtin_alloca
#endif
This would make all special handling of @code{alloca} unnecessary.
*** Makefile.orig Wed Jan 31 02:42:57 1990
--- Makefile.dist Mon Mar 26 07:38:03 1990
***************
*** 26,29 ****
--- 26,31 ----
is where it should be according to Posix). */
+ AR=ar
+ RANLIB=/bin/ranlib
YACC=bison -y -v
/* YACC=yacc */
***************
*** 289,292 ****
--- 291,295 ----
rm -f dep.c opcode.h param.h pinsn.c config.status
rm -f Makefile
+ rm -f y.* copying.c
xgdb.o : defs.h param.h symtab.h frame.h
***************
*** 307,310 ****
--- 310,314 ----
readline/libreadline.a : force_update
cd readline ; ${MAKE} "SYSV=${SYSV_DEFINE}" \
+ "AR=${AR}" "RANLIB=${RANLIB}" \
"DEBUG_FLAGS=${GLOBAL_CFLAGS}" "CC=${CC}" libreadline.a
***************
The changes to @file{config.gdb} below introduce the definitions of
ranlib and ar, and incidentally change &var{GLOBAL_CFLAGS} to optimise
and to define @code{__builtin_alloca}.
*** config.orig Tue Jan 30 20:35:46 1990
--- config.gdb Mon Mar 26 07:42:39 1990
***************
*** 155,160 ****
# The headers in the directory hp-include override system headers
# and tell GDB to use BSD executable file format (hence -Ihp-include)
! makedefine="-DM_SYSV -DM_BSD_NM -DM_REGEX=regex.o
! -DM_ALLOCA=alloca.o -DM_CFLAGS=-Ihp-include"
# The following is true because gcc uses a different .o file format
# than the native HPUX compiler
--- 155,162 ----
# The headers in the directory hp-include override system headers
# and tell GDB to use BSD executable file format (hence -Ihp-include)
! # makedefine="-DM_SYSV -DM_BSD_NM -DM_REGEX=regex.o
! # -DM_ALLOCA=alloca.o -DM_CFLAGS=-Ihp-include"
! makedefine="-DM_SYSV -DM_BSD_NM -DM_REGEX=regex.o -Dcc=gcc
! -DM_CFLAGS=-Ihp-include"
# The following is true because gcc uses a different .o file format
# than the native HPUX compiler
***************
*** 370,374 ****
echo "Editing Makefile"
cp Makefile.dist tmp.c
! cc -E >Makefile tmp.c $makedefine -DM_MAKEDEFINE="$makedefine"
rm -f tmp.c
--- 372,383 ----
echo "Editing Makefile"
cp Makefile.dist tmp.c
! gcc -E >Makefile tmp.c $makedefine -DM_MAKEDEFINE="$makedefine"
! if [ ${machine} = hp9k320 ]
! then
! mv Makefile tmp.c
! sed -e "s/ -g/ -O -Dalloca=__builtin_alloca/" \
! -e "s/\/bin\/ranlib/\/usr\/local\/bin\/granlib/" \
! -e "s/AR=ar/AR=gar/" tmp.c >Makefile
! fi
rm -f tmp.c
***************
I hope this information will be of use to others, and that I
haven't spent too much time on my personal bugbears!
Yours,
Owen
ZLSIIAL@CMS.MCC.AC.UK (JANET)
Technical Details
Message-ID:
<29.Mar.90.10:07:13.BST.ZLSIIAL@UK.AC.MCC.CMS>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!ZLSIIAL%cms.manchester-computing-centre.ac.ukShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,fa283395959d4999,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-03-29 02:04:19 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!ZLSIIAL%cms.manchester-computing-centre.ac.uk From: ZLSIIAL%cms.manchester-computing-centre.ac.uk@NSFNET-RELAY.AC.UK Newsgroups: gnu.gdb.bug Subject: gdb release 3.5 Message-ID: <29.Mar.90.10:07:13.BST.ZLSIIAL@UK.AC.MCC.CMS> Date: 29 Mar 90 10:04:19 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 158 Posted: Thu Mar 29 11:04:19 1990