diff options
author | Nick Clifton <nickc@redhat.com> | 2019-08-28 11:39:19 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-08-28 11:39:19 +0100 |
commit | a1c110a3fe02f5cb8de18137f6615005288e849e (patch) | |
tree | 7a2209dfa1f841214890f58efffd960bd2ce9dee /binutils/NEWS | |
parent | 72dd1784ef6c5157af03c50975aee603e9b6078e (diff) | |
download | gdb-a1c110a3fe02f5cb8de18137f6615005288e849e.zip gdb-a1c110a3fe02f5cb8de18137f6615005288e849e.tar.gz gdb-a1c110a3fe02f5cb8de18137f6615005288e849e.tar.bz2 |
Add a --source-comment=<text> option to objdump which provides a prefix to dipslayed source code lines.
PR 24931
* objdump.c (source_comment): New static variable.
(option_values): Add OPTION_SOURCE_COMMENT.
(long_opions): Add --source-comment.
(print_line): If source comment is set, use it as a prefix to the
source code line.
(main): Handle OPTION_SOURCE_COMMENT.
* doc/binutils.texi: Document the new option.
* NEWS: Mention the new feature.
* testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
of the -S and --source-comment options.
Diffstat (limited to 'binutils/NEWS')
-rw-r--r-- | binutils/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/NEWS b/binutils/NEWS index b892181..c6c4e29 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,4 +1,6 @@ -*- text -*- +* Add --source-comment[=<txt>] option to objdump which if present, + provides a prefix to source code lines displayed in a disassembly. * Add --verilog-data-width option to objcopy for verilog targets to control width of data elements in verilog hex format. |