This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix gdbarch buglets
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 20 Jun 2004 15:19:49 -0400
- Subject: [commit] Fix gdbarch buglets
Hello,
This fixes three buglets:
- use the function name when printing errors
Multi-arch meands that there may not be a corrsponding macro name.
- use the function's formal definition when generating the .log file
Ditto reason.
- Remove a stray ":" in return_value's definition
committed,
Andrew
2004-06-20 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh: Use the function, instead of macro name in
errors and the log file.
(return_value): Remove stray ":" in spec.
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.328
diff -p -u -r1.328 gdbarch.sh
--- gdbarch.sh 20 Jun 2004 18:10:13 -0000 1.328
+++ gdbarch.sh 20 Jun 2004 19:15:35 -0000
@@ -545,7 +545,7 @@ F:DEPRECATED_STORE_STRUCT_RETURN:void:de
# the predicate with default hack to avoid calling STORE_RETURN_VALUE
# (via legacy_return_value), when a small struct is involved.
-M:::enum return_value_convention:return_value:struct type *valtype, struct regcache *regcache, void *readbuf, const void *writebuf:valtype, regcache, readbuf, writebuf:::legacy_return_value
+M::enum return_value_convention:return_value:struct type *valtype, struct regcache *regcache, void *readbuf, const void *writebuf:valtype, regcache, readbuf, writebuf:::legacy_return_value
# The deprecated methods EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
# DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and
@@ -725,8 +725,7 @@ exec > new-gdbarch.log
function_list | while do_read
do
cat <<EOF
-${class} ${macro}(${actual})
- ${returntype} ${function} ($formal)${attrib}
+${class} ${returntype} ${function} ($formal)${attrib}
EOF
for r in ${read}
do
@@ -734,7 +733,7 @@ EOF
done
if class_is_predicate_p && fallback_default_p
then
- echo "Error: predicate function ${macro} can not have a non- multi-arch default" 1>&2
+ echo "Error: predicate function ${function} can not have a non- multi-arch default" 1>&2
kill $$
exit 1
fi