This adds the ability to the strings program to display strings that contain \n and \r characters.

* strings.c: Add -w/--include-all-whitespace option to include any
	whitespace character in the displayed strings.
	* NEWS: Mention the new feature.
	* doc/binutils.texi (strings): Document the new command line
	option.
This commit is contained in:
Erik Akermann 2014-06-26 14:10:48 +01:00 committed by Nick Clifton
parent 6ddf779d8e
commit 334ac421ef
4 changed files with 36 additions and 2 deletions

View file

@ -2665,6 +2665,7 @@ strings [@option{-afovV}] [@option{-}@var{min-len}]
[@option{-e} @var{encoding}] [@option{--encoding=}@var{encoding}]
[@option{-}] [@option{--all}] [@option{--print-file-name}]
[@option{-T} @var{bfdname}] [@option{--target=}@var{bfdname}]
[@option{-w}] [@option{--include-all-whitespace}]
[@option{--help}] [@option{--version}] @var{file}@dots{}
@c man end
@end smallexample
@ -2736,6 +2737,13 @@ Specify an object code format other than your system's default format.
@itemx -V
@itemx --version
Print the program version number on the standard output and exit.
@item -w
@itemx --include-all-whitespace
By default tab and space characters are included in the strings that
are displayed, but other whitespace characters, such a newlines and
carriage returns, are not. The @option{-w} option changes this so
that all whitespace characters are considered to be part of a string.
@end table
@c man end