aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1993-07-15 21:43:28 +0000
committerDavid MacKenzie <djm@cygnus>1993-07-15 21:43:28 +0000
commitbbd2521f2630126f7f9285e53d6dcb3a746660d8 (patch)
tree538b9334a59b42180c2c746cd97365038197bf68 /ld/ldfile.c
parenta5ef437e7fbf3abce2a80ee40c5a88a9cf2c04a4 (diff)
downloadgdb-bbd2521f2630126f7f9285e53d6dcb3a746660d8.zip
gdb-bbd2521f2630126f7f9285e53d6dcb3a746660d8.tar.gz
gdb-bbd2521f2630126f7f9285e53d6dcb3a746660d8.tar.bz2
source cleanups; fix finding scripts
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 138ee1c..f68ed7d 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -40,7 +40,7 @@ enum bfd_architecture ldfile_output_architecture;
/* IMPORT */
extern boolean had_script;
-extern boolean option_v;
+extern boolean trace_file_tries;
#ifdef VMS
@@ -92,7 +92,7 @@ char *attempt;
lang_input_statement_type *entry;
{
entry->the_bfd = bfd_openr(attempt, entry->target);
- if (option_v == true ) {
+ if (trace_file_tries == true ) {
info("attempt to open %s %s\n", attempt,
(entry->the_bfd == (bfd *)NULL) ? "failed" : "succeeded" );
}
@@ -174,14 +174,13 @@ lang_input_statement_type *entry;
}
-
}
else {
entry->the_bfd = cached_bfd_openr (entry->filename, entry);
-
}
- if (!entry->the_bfd) einfo("%F%P: Can't open %s, %E\n", entry->filename);
+ if (!entry->the_bfd)
+ einfo("%F%P: cannot open %s: %E\n", entry->local_sym_name);
}
@@ -196,7 +195,7 @@ char *exten;
char buff[1000];
result = fopen(name, "r");
- if (option_v == true) {
+ if (trace_file_tries == true) {
if (result == (FILE *)NULL) {
info("can't find ");
}
@@ -209,7 +208,7 @@ char *exten;
if (*exten) {
sprintf(buff, "%s%s", name, exten);
result = fopen(buff, "r");
- if (option_v == true) {
+ if (trace_file_tries == true) {
if (result == (FILE *)NULL) {
info("can't find ");
}
@@ -254,7 +253,7 @@ char *name;
ldlex_input_stack = find_a_name(name, "");
if (ldlex_input_stack == (FILE *)NULL) {
- einfo("%P%F cannot open load script file %s, %E\n",name);
+ einfo("%P%F: cannot open load script file %s: %E\n",name);
}
lex_push_file(ldlex_input_stack, name);