Subject: bin/11581: GDB's readline is severely crippled
To: None <>
From: Richard Earnshaw <>
List: netbsd-bugs
Date: 11/28/2000 01:55:22
>Number:         11581
>Category:       bin
>Synopsis:       GDB's readline is severely crippled
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 28 01:55:01 PST 2000
>Originator:     Richard Earnshaw
>Release:        NetBSD-current<NetBSD-current source date>
System: NetBSD shark1 1.5H NetBSD 1.5H (SHARK) #57: Mon Oct 30 17:12:12 GMT 2000 rearnsha@shark1:/usr/src/sys/arch/arm32/compile/SHARK arm32

	For some reason the version of gdb installed with NetBSD is built with
	a crippled version of readline, and not the one that normally comes
	with gdb.  The current version is severely crippled in several ways, 
	not least of which are:

	1) Inability to support long command lines (more than 1000 characters).
	2) Inability to do completion on symbol names.

	Try to get gdb to accept the following command:
	set args -nostdinc++ -nostdinc++ -v -I/home/rearnsha/gnusrc/egcs/libstdc++-v3/include/std -I/home/rearnsha/gnusrc/egcs/libstdc++-v3/include/c -I/home/rearnsha/gnusrc/egcs/libstdc++-v3/libsupc++ -I/home/rearnsha/gnusrc/egcs/libstdc++-v3/include -I../libio -I/home/rearnsha/gnusrc/egcs/libstdc++-v3/libio -I/home/rearnsha/gnusrc/egcs/libstdc++-v3/libmath -I../include -iprefix /work/rearnsha/gnu/egcs/gcc/../lib/gcc-lib/arm-netbsd/2.97/ -isystem /work/rearnsha/gnu/egcs/gcc/include -isystem /work/rearnsha/gnu/install/arm-netbsd/bin/include -isystem /work/rearnsha/gnu/install/arm-netbsd/lib/include -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -Dunix -Driscbsd -Darm32 -D__arm32__ -D__arm__ -D__NetBSD__ -D__unix__ -D__riscbsd__ -D__arm32__ -D__arm32__ -D__arm__ -D__NetBSD__ -D__unix -D__riscbsd -D__arm32 -Asystem=unix -Asystem=NetBSD -Acpu=arm -Amachine=arm -D__CHAR_UNSIGNED__ -D__STDC_HOSTED__=1 -g -Wall -Wno-format -W -Wwrite-strings -Winline -D__ARM_ARCH_3__ -D__APCS_3!
2__ -D__SOFTFP__ -D__ARMEL__ -DPIC -isystem /work/rearnsha/gnu/install/arm-netbsd/include /home/rearnsha/gnusrc/egcs/libstdc++-v3/src/ -D__GNUG__=2 -D__GXX_ABI_VERSION=100 -quiet -dumpbase -g -Wall -Wno-format -W -Wwrite-strings -Winline -version -fnew-abi -fno-implicit-templates -fdiagnostics-show-location=once -fimplicit-templates -fPIC 

	Groan with frustration when you find that after 1000 characters your
	terminal goes haywire and you are completely unable to debug your

	Compile a program with the symbol foo_wibble_wombat_xywssdjfkl
	in it.  At the gdb prompt type 
		break foo_<tab>
	then get extremely frustrated when completion does not work and
	you have to type the whole symbol in by hand.

	Use GNU readline when building gdb.