From 4564c19cc716e3956f5dac7b07b688b16526f8ee Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Tue, 19 Dec 1995 23:42:56 +0000 Subject: [PATCH] Document the -k and -w flags. Submitted by: Gary Jennejohn --- gnu/usr.bin/binutils/gdb/gdb.1 | 21 ++++++++++++++++++++- gnu/usr.bin/gdb/gdb/gdb.1 | 21 ++++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/binutils/gdb/gdb.1 b/gnu/usr.bin/binutils/gdb/gdb.1 index ee14f7073451..0245ec81cc8c 100644 --- a/gnu/usr.bin/binutils/gdb/gdb.1 +++ b/gnu/usr.bin/binutils/gdb/gdb.1 @@ -1,6 +1,6 @@ .\" Copyright (c) 1991 Free Software Foundation .\" See section COPYING for conditions for redistribution -.\" $Id: gdb.1,v 1.1 1994/01/28 12:39:43 pk Exp $ +.\" $Id: gdb.1,v 1.2 1994/12/30 23:25:45 jkh Exp $ .TH gdb 1 "4nov1991" "GNU Tools" "GNU Tools" .SH NAME gdb \- The GNU Debugger @@ -11,6 +11,8 @@ gdb \- The GNU Debugger .RB "[\|" \-help "\|]" .RB "[\|" \-nx "\|]" .RB "[\|" \-q "\|]" +.RB "[\|" \-k "\|]" +.RB "[\|" \-w "\|]" .RB "[\|" \-batch "\|]" .RB "[\|" \-cd=\c .I dir\c @@ -280,6 +282,23 @@ command options and arguments have been processed. ``Quiet''. Do not print the introductory and copyright messages. These messages are also suppressed in batch mode. +.TP +.B \-kernel +.TP +.B \-k +Puts GDB into kernel debugging mode. If no executable file is specified then +/kernel is used. If no core file is specified then /dev/mem is +used. Crash dumps can be examined by specifying both an executable and +a core file. + +.TP +.B \-wcore +.TP +.B \-w +This flag is only effective when debugging a "live" kernel. It makes the +core file (/dev/mem) writable so that kernel variables can be changed +during a debugging session. Use this with caution ! + .TP .B \-batch Run in batch mode. Exit with status \c diff --git a/gnu/usr.bin/gdb/gdb/gdb.1 b/gnu/usr.bin/gdb/gdb/gdb.1 index ee14f7073451..0245ec81cc8c 100644 --- a/gnu/usr.bin/gdb/gdb/gdb.1 +++ b/gnu/usr.bin/gdb/gdb/gdb.1 @@ -1,6 +1,6 @@ .\" Copyright (c) 1991 Free Software Foundation .\" See section COPYING for conditions for redistribution -.\" $Id: gdb.1,v 1.1 1994/01/28 12:39:43 pk Exp $ +.\" $Id: gdb.1,v 1.2 1994/12/30 23:25:45 jkh Exp $ .TH gdb 1 "4nov1991" "GNU Tools" "GNU Tools" .SH NAME gdb \- The GNU Debugger @@ -11,6 +11,8 @@ gdb \- The GNU Debugger .RB "[\|" \-help "\|]" .RB "[\|" \-nx "\|]" .RB "[\|" \-q "\|]" +.RB "[\|" \-k "\|]" +.RB "[\|" \-w "\|]" .RB "[\|" \-batch "\|]" .RB "[\|" \-cd=\c .I dir\c @@ -280,6 +282,23 @@ command options and arguments have been processed. ``Quiet''. Do not print the introductory and copyright messages. These messages are also suppressed in batch mode. +.TP +.B \-kernel +.TP +.B \-k +Puts GDB into kernel debugging mode. If no executable file is specified then +/kernel is used. If no core file is specified then /dev/mem is +used. Crash dumps can be examined by specifying both an executable and +a core file. + +.TP +.B \-wcore +.TP +.B \-w +This flag is only effective when debugging a "live" kernel. It makes the +core file (/dev/mem) writable so that kernel variables can be changed +during a debugging session. Use this with caution ! + .TP .B \-batch Run in batch mode. Exit with status \c