diff options
author | Doug Evans <dje@google.com> | 2008-09-12 20:10:57 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-09-12 20:10:57 +0000 |
commit | 5d6fa95086bc3c3f346a85ea220bd744fc773594 (patch) | |
tree | 483d43265c0853956bad6a4326cde87d2a6b2eab /gdb | |
parent | d00adf391709cf00d95094847e1bbe3a63046ca2 (diff) | |
download | gdb-5d6fa95086bc3c3f346a85ea220bd744fc773594.zip gdb-5d6fa95086bc3c3f346a85ea220bd744fc773594.tar.gz gdb-5d6fa95086bc3c3f346a85ea220bd744fc773594.tar.bz2 |
* sol-thread.c (_initialize_sol_thread): Add FIXME regarding
order of _initialize_* fns.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/sol-thread.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d92a706..86ba16e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2008-09-12 Doug Evans <dje@google.com> + * sol-thread.c (_initialize_sol_thread): Add FIXME regarding + order of _initialize_* fns. + * dwarf2read.c (comp_unit_head): Rename first_die_ptr to first_die_offset. All uses updated. Delete unused members cu_head_ptr, next. diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index f36e4ea..8f99ac1 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -1663,6 +1663,10 @@ _initialize_sol_thread (void) add_cmd ("sol-threads", class_maintenance, info_solthreads, _("Show info on Solaris user threads."), &maintenanceinfolist); + /* FIXME: This code takes errant advantage of the order in which + initialization routines are run. _initialize_corelow must run before + this one otherwise orig_core_ops will still contain zeros and the work + of init_sol_core_ops will be undone. */ memcpy (&orig_core_ops, &core_ops, sizeof (struct target_ops)); memcpy (&core_ops, &sol_core_ops, sizeof (struct target_ops)); add_target (&core_ops); |