projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
gdb
/
gdb_indent.sh
diff --git
a/gdb/gdb_indent.sh
b/gdb/gdb_indent.sh
index 0d0829a4a13415bbfebba012a9f1bfbadbb928d6..115b99521fcb35ad2fbcdcc19d15ff788d3fe96f 100755
(executable)
--- a/
gdb/gdb_indent.sh
+++ b/
gdb/gdb_indent.sh
@@
-3,6
+3,11
@@
# Try to find a GNU indent. There could be a BSD indent in front of a
# GNU gindent so when indent is found, keep looking.
# Try to find a GNU indent. There could be a BSD indent in front of a
# GNU gindent so when indent is found, keep looking.
+# Make certain that the script is not running in an internationalized
+# environment.
+LANG=c ; export LANG
+LC_ALL=c ; export LC_ALL
+
gindent=
indent=
paths=`echo $PATH | sed \
gindent=
indent=
paths=`echo $PATH | sed \
@@
-36,12
+41,29
@@
fi
# Check that the indent found is both GNU and a reasonable version.
# Different indent versions give different indentation.
# Check that the indent found is both GNU and a reasonable version.
# Different indent versions give different indentation.
-case `${indent} --version 2>/dev/null < /dev/null` in
- GNU*2.2.6 ) ;;
- *GNU* ) echo "Incorrect version of GNU indent" 1>&2 ;;
- * ) echo "Indent is not GNU" 1>&2 ;;
+m1=2
+m2=2
+m3=9
+
+version=`${indent} --version 2>/dev/null < /dev/null`
+case "${version}" in
+ *GNU* ) ;;
+ * ) echo "error: GNU indent $m1.$m2.$m3 expected" 1>&2 ; exit 1;;
esac
esac
+v1=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\1/'`
+v2=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\2/'`
+v3=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\3/'`
+if test $m1 -ne $v1 -o $m2 -ne $v2 -o $m3 -gt $v3
+then
+ echo "error: Must be GNU indent version $m1.$m2.$m3 or later" 1>&2
+ exit 1
+fi
+
+if test $m3 -ne $v3
+then
+ echo "warning: GNU indent version $m1.$m2.$m3 recommended" 1>&2
+fi
# Check that we're in the GDB source directory
# Check that we're in the GDB source directory
@@
-56,7
+78,11
@@
esac
types="\
-T FILE \
types="\
-T FILE \
--T prgregset_t -T fpregset_t -T gregset_t \
+-T bfd -T asection -T pid_t \
+-T prgregset_t -T fpregset_t -T gregset_t -T sigset_t \
+-T td_thrhandle_t -T td_event_msg_t -T td_thr_events_t \
+-T td_notify_t -T td_thr_iter_f -T td_thrinfo_t \
+-T caddr_t \
`cat *.h | sed -n \
-e 's/^.*[^a-z0-9_]\([a-z0-9_]*_ftype\).*$/-T \1/p' \
-e 's/^.*[^a-z0-9_]\([a-z0-9_]*_func\).*$/-T \1/p' \
`cat *.h | sed -n \
-e 's/^.*[^a-z0-9_]\([a-z0-9_]*_ftype\).*$/-T \1/p' \
-e 's/^.*[^a-z0-9_]\([a-z0-9_]*_func\).*$/-T \1/p' \
This page took
0.023645 seconds
and
4
git commands to generate.