diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-06-05 15:09:31 +0200 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-06-12 11:24:36 +0200 |
commit | 3604cb1f8ca4a926039a9540d03bb224d84af3e1 (patch) | |
tree | 962d40b3cb6bd43d06960653b70af6d73a207e66 /ld/ld.h | |
parent | db7858e227f3951c665410314fca62c77349ac24 (diff) | |
download | gdb-3604cb1f8ca4a926039a9540d03bb224d84af3e1.zip gdb-3604cb1f8ca4a926039a9540d03bb224d84af3e1.tar.gz gdb-3604cb1f8ca4a926039a9540d03bb224d84af3e1.tar.bz2 |
Add new ld option: --print-memory-usage
ld/
* NEWS: Mention new option.
* lexsup.c (parse_args): Handle --print-memory-usage.
(ld_options): Add --print-memory-usage.
* ldmain.c (main): Call lang_print_memory_usage.
* ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE.
* ldlang.h: Add prototype of lang_print_memory_usage.
* ldlang.c (lang_print_memory_size, lang_print_memory_usage): New
functions.
* ld.texinfo (Options): Document --print-memory-usage.
* ld.h (args_type): Add print_memory_usage field.
ld/testsuite/
* ld-scripts/print-memory-usage-1.t,
* ld-scripts/print-memory-usage-1.s,
* ld-scripts/print-memory-usage-1.l,
* ld-scripts/print-memory-usage-2.t,
* ld-scripts/print-memory-usage-2.l,
* ld-scripts/print-memory-usage-3.s,
* ld-scripts/print-memory-usage-3.t,
* ld-scripts/print-memory-usage-3.l,
* ld-scripts/print-memory-usage.t: New tests.
* ld-scripts/print-memory-usage.exp: Run them.
Diffstat (limited to 'ld/ld.h')
-rw-r--r-- | ld/ld.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -161,6 +161,9 @@ typedef struct { /* If TRUE we'll just print the default output on stdout. */ bfd_boolean print_output_format; + /* If set, display the target memory usage (per memory region). */ + bfd_boolean print_memory_usage; + /* Big or little endian as set on command line. */ enum endian_enum endian; |