[patch/rfc] Separate gdbarch_data_register_pre_init

Andrew Cagney cagney@gnu.org
Mon Mar 8 19:28:00 GMT 2004


Hello,

This patch is ment to address the problem identifed in this thread:
http://sources.redhat.com/ml/gdb-patches/2004-02/msg00517.html

It changes the gdbarch_data framework so that the data is differentiated 
as being:

pre_init:
Created while the architecture object is still being initialized 
(strictly speaking it can also be called after the architecture has been 
initialized, however the pre_init code can't tell the difference).

post_init:
Called after the architecture has been initialized.

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).

Also note the name changes (better suggestions?).

thoughts?  this is tabled for at least a week,

Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20040308/a91d4523/attachment.ksh>


More information about the Gdb-patches mailing list