diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-22 00:05:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-22 00:05:51 +0000 |
commit | c79126688f8211ab17a893c5e80b09811d424fc1 (patch) | |
tree | 23a727f6718dc203a4e3b9ef1575e8a10b6f0d80 /gold/readsyms.cc | |
parent | 06d063c072d0e247751535bc5e394aa7b8be3b0f (diff) | |
download | gdb-c79126688f8211ab17a893c5e80b09811d424fc1.zip gdb-c79126688f8211ab17a893c5e80b09811d424fc1.tar.gz gdb-c79126688f8211ab17a893c5e80b09811d424fc1.tar.bz2 |
Add threading support.
Diffstat (limited to 'gold/readsyms.cc')
-rw-r--r-- | gold/readsyms.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gold/readsyms.cc b/gold/readsyms.cc index 39d3376..5625f59 100644 --- a/gold/readsyms.cc +++ b/gold/readsyms.cc @@ -72,6 +72,10 @@ class Unblock_token : public Task run(Workqueue*) { } + std::string + get_name() const + { return "Unblock_token"; } + private: Task_token* this_blocker_; Task_token* next_blocker_; @@ -273,6 +277,35 @@ Read_symbols::do_group(Workqueue* workqueue) this->next_blocker_)); } +// Return a debugging name for a Read_symbols task. + +std::string +Read_symbols::get_name() const +{ + if (!this->input_argument_->is_group()) + { + std::string ret("Read_symbols "); + if (this->input_argument_->file().is_lib()) + ret += "-l"; + ret += this->input_argument_->file().name(); + return ret; + } + + std::string ret("Read_symbols group ("); + bool add_space = false; + const Input_file_group* group = this->input_argument_->group(); + for (Input_file_group::const_iterator p = group->begin(); + p != group->end(); + ++p) + { + if (add_space) + ret += ' '; + ret += p->file().name(); + add_space = true; + } + return ret + ')'; +} + // Class Add_symbols. Add_symbols::~Add_symbols() |