This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Date: Mon, 08 Mar 2004 14:28:00 -0500 From: Andrew Cagney <cagney@gnu.org>
The dwarf2-frame code is then modified to use the first mechanism. I've left the other clients alone (but did deprecate set_gdbarch_data as that should now be redundant).
I'm not so sure that set_gdbarch_data is now redundant. I can imagine that one would like to set a per-architecture data thingy to a different value after its initial initialization.
set_gdbarch_data (struct gdbarch *gdbarch, struct gdbarch_data *data, void *pointer) { gdb_assert (data->index < gdbarch->nr_data); gdb_assert (gdbarch->data[data->index] == NULL); gdbarch->data[data->index] = pointer; }
So I'd rather you wouldn't deprecate the interface.
Also note the name changes (better suggestions?).
The names look fine to me.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |