diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-21 16:24:16 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-24 10:24:48 -0700 |
commit | 34b965f7c006e64dbd5546575744daa642d4856f (patch) | |
tree | 395f80417b26c931dfaaa66b1ceff1230cdef1dd /gdb/gdb_bfd.h | |
parent | b6a08665ffb4a4b41e3761666c7c54655279f2ad (diff) | |
download | gdb-34b965f7c006e64dbd5546575744daa642d4856f.zip gdb-34b965f7c006e64dbd5546575744daa642d4856f.tar.gz gdb-34b965f7c006e64dbd5546575744daa642d4856f.tar.bz2 |
Move gdb_bfd_errmsg to gdb_bfd.c
gdb_bfd.c contains most of gdb's BFD-related utility functions.
However, gdb_bfd_errmsg is in utils.c. It seemed better to me to move
this out of util.[ch] and into the BFD-related file instead.
Tested by rebuilding.
Diffstat (limited to 'gdb/gdb_bfd.h')
-rw-r--r-- | gdb/gdb_bfd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h index 156c276..62a03e1 100644 --- a/gdb/gdb_bfd.h +++ b/gdb/gdb_bfd.h @@ -223,4 +223,11 @@ gdb_bfd_sections (const gdb_bfd_ref_ptr &abfd) return gdb_bfd_section_range (abfd->sections); }; +/* A wrapper for bfd_errmsg to produce a more helpful error message + in the case of bfd_error_file_ambiguously recognized. + MATCHING, if non-NULL, is the corresponding argument to + bfd_check_format_matches, and will be freed. */ + +extern std::string gdb_bfd_errmsg (bfd_error_type error_tag, char **matching); + #endif /* GDB_BFD_H */ |