mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* 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.
This commit is contained in:
@@ -309,7 +309,7 @@ Sized_incremental_binary<size, big_endian>::setup_readers()
|
||||
break;
|
||||
case INCREMENTAL_INPUT_SCRIPT:
|
||||
{
|
||||
Script_info* script = new Script_info(input_file.filename());
|
||||
Script_info* script = new Script_info(input_file.filename(), i);
|
||||
this->script_map_[i] = script;
|
||||
unsigned int object_count = input_file.get_object_count();
|
||||
for (unsigned int j = 0; j < object_count; j++)
|
||||
@@ -448,6 +448,14 @@ Sized_incremental_binary<size, big_endian>::do_file_has_changed(
|
||||
{
|
||||
Input_entry_reader input_file = this->inputs_reader_.input_file(n);
|
||||
Incremental_disposition disp = INCREMENTAL_CHECK;
|
||||
|
||||
// For files named in scripts, find the file that was actually named
|
||||
// on the command line, so that we can get the incremental disposition
|
||||
// flag.
|
||||
Script_info* script = this->get_script_info(n);
|
||||
if (script != NULL)
|
||||
n = script->input_file_index();
|
||||
|
||||
const Input_argument* input_argument = this->get_input_argument(n);
|
||||
if (input_argument != NULL)
|
||||
disp = input_argument->file().options().incremental_disposition();
|
||||
|
||||
Reference in New Issue
Block a user