diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-06-02 03:50:56 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-06-02 03:50:56 +0000 |
commit | 3c875b6f0df9267035aca956fa7fee446d03ec18 (patch) | |
tree | aa68e1f25edde8b79f8125a1aa6e0f50d33b4c5c /bfd | |
parent | 98f96ba187da56d93a8b58e794bd6acb58c7034c (diff) | |
download | gdb-3c875b6f0df9267035aca956fa7fee446d03ec18.zip gdb-3c875b6f0df9267035aca956fa7fee446d03ec18.tar.gz gdb-3c875b6f0df9267035aca956fa7fee446d03ec18.tar.bz2 |
Expand the gdbarch per-architecture data vector as needed, rather
than requiring that all per-architecture data be registered before
the first gdbarch object is allocated.
* gdbarch.sh: Changes to effect the following:
* gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
declarations and definitions.
(check_gdbarch_data): New function, and declaration.
(gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
zero is good enough.
(free_gdbarch_data): Tolerate a null data pointer. Free only
those data items gdbarch->data actually has allocated.
(set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
(gdbarch_update_p): No need to call init_gdbarch_data.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions