This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Add missing braces for regdat.sh
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 4 Feb 2002 17:45:20 -0500
- Subject: [PATCH] Add missing braces for regdat.sh
Blah, I grabbed the wrong copy of regdat.sh. I noticed this when I actually
tried to compile one of the generated files.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.2129
diff -u -p -r1.2129 ChangeLog
--- ChangeLog 2002/02/04 22:41:36 1.2129
+++ ChangeLog 2002/02/04 22:44:33
@@ -1,5 +1,10 @@
2002-02-04 Daniel Jacobowitz <drow@mvista.com>
+ * regformats/regdat.sh: Add braces to the definition of
+ expedite_regs_${arch}.
+
+2002-02-04 Daniel Jacobowitz <drow@mvista.com>
+
* regformats/regdef.h (struct reg): Add comment describing the
requirements for offset and size fields.
Index: regformats/regdat.sh
===================================================================
RCS file: /cvs/src/src/gdb/regformats/regdat.sh,v
retrieving revision 1.1
diff -u -p -r1.1 regdat.sh
--- regdat.sh 2002/02/01 22:05:28 1.1
+++ regdat.sh 2002/02/04 22:44:33
@@ -150,7 +150,7 @@ done
echo "};"
echo
-echo "const char *expedite_regs_${name} = { \"`echo ${expedite} | sed 's/,/", "/g'`\", 0 };"
+echo "const char *expedite_regs_${name}[] = { \"`echo ${expedite} | sed 's/,/", "/g'`\", 0 };"
# close things off
exec 1>&2