diff options
author | Doug Evans <xdje42@gmail.com> | 2015-09-18 21:43:38 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2015-09-18 21:43:38 -0700 |
commit | 015d2e7e49056e0d5fea1c18bf8de9b1be7c096f (patch) | |
tree | 5e18796c5f9b2e007b0f0a5449f1fae6a1357625 /gdb/objfiles.h | |
parent | d96c806b9210f2a9dc07f9ebfc811b3fc0c0f870 (diff) | |
download | gdb-015d2e7e49056e0d5fea1c18bf8de9b1be7c096f.zip gdb-015d2e7e49056e0d5fea1c18bf8de9b1be7c096f.tar.gz gdb-015d2e7e49056e0d5fea1c18bf8de9b1be7c096f.tar.bz2 |
default_read_var_value <LOC_UNRESOLVED>: Include minsym kind in error message.
bfd/ChangeLog:
* targets.c (enum bfd_flavour): Add comment.
(bfd_flavour_name): New function.
* bfd-in2.h: Regenerate.
gdb/ChangeLog:
* findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
kind of minimal symbol in the error message.
* objfiles.c (objfile_flavour_name): New function.
* objfiles.h (objfile_flavour_name): Declare.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-bad-unresolved.c: New file.
* gdb.dwarf2/dw2-bad-unresolved.exp: New file.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index be2a5ef..da5ac1a 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -744,6 +744,11 @@ const char *objfile_filename (const struct objfile *objfile); extern const char *objfile_debug_name (const struct objfile *objfile); +/* Return the name of the file format of OBJFILE if the file has been opened, + otherwise return NULL. */ + +const char *objfile_flavour_name (struct objfile *objfile); + /* Set the objfile's notion of the "main" name and language. */ extern void set_objfile_main_name (struct objfile *objfile, |