summaryrefslogtreecommitdiff
path: root/gdb/sol-thread.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-09-12 20:10:56 +0000
committerDoug Evans <dje@google.com>2008-09-12 20:10:56 +0000
commit6b92174395ff1ee393cd718a2d58a9c8b5eee87e (patch)
treee935264fe95e2f7d4af84527e6fc603a3f4791d9 /gdb/sol-thread.c
parentf61de2967de506710950c0c9ff3a33b73daa3709 (diff)
downloadgdb-6b92174395ff1ee393cd718a2d58a9c8b5eee87e.tar.gz
* sol-thread.c (_initialize_sol_thread): Add FIXME regarding
order of _initialize_* fns.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r--gdb/sol-thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index f36e4ea6238..8f99ac1627d 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);