diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-15 21:25:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-15 21:25:56 -0700 |
commit | 04e225ccefa76a562b4701a65902508082559856 (patch) | |
tree | cb8ea53f78ab490b6f81ba0ca4b7fe57916ddcc8 | |
parent | eafc83fc65e511a794d5120f434291498552c0b1 (diff) | |
download | nasm-04e225ccefa76a562b4701a65902508082559856.tar.gz nasm-04e225ccefa76a562b4701a65902508082559856.tar.bz2 nasm-04e225ccefa76a562b4701a65902508082559856.zip |
Make -F imply -g (BR 1991213)
When the user specifies -F, imply the -g option. Too many users seem
to make this mistake.
Conflicts:
doc/nasmdoc.src
-rw-r--r-- | doc/nasmdoc.src | 15 | ||||
-rw-r--r-- | nasm.c | 1 |
2 files changed, 9 insertions, 7 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 908ae9f..45c1b0e 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -572,15 +572,16 @@ file has been removed. \S{opt-F} The \i\c{-F} Option: Selecting a \i{Debug Information Format} -This option is used to select the format of the debug information emitted -into the output file, to be used by a debugger (or \e{will} be). Use -of this switch does \e{not} enable output of the selected debug info format. -Use \c{-g}, see \k{opt-g}, to enable output. +This option is used to select the format of the debug information +emitted into the output file, to be used by a debugger (or \e{will} +be). Prior to version 2.03.01, the use of this switch did \e{not} enable +output of the selected debug info format. Use \c{-g}, see \k{opt-g}, +to enable output. Versions 2.03.01 and later automatically enable \c{-g} +if \c{-F} is specified. A complete list of the available debug file formats for an output -format can be seen by issuing the command \i\c{nasm -f <format> --y}. Not all output formats currently support debugging output. -See \k{opt-y}. +format can be seen by issuing the command \c{nasm -f <format> -y}. Not +all output formats currently support debugging output. See \k{opt-y}. This should not be confused with the \c{-f dbg} output format option which is not built into NASM by default. For information on how @@ -718,6 +718,7 @@ static bool process_arg(char *p, char *q) " output format `%s'", param, ofmt->shortname); } + using_debug_info = true; break; case 'X': /* specify error reporting format */ |