objdump -dS: warn if source is more recent than object
authorAlan Modra <amodra@gmail.com>
Mon, 13 Mar 2017 10:26:25 +0000 (20:56 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 13 Mar 2017 10:50:02 +0000 (21:20 +1030)
commit5ef2d51bd6ae49b28282835156d1d6622beac4a6
tree5ea12d7c51f205c0d84f0790e8e8e1df86809c01
parentf955cccff399ccc4e16b8e90f140f2e9a785a07b
objdump -dS: warn if source is more recent than object

If the source file is more recent than the object file, line number
information in the object may no longer match the source.  So print a
warning message.

* objdump.c (update_source_path): Add abfd param.  Add struct
stat vars.  Pass to try_print_file_open.  Warn if source is more
recent than object.
(try_print_file_open, slurp_file): Add struct stat param to
return fstat.
(show_line): Call update_source_path with bfd.
binutils/ChangeLog
binutils/objdump.c
This page took 0.023618 seconds and 4 git commands to generate.