aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-02-05 02:22:39 +0000
committerHui Zhu <teawater@gmail.com>2010-02-05 02:22:39 +0000
commitd18b8b7a0759b26ebc14eab4e95f643e142a24de (patch)
tree3ed27c3dcec9f42a29c79f1da9b5eee881dc0508 /gdb/defs.h
parent6cfaf60bc2581b5ef9028a4157d203adbd2ae9c2 (diff)
downloadfsf-binutils-gdb-d18b8b7a0759b26ebc14eab4e95f643e142a24de.zip
fsf-binutils-gdb-d18b8b7a0759b26ebc14eab4e95f643e142a24de.tar.gz
fsf-binutils-gdb-d18b8b7a0759b26ebc14eab4e95f643e142a24de.tar.bz2
2010-02-05 Hui Zhu <teawater@gmail.com>
* defs.h (gdb_bfd_errmsg): New extern. * exec.c (exec_file_attach): Change bfd_errmsg to gdb_bfd_errmsg. * utils.c (AMBIGUOUS_MESS1): New macro. (AMBIGUOUS_MESS2): New macro. (gdb_bfd_errmsg): New function.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 5b5c261..770d171 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -419,6 +419,13 @@ char **gdb_buildargv (const char *);
int compare_positive_ints (const void *ap, const void *bp);
+/* 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 const char *gdb_bfd_errmsg (bfd_error_type error_tag, char **matching);
+
/* From demangle.c */
extern void set_demangling_style (char *);