aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-10-12 15:30:24 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2010-10-12 15:30:24 +0000
commit7411e9a828d5384857b444cc701cdab6e5f4d676 (patch)
treed396a1df0983668f96441ee3deb5e7b6316d468a /gold
parent6877026586788b57988ba67c79c9ec94af30f591 (diff)
downloadgdb-7411e9a828d5384857b444cc701cdab6e5f4d676.zip
gdb-7411e9a828d5384857b444cc701cdab6e5f4d676.tar.gz
gdb-7411e9a828d5384857b444cc701cdab6e5f4d676.tar.bz2
gold/
* fileread.cc (Input_file::find_file): Initialize *found_name and *namep when using the fallback search for case 4.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/fileread.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index c57ed06..88bc150 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-12 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * fileread.cc (Input_file::find_file): Initialize *found_name
+ and *namep when using the fallback search for case 4.
+
2010-10-11 Cary Coutant <ccoutant@google.com>
* options.h (class General_options): Redefine -z lazy as an alias for
diff --git a/gold/fileread.cc b/gold/fileread.cc
index f626028..a16738a 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -963,6 +963,8 @@ Input_file::find_file(const Dirsearch& dirpath, int* pindex,
input_argument->name());
return false;
}
+ *found_name = input_argument->name();
+ *namep = name;
*pindex = index + 1;
return true;
}