forked from Imagelibrary/binutils-gdb
2003-08-04 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (gdbarch_data_free_ftype): Delete declaration. (register_gdbarch_data): Delete "free" parameter. Update comments. * gdbarch.h, gdbarch.c: Re-generate. * reggroups.c (_initialize_reggroup): Update. * gnu-v3-abi.c (init_gnuv3_ops): Update. * frame-base.c (_initialize_frame_base): Update. * frame-unwind.c (_initialize_frame_unwind): Update. * user-regs.c (_initialize_user_regs): Update. * remote.c (_initialize_remote): Update. * regcache.c (_initialize_regcache): Update.
This commit is contained in:
@@ -3257,7 +3257,11 @@ extern int gdbarch_update_p (struct gdbarch_info info);
|
||||
|
||||
The per-architecture data-pointer is either initialized explicitly
|
||||
(set_gdbarch_data()) or implicitly (by INIT() via a call to
|
||||
gdbarch_data()). FREE() is ignored.
|
||||
gdbarch_data()).
|
||||
|
||||
Memory for the per-architecture data shall be allocated using
|
||||
gdbarch_obstack_zalloc. That memory will be deleted when the
|
||||
corresponding architecture object is deleted.
|
||||
|
||||
When a previously created architecture is re-selected, the
|
||||
per-architecture data-pointer for that previous architecture is
|
||||
@@ -3269,10 +3273,7 @@ extern int gdbarch_update_p (struct gdbarch_info info);
|
||||
struct gdbarch_data;
|
||||
|
||||
typedef void *(gdbarch_data_init_ftype) (struct gdbarch *gdbarch);
|
||||
typedef void (gdbarch_data_free_ftype) (struct gdbarch *gdbarch,
|
||||
void *pointer);
|
||||
extern struct gdbarch_data *register_gdbarch_data (gdbarch_data_init_ftype *init,
|
||||
gdbarch_data_free_ftype *free);
|
||||
extern struct gdbarch_data *register_gdbarch_data (gdbarch_data_init_ftype *init);
|
||||
extern void set_gdbarch_data (struct gdbarch *gdbarch,
|
||||
struct gdbarch_data *data,
|
||||
void *pointer);
|
||||
|
||||
Reference in New Issue
Block a user