This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Add prgregset_t, fpregset_t, and gregset_t to gdb_indent.sh
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 17 Jun 2002 15:55:30 -0400
- Subject: [patch] Add prgregset_t, fpregset_t, and gregset_t to gdb_indent.sh
FYI,
I've added prgregset_t, fpregset_t, and gregset_t to the list of
predefined [system] types listed in gdb_indent.sh.
Should improve the auto indentation a little,
committed,
Andrew
2002-06-17 Andrew Cagney <ac131313@redhat.com>
* gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
list of predefined types.
Index: gdb_indent.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdb_indent.sh,v
retrieving revision 1.2
diff -u -r1.2 gdb_indent.sh
--- gdb_indent.sh 18 May 2002 19:50:20 -0000 1.2
+++ gdb_indent.sh 17 Jun 2002 19:51:05 -0000
@@ -54,7 +54,10 @@
# Run indent per GDB specs
-types="-T FILE `cat *.h | sed -n \
+types="\
+-T FILE \
+-T prgregset_t -T fpregset_t -T gregset_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' \
-e 's/^typedef.*[^a-zA-Z0-9_]\([a-zA-Z0-9_]*[a-zA-Z0-9_]\);$/-T \1/p' \