diff options
author | Cary Coutant <ccoutant@google.com> | 2008-04-17 22:45:47 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2008-04-17 22:45:47 +0000 |
commit | c5818ff112aac72067c827a4a4fad732eae40741 (patch) | |
tree | 7d56ba982473581ec9aab6c40269137cb4a9ea35 /gold/object.cc | |
parent | e9bbd7c5e43873cff4050cad26808f727294f7cc (diff) | |
download | gdb-c5818ff112aac72067c827a4a4fad732eae40741.zip gdb-c5818ff112aac72067c827a4a4fad732eae40741.tar.gz gdb-c5818ff112aac72067c827a4a4fad732eae40741.tar.bz2 |
* errors.cc (Errors::info): New function.
(gold_info): New function.
* errors.h (Errors::info): New function.
* gold.h (gold_info): New function.
* object.cc (Input_objects::add_object): Print trace output.
* options.cc (options::parse_set): New function.
(General_options::parse_wrap): Deleted.
(General_options::General_options): Deleted initializer.
* options.h (options::String_set): New typedef.
(options::parse_set): New function.
(DEFINE_set): New macro.
(General_options::wrap): Changed to use DEFINE_set. Changed
callers of any_wrap_symbols and is_wrap_symbol.
(General_options::trace, General_options::trace_symbol):
New options.
(General_options::any_wrap_symbols, General_options::is_wrap_symbol)
(General_options::wrap_symbols_): Deleted.
* symtab.cc (Symbol_table::add_from_object): Print trace output.
Diffstat (limited to 'gold/object.cc')
-rw-r--r-- | gold/object.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/object.cc b/gold/object.cc index 36d3dcc..2849093 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -1269,6 +1269,10 @@ Input_objects::add_object(Object* obj) return false; } + // Print the filename if the -t/--trace option is selected. + if (parameters->options().trace()) + gold_info("%s", obj->name().c_str()); + if (!obj->is_dynamic()) this->relobj_list_.push_back(static_cast<Relobj*>(obj)); else |