diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 14:27:56 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 14:27:56 +0000 |
commit | 7e35103a303c52a8ae636600db6fcba630758a91 (patch) | |
tree | aa2669e5a3943736b362b2289ff0d40c66b99c2e /gdb/configure.tgt | |
parent | 25abf4decf405891fa9ad0d5ad138e021a5a872b (diff) | |
download | gdb-7e35103a303c52a8ae636600db6fcba630758a91.zip gdb-7e35103a303c52a8ae636600db6fcba630758a91.tar.gz gdb-7e35103a303c52a8ae636600db6fcba630758a91.tar.bz2 |
gdbarch-ification of ravenscar-thread support.
gdb/ChangeLog:
* gdbarch.sh: Add "struct ravenscar_arch_ops" advance
declaration.
(ravenscar_ops): New gdbarch variable.
* gdbarch.h, gdbarch.c: Regenerate.
* ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
* ravenscar-thread.c (current_arch_ops): Delete.
(ravenscar_fetch_registers): Get the ravenscar_arch_ops
from the gdbarch.
(ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
(ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
(ravenscar_register_arch_ops): Delete.
* ravenscar-sparc-thread.h: New file.
* ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
(ravenscar_sparc_ops): Define value statically.
(_initialize_ravenscar_sparc): Delete.
(register_sparc_ravenscar_ops): New function.
* sparc-tdep.c: #include "ravenscar-sparc-thread.h".
(sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
* Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
ravenscar-sparc-thread.o.
(SFILES): Add ravenscar-thread.c.
(HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
(ALLDEPFILES): ravenscar-sparc-thread.c.
* configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
to gdb_target_obs
for all the targets that use sparc-tdep.o.
Diffstat (limited to 'gdb/configure.tgt')
-rw-r--r-- | gdb/configure.tgt | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 36d4304..c13bd97 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -475,7 +475,8 @@ sparc-*-linux*) # Target: GNU/Linux SPARC gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \ sparc-linux-tdep.o solib-svr4.o symfile-mem.o \ - linux-tdep.o" + linux-tdep.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" if test "x$enable_64_bit_bfd" = "xyes"; then # Target: GNU/Linux UltraSPARC gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \ @@ -487,52 +488,63 @@ sparc64-*-linux*) # Target: GNU/Linux UltraSPARC gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \ sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \ - sparc-linux-tdep.o solib-svr4.o linux-tdep.o" + sparc-linux-tdep.o solib-svr4.o linux-tdep.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" build_gdbserver=yes ;; sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu) # Target: FreeBSD/sparc64 gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \ - solib-svr4.o" + solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc-*-netbsd* | sparc-*-knetbsd*-gnu) # Target: NetBSD/sparc - gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o" + gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \ + solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) # Target: NetBSD/sparc64 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \ - sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o" + sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc-*-openbsd*) # Target: OpenBSD/sparc gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \ - nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o" + nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc64-*-openbsd*) # Target: OpenBSD/sparc64 gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \ sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \ - nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o" + nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) # Target: Solaris SPARC - gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o" + gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \ + solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) # Target: Solaris UltraSPARC gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \ - sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o" + sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; sparc-*-*) # Target: SPARC - gdb_target_obs="sparc-tdep.o ravenscar-thread.o \ - ravenscar-sparc-thread.o" + gdb_target_obs="sparc-tdep.o + ravenscar-thread.o ravenscar-sparc-thread.o" gdb_sim=../sim/erc32/libsim.a ;; sparc64-*-*) # Target: UltraSPARC - gdb_target_obs="sparc-tdep.o sparc64-tdep.o" + gdb_target_obs="sparc-tdep.o sparc64-tdep.o \ + ravenscar-thread.o ravenscar-sparc-thread.o" ;; spu*-*-*) |