diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-24 07:59:01 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-24 07:59:01 +0000 |
commit | fbf1f3f1f6982710c5e379679ac4f18e795aeeb7 (patch) | |
tree | 6155eb6c4e1c8d406e6e77d4dc86061dda3ff3bc /sim/README-HACKING | |
parent | c59356d3b4bdebd4618508b6b4e6afcb86982855 (diff) | |
download | gdb-fbf1f3f1f6982710c5e379679ac4f18e795aeeb7.zip gdb-fbf1f3f1f6982710c5e379679ac4f18e795aeeb7.tar.gz gdb-fbf1f3f1f6982710c5e379679ac4f18e795aeeb7.tar.bz2 |
Add d10v and v850 to gennltvals.sh and regenerate.
Add a howto.
Diffstat (limited to 'sim/README-HACKING')
-rw-r--r-- | sim/README-HACKING | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/sim/README-HACKING b/sim/README-HACKING index 4ebef92..05b2852 100644 --- a/sim/README-HACKING +++ b/sim/README-HACKING @@ -39,6 +39,7 @@ The configure.in of a simulator using the common framework should look like: --- snip --- dnl Process this file with autoconf to produce a configure script. +sinclude(../common/aclocal.m4) AC_PREREQ(2.5)dnl AC_INIT(Makefile.in) @@ -194,7 +195,7 @@ However, the user should be aware of the following: o An empty array (eg int a[0]) is not valid. When building with GCC it is effectivly a requirement that ---enable-sim-warnings be specified during configuration. +--enable-build-warnings=,-Werror be specified during configuration. "dump" commands under gdb ========================= @@ -210,16 +211,24 @@ internal state pretty printed from gdb. FIXME: This can obviously be made more elaborate. As needed it will be. -"dump" commands under gdb -========================= +Rebuilding nltvals.def +====================== -gdbinit.in contains the following +Checkout a copy of the SIM and LIBGLOSS modules (Unless you've already +got one to hand): -define dump -set sim_debug_dump () -end + $ mkdir /tmp/$$ + $ cd /tmp/$$ + $ cvs checkout sim-no-testsuite libgloss-no-testsuite newlib-no-testsuite -Simulators that define the sim_debug_dump function can then have their -internal state pretty printed from gdb. +Configure things for an arbitrary simulator target (I've d10v for +convenience): -FIXME: This can obviously be made more elaborate. As needed it will be. + $ mkdir /tmp/$$/build + $ cd /tmp/$$/build + $ /tmp/$$/devo/configure --target=d10v-elf + +In the sim/common directory rebuild the headers: + + $ cd sim/common + $ make headers |