aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2015-09-18 21:43:38 -0700
committerDoug Evans <xdje42@gmail.com>2015-09-18 21:43:38 -0700
commit015d2e7e49056e0d5fea1c18bf8de9b1be7c096f (patch)
tree5e18796c5f9b2e007b0f0a5449f1fae6a1357625 /gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.c
parentd96c806b9210f2a9dc07f9ebfc811b3fc0c0f870 (diff)
downloadgdb-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/testsuite/gdb.dwarf2/dw2-bad-unresolved.c')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.c b/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.c
new file mode 100644
index 0000000..1c35510
--- /dev/null
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.c
@@ -0,0 +1,24 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2015 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* Dummy main function. */
+
+int
+main (void)
+{
+ return 0;
+}