summaryrefslogtreecommitdiff
path: root/gdb/gdbarch.sh
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-12-15 14:27:56 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-12-15 14:27:56 +0000
commit7e35103a303c52a8ae636600db6fcba630758a91 (patch)
treeaa2669e5a3943736b362b2289ff0d40c66b99c2e /gdb/gdbarch.sh
parent25abf4decf405891fa9ad0d5ad138e021a5a872b (diff)
downloadbinutils-gdb-7e35103a303c52a8ae636600db6fcba630758a91.tar.gz
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/gdbarch.sh')
-rwxr-xr-xgdb/gdbarch.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index daa12281599..6d7a578d69d 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -963,6 +963,8 @@ M:void:core_info_proc:char *args, enum info_proc_what what:args, what
# inspected when the symbol search was requested.
m:void:iterate_over_objfiles_in_search_order:iterate_over_objfiles_in_search_order_cb_ftype *cb, void *cb_data, struct objfile *current_objfile:cb, cb_data, current_objfile:0:default_iterate_over_objfiles_in_search_order::0
+# Ravenscar arch-dependent ops.
+v:struct ravenscar_arch_ops *:ravenscar_ops:::NULL:NULL::0:host_address_to_string (gdbarch->ravenscar_ops)
EOF
}
@@ -1080,6 +1082,7 @@ struct syscall;
struct agent_expr;
struct axs_value;
struct stap_parse_info;
+struct ravenscar_arch_ops;
/* The architecture associated with the inferior through the
connection to the target.