binutils-gdb/gdb/features
Simon Marchi 73519cce7c feature_to_c.sh: Print help when passing no arguments
I found that odd that passing no arguments to feature_to_c.sh produces
this:

$ ./feature_to_c.sh
./feature_to_c.sh: 23: shift: can't shift that many

but passing one argument shows the help:

$ ./feature_to_c.sh hello
Usage: ./feature_to_c.sh OUTPUTFILE INPUTFILE...

This patch changes the script to show the help in both cases.

gdb/ChangeLog:

	* features/feature_to_c.sh: Print the help when passing no
	argument.
2016-03-04 10:03:06 -05:00
..
i386 GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rs6000 GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
aarch64-core.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
aarch64-fpu.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
aarch64.c
aarch64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-core.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-fpa.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-m-profile.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-vfpv2.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-vfpv3.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-iwmmxt.c
arm-with-iwmmxt.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-m-fpa-layout.c
arm-with-m-fpa-layout.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-m-vfp-d16.c
arm-with-m-vfp-d16.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-m.c
arm-with-m.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-neon.c
arm-with-neon.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-vfpv2.c
arm-with-vfpv2.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
arm-with-vfpv3.c
arm-with-vfpv3.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
btrace-conf.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
btrace.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
feature_to_c.sh feature_to_c.sh: Print help when passing no arguments 2016-03-04 10:03:06 -05:00
gdb-target.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdbserver-regs.xsl
library-list-aix.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
library-list-svr4.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
library-list.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
m68k-core.xml
Makefile GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
microblaze-core.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
microblaze-stack-protect.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
microblaze-with-stack-protect.c
microblaze-with-stack-protect.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
microblaze.c
microblaze.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips64-cp0.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips64-cpu.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips64-dsp-linux.c
mips64-dsp-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips64-dsp.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips64-fpu.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips64-linux.c
mips64-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-cp0.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-cpu.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-dsp-linux.c
mips-dsp-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-dsp.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-fpu.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mips-linux.c
mips-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
nios2-cpu.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
nios2-linux.c
nios2-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
nios2.c
nios2.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
number-regs.xsl
osdata.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-acr.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-core32.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-core64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-fpr.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-linux32.c
s390-linux32.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-linux32v1.c
s390-linux32v1.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-linux32v2.c
s390-linux32v2.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-linux64.c
s390-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-linux64v1.c
s390-linux64v1.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-linux64v2.c
s390-linux64v2.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-tdb.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-te-linux64.c
s390-te-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-tevx-linux64.c
s390-tevx-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-vx-linux64.c
s390-vx-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-vx.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-core64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-linux64.c
s390x-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-linux64v1.c
s390x-linux64v1.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-linux64v2.c
s390x-linux64v2.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-te-linux64.c
s390x-te-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-tevx-linux64.c
s390x-tevx-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390x-vx-linux64.c
s390x-vx-linux64.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sort-regs.xsl
threads.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c6xp.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c62x-linux.c
tic6x-c62x-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c62x.c
tic6x-c62x.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c64x-linux.c
tic6x-c64x-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c64x.c
tic6x-c64x.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c64xp-linux.c
tic6x-c64xp-linux.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-c64xp.c
tic6x-c64xp.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-core.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tic6x-gp.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
traceframe-info.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
xinclude.dtd GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
xscale-iwmmxt.xml GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00