aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-08-06 17:29:01 +0100
committerPedro Alves <palves@redhat.com>2015-08-06 17:29:01 +0100
commita44892be35506471a53e5bc8c2def4ffccf451f9 (patch)
treeffa95b488c44731e8bdf756eedca458dc91e65bc /gdb/gdbserver/inferiors.h
parentca0a5f0bd33d0aa17a5cf518e41e47ddfde486ad (diff)
downloadgdb-a44892be35506471a53e5bc8c2def4ffccf451f9.zip
gdb-a44892be35506471a53e5bc8c2def4ffccf451f9.tar.gz
gdb-a44892be35506471a53e5bc8c2def4ffccf451f9.tar.bz2
gdbserver: no point in hiding the regcache type nowadays
The regcache used to be hidden inside inferiors.c, but since the tracepoints support that it's a first class object. This also fixes a few implicit pointer conversion errors in C++ mode, caused by a few places missing the explicit cast. gdb/gdbserver/ChangeLog: 2015-08-06 Pedro Alves <palves@redhat.com> * gdbthread.h (struct regcache): Forward declare. (struct thread_info) <regcache_data>: Now a struct regcache pointer. * inferiors.c (inferior_regcache_data) (set_inferior_regcache_data): Now work with struct regcache pointers. * inferiors.h (struct regcache): Forward declare. (inferior_regcache_data, set_inferior_regcache_data): Now work with struct regcache pointers. * regcache.c (get_thread_regcache, regcache_invalidate_thread) (free_register_cache_thread): Remove struct regcache pointer casts.
Diffstat (limited to 'gdb/gdbserver/inferiors.h')
-rw-r--r--gdb/gdbserver/inferiors.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h
index 0569586..88ebbe3 100644
--- a/gdb/gdbserver/inferiors.h
+++ b/gdb/gdbserver/inferiors.h
@@ -33,6 +33,7 @@ struct inferior_list_entry
};
struct thread_info;
+struct regcache;
struct target_desc;
struct sym_cache;
struct breakpoint;
@@ -147,7 +148,7 @@ struct inferior_list_entry *find_inferior_id (struct inferior_list *list,
void *inferior_target_data (struct thread_info *);
void set_inferior_target_data (struct thread_info *, void *);
-void *inferior_regcache_data (struct thread_info *);
-void set_inferior_regcache_data (struct thread_info *, void *);
+struct regcache *inferior_regcache_data (struct thread_info *);
+void set_inferior_regcache_data (struct thread_info *, struct regcache *);
#endif /* INFERIORS_H */