aboutsummaryrefslogtreecommitdiff
path: root/gold/readsyms.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-07-06 22:07:59 +0000
committerCary Coutant <ccoutant@google.com>2011-07-06 22:07:59 +0000
commite24719f6e73a89da8877536830ff047ffc4e2377 (patch)
tree64b2dfcf4bd113c3a9ace86bba993fa72b8b14de /gold/readsyms.cc
parent3b2a0cf216646598c8d76c098f1734c9bb5604c7 (diff)
downloadgdb-e24719f6e73a89da8877536830ff047ffc4e2377.zip
gdb-e24719f6e73a89da8877536830ff047ffc4e2377.tar.gz
gdb-e24719f6e73a89da8877536830ff047ffc4e2377.tar.bz2
* incremental.cc (Sized_incremental_binary::setup_readers): Pass
input file index to Script_info ctor. (Sized_incremental_binary::do_file_has_changed): Find the command-line argument for files named in scripts. * incremental.h (Script_info::Script_info): New ctor with input file index. (Script_info::input_file_index): New function. (Script_info::input_file_index_): New data member. (Incremental_binary::get_library): Add const. (Incremental_binary::get_script_info): Add const. * readsyms.cc (Read_member::is_runnable): Check for this_blocker_. * testsuite/Makefile.am (incremental_test_5): New test case. (incremental_test_6): New test case. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/readsyms.cc')
-rw-r--r--gold/readsyms.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/readsyms.cc b/gold/readsyms.cc
index 05b42cd..574cb72 100644
--- a/gold/readsyms.cc
+++ b/gold/readsyms.cc
@@ -637,6 +637,8 @@ Read_member::~Read_member()
Task_token*
Read_member::is_runnable()
{
+ if (this->this_blocker_ != NULL && this->this_blocker_->is_blocked())
+ return this->this_blocker_;
return NULL;
}