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/ChangeLog | |
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/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4de9a93..6ddf000 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,17 @@ +2019-08-28 Nick Clifton <nickc@redhat.com> + + 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. + 2019-08-27 Nick Clifton <nickc@redhat.com> PR 24510 |