summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-04-29 17:47:25 +0000
committerjhb <jhb@FreeBSD.org>2008-04-29 17:47:25 +0000
commit23778603b066d609033f1c376b6088ed0b935225 (patch)
tree16dc87720a4a1a338892f7ef40a2f8676e4724d6
parent6cd344813fbede1e1e7b076455b6337874f70684 (diff)
downloadFreeBSD-src-23778603b066d609033f1c376b6088ed0b935225.zip
FreeBSD-src-23778603b066d609033f1c376b6088ed0b935225.tar.gz
- 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
-rw-r--r--gnu/usr.bin/gdb/libgdb/fbsd-threads.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
index 0000cb8..730d0f6 100644
--- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
+++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c
@@ -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 ();
OpenPOWER on IntegriCloud