- Add a global variable 'fbsdcoreops_suppress_target' that can be set to
force the FreeBSD multithreaded core target to not register any target for handling core dumps. This is analogous to the 'coreops_suppress_target' variable that GDB provides for suppressing the default core dump target. KGDB will use this new variable so it can provide its own core dump target that uses libkvm to work with vmcore files. - Adjust the long name and documentation of the FreeBSD multithreaded core dump target so it better matches what GDB's core dump target uses. MFC after: 1 week Reviewed by: davidxu, marcel
This commit is contained in:
parent
967f568996
commit
624e4d168d
@ -1375,8 +1375,9 @@ static void
|
||||
init_fbsd_core_ops (void)
|
||||
{
|
||||
fbsd_core_ops.to_shortname = "FreeBSD-core";
|
||||
fbsd_core_ops.to_longname = "FreeBSD core thread.";
|
||||
fbsd_core_ops.to_doc = "FreeBSD threads support for core files.";
|
||||
fbsd_core_ops.to_longname = "FreeBSD multithreaded core dump file";
|
||||
fbsd_core_ops.to_doc =
|
||||
"Use a core file as a target. Specify the filename of the core file.";
|
||||
fbsd_core_ops.to_open = fbsd_core_open;
|
||||
fbsd_core_ops.to_close = fbsd_core_close;
|
||||
fbsd_core_ops.to_attach = 0;
|
||||
@ -1506,9 +1507,17 @@ thread_db_load (void)
|
||||
|
||||
int coreops_suppress_target = 1;
|
||||
|
||||
/* similarly we allow this target to be completely skipped. This is used
|
||||
by kgdb which uses its own core target. */
|
||||
|
||||
int fbsdcoreops_suppress_target;
|
||||
|
||||
void
|
||||
_initialize_thread_db (void)
|
||||
{
|
||||
|
||||
if (fbsdcoreops_suppress_target)
|
||||
return;
|
||||
init_fbsd_thread_ops ();
|
||||
init_fbsd_core_ops ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user