2003-05-30 Andrew Cagney <cagney@redhat.com>

* gdbarch.sh: Regardless of the multi-arch level, always define
	the macro when not already defined.
	* gdbarch.h, gdbarch.c: Re-generate.
This commit is contained in:
Andrew Cagney 2003-05-31 03:23:47 +00:00
parent 081933c009
commit c25083afe3
3 changed files with 142 additions and 384 deletions

View File

@ -1,3 +1,9 @@
2003-05-30 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Regardless of the multi-arch level, always define
the macro when not already defined.
* gdbarch.h, gdbarch.c: Re-generate.
2003-05-30 Richard Henderson <rth@redhat.com>
* alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.

File diff suppressed because it is too large Load Diff

View File

@ -853,11 +853,9 @@ do
printf "#if (GDB_MULTI_ARCH ${gt_level}) && defined (${macro})\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
printf "#if GDB_MULTI_ARCH\n"
printf "#if (GDB_MULTI_ARCH ${gt_level}) || !defined (${macro})\n"
printf "#if !defined (${macro})\n"
printf "#define ${macro} (gdbarch_${function} (current_gdbarch))\n"
printf "#endif\n"
printf "#endif\n"
fi
done
@ -924,18 +922,9 @@ do
printf "#if (GDB_MULTI_ARCH ${gt_level}) && defined (${macro})\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
if test "${level}" = ""
then
printf "#if !defined (${macro})\n"
printf "#define ${macro} (gdbarch_${function} (current_gdbarch))\n"
printf "#endif\n"
else
printf "#if GDB_MULTI_ARCH\n"
printf "#if (GDB_MULTI_ARCH ${gt_level}) || !defined (${macro})\n"
printf "#define ${macro} (gdbarch_${function} (current_gdbarch))\n"
printf "#endif\n"
printf "#endif\n"
fi
printf "#if !defined (${macro})\n"
printf "#define ${macro} (gdbarch_${function} (current_gdbarch))\n"
printf "#endif\n"
fi
if class_is_function_p
then
@ -982,8 +971,16 @@ do
printf "#if (GDB_MULTI_ARCH ${gt_level}) && defined (${macro})\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
printf "#if GDB_MULTI_ARCH\n"
printf "#if (GDB_MULTI_ARCH ${gt_level}) || !defined (${macro})\n"
if [ "x${actual}" = "x" ]
then
d="#define ${macro}() (gdbarch_${function} (current_gdbarch))"
elif [ "x${actual}" = "x-" ]
then
d="#define ${macro} (gdbarch_${function} (current_gdbarch))"
else
d="#define ${macro}(${actual}) (gdbarch_${function} (current_gdbarch, ${actual}))"
fi
printf "#if !defined (${macro})\n"
if [ "x${actual}" = "x" ]
then
printf "#define ${macro}() (gdbarch_${function} (current_gdbarch))\n"
@ -994,7 +991,6 @@ do
printf "#define ${macro}(${actual}) (gdbarch_${function} (current_gdbarch, ${actual}))\n"
fi
printf "#endif\n"
printf "#endif\n"
fi
fi
done