This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi, I added a --write option to gdb 4.16 in the NetBSD tree. I've done this because many users (including me) have been hit by the fact that -w is still a valid option, but doesn't enable writing in the executable. I think at last -w should be documented in the usage and manual page. The changes adding the --write option is trivial, so I think it's worth adding as well. -- 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 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- gdb.1 1997/09/24 16:57:24 1.1.1.1 +++ gdb.1 1998/07/27 12:42:05 1.2 @@ -1,6 +1,6 @@ .\" Copyright (c) 1991 Free Software Foundation .\" See section COPYING for conditions for redistribution -.\" $Id: gdb.1,v 1.1.1.1 1997/09/24 16:57:24 gwr Exp $ +.\" $Id: gdb.1,v 1.2 1998/07/27 12:42:05 bouyer Exp $ .TH gdb 1 "4nov1991" "GNU Tools" "GNU Tools" .SH NAME gdb \- The GNU Debugger @@ -214,6 +214,10 @@ Read symbol table from file \c .I file\c \&. + +.TP +.B -write +Enable writing into executable and core files. .TP .BI "\-exec=" "file"\c Index: main.c =================================================================== RCS file: /cvsroot/src/gnu/dist/gdb/main.c,v retrieving revision 1.1.1.1 retrieving revision 1.3 diff -u -r1.1.1.1 -r1.3 --- main.c 1997/09/24 16:57:27 1.1.1.1 +++ main.c 1998/07/27 12:42:06 1.3 @@ -188,6 +189,7 @@ {"w", no_argument, &use_windows, 1}, {"windows", no_argument, &use_windows, 1}, {"statistics", no_argument, 0, 13}, + {"write", no_argument, &write_files, 1}, /* Allow machine descriptions to add more options... */ #ifdef ADDITIONAL_OPTIONS ADDITIONAL_OPTIONS @@ -377,6 +379,8 @@ --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 fputs_unfiltered (ADDITIONAL_OPTION_HELP, gdb_stdout);