aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 138bd3b..41944f8 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3026,34 +3026,6 @@ gdb_argv::reset (const char *s)
m_argv = argv;
}
-#define AMBIGUOUS_MESS1 ".\nMatching formats:"
-#define AMBIGUOUS_MESS2 \
- ".\nUse \"set gnutarget format-name\" to specify the format."
-
-std::string
-gdb_bfd_errmsg (bfd_error_type error_tag, char **matching)
-{
- char **p;
-
- /* Check if errmsg just need simple return. */
- if (error_tag != bfd_error_file_ambiguously_recognized || matching == NULL)
- return bfd_errmsg (error_tag);
-
- std::string ret (bfd_errmsg (error_tag));
- ret += AMBIGUOUS_MESS1;
-
- for (p = matching; *p; p++)
- {
- ret += " ";
- ret += *p;
- }
- ret += AMBIGUOUS_MESS2;
-
- xfree (matching);
-
- return ret;
-}
-
/* Return ARGS parsed as a valid pid, or throw an error. */
int