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:
parent
47819b7207
commit
0274a484ce
3 changed files with 154 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue