diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-08-04 22:24:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-08-04 22:24:44 +0000 |
commit | fcc1c85c675ef402ac37ecf4f7a1377f560d0ec0 (patch) | |
tree | 5796270f47cc2df138ccb584397b2749e21755f0 /gdb/gdbarch.h | |
parent | 116f06eabf8c6f45308bce3c98aa9296c7d82b84 (diff) | |
download | fsf-binutils-gdb-fcc1c85c675ef402ac37ecf4f7a1377f560d0ec0.zip fsf-binutils-gdb-fcc1c85c675ef402ac37ecf4f7a1377f560d0ec0.tar.gz fsf-binutils-gdb-fcc1c85c675ef402ac37ecf4f7a1377f560d0ec0.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 7753022..3850c4b 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -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); |