aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-08-17 03:19:01 +0000
committerAlan Modra <amodra@gmail.com>2001-08-17 03:19:01 +0000
commit3619ad0439dad3a20a39cbfb5f2c838e343e753a (patch)
tree5b0fca41dba6384772abe3b1c55ccb68f42fb59a /bfd/bfd-in2.h
parent29517f00a59567a3b9321b5e29389a62f7f8fb07 (diff)
downloadgdb-3619ad0439dad3a20a39cbfb5f2c838e343e753a.zip
gdb-3619ad0439dad3a20a39cbfb5f2c838e343e753a.tar.gz
gdb-3619ad0439dad3a20a39cbfb5f2c838e343e753a.tar.bz2
* bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
(bfd_errmsgs): Add corresponding message. * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when finding an archive that contains different format object files. Return bfd_error_wrong_object_format for this case. * format.c: Formatting fixes. s/CONST/const/. (bfd_check_format_matches): Accept archives that give bfd_error_wrong_object_format if no full match is found. Tidy code handling matching_vector. Don't return a pointer to freed memory in `matching'. Handle ambiguous matches as for partial archive matches. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 481215a..3f7c610 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3122,6 +3122,7 @@ typedef enum bfd_error
bfd_error_system_call,
bfd_error_invalid_target,
bfd_error_wrong_format,
+ bfd_error_wrong_object_format,
bfd_error_invalid_operation,
bfd_error_no_memory,
bfd_error_no_symbols,
@@ -3627,7 +3628,7 @@ bfd_check_format_matches PARAMS ((bfd *abfd, bfd_format format, char ***matching
boolean
bfd_set_format PARAMS ((bfd *abfd, bfd_format format));
-CONST char *
+const char *
bfd_format_string PARAMS ((bfd_format format));
#ifdef __cplusplus