fixes for debugging threaded core files. Previously gdb would find the

kernel threads but would get errors on each of the user threads that wasn't
currently assigned to a kernel thread.  PR's gdb/13803 (and gdb/13618).
This commit is contained in:
David Taylor 1997-12-03 19:30:06 +00:00
parent 47819b7207
commit 0274a484ce
3 changed files with 154 additions and 9 deletions

View file

@ -417,8 +417,17 @@ struct target_ops core_ops = {
OPS_MAGIC, /* to_magic */
};
/* non-zero if we should not do the add_target call in
_initialize_corelow; not initialized (i.e., bss) so that
the target can initialize it (i.e., data) if appropriate.
This needs to be set at compile time because we don't know
for sure whether the target's initialize routine is called
before us or after us. */
int coreops_suppress_target;
void
_initialize_corelow()
{
add_target (&core_ops);
if (!coreops_suppress_target)
add_target (&core_ops);
}