Subject: gdb and PR 5533
To: None <tech-toolchain@NetBSD.ORG>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-toolchain
Date: 06/24/1998 08:01:56
Hi,
I'd like to commit the following changes to gdb, in order to fix PR 5533.
This PR complains about 'gdb -w' being brocken, whereas gdb --write should
have been used. This turn out to be a documentation problem. The --help has
been updated, but not the manual page.
Also, --help doesn't document '-w', althouh it document '--nw'.
Althouh '-w' can be guessed from '--nw', it may not be immediatly evident
to a user trying to use '-w' for '--write'.
Any comments ?
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--
Index: gdb.1
===================================================================
RCS file: /cvsroot/src/gnu/dist/gdb/gdb.1,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gdb.1
--- gdb.1 1997/09/24 16:57:24 1.1.1.1
+++ gdb.1 1998/06/24 06:00:09
@@ -216,6 +216,10 @@
\&.
.TP
+.B -write
+Enable writing into executable and core files.
+
+.TP
.BI "\-exec=" "file"\c
.TP
.BI "\-e " "file"\c
Index: main.c
===================================================================
RCS file: /cvsroot/src/gnu/dist/gdb/main.c,v
retrieving revision 1.2
diff -u -r1.2 main.c
--- main.c 1997/10/30 10:39:53 1.2
+++ main.c 1998/06/24 06:00:10
@@ -379,6 +379,7 @@
--mapped Use mapped symbol files if supported on this system.\n\
--readnow Fully read symbol files on first access.\n\
--nw Do not use a window interface.\n\
+ -w Use a window interface.\n\
--write Set writing into executable and core files.\n\
", gdb_stdout);
#ifdef ADDITIONAL_OPTION_HELP