aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2015-08-13 20:34:15 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2015-08-13 21:07:09 +0200
commitbc7c9fab612d4d33f7fe5d17eef4f5bd5cdc4144 (patch)
tree7b016c69aeb9253d52045f9fa374a063f125d911 /gdb/Makefile.in
parent52bbc560524ec3691203eccd05207d13913a1e35 (diff)
downloadgdb-bc7c9fab612d4d33f7fe5d17eef4f5bd5cdc4144.zip
gdb-bc7c9fab612d4d33f7fe5d17eef4f5bd5cdc4144.tar.gz
gdb-bc7c9fab612d4d33f7fe5d17eef4f5bd5cdc4144.tar.bz2
[D] Support looking up symbols in the current and imported modules.
In D, there is the notion of modules, and importing from one to the other, whether it is a basic, selective or renamed import declaration. module A; import X; void foo() { import Y : bar; } If the compiler emits DW_TAG_imported_declaration at the appropriate locations, then we can make use of what gdb stores in using_direct when performing nonlocal symbol lookups. gdb/ChangeLog * Makefile.in (SFILES): Add d-namespace.c. (COMMON_OBS): Add d-namespace.o. * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the la_lookup_symbol_nonlocal callback function pointer. * d-lang.h (d_lookup_symbol_nonlocal): New declaration. (d_lookup_nested_symbol): New declaration. * d-namespace.c: New file.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index d8974d9..13b9041 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -838,7 +838,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
charset.c common/cleanups.c cli-out.c coffread.c coff-pe-read.c \
complaints.c completer.c continuations.c corefile.c corelow.c \
cp-abi.c cp-support.c cp-namespace.c cp-valprint.c \
- d-exp.y d-lang.c d-valprint.c \
+ d-exp.y d-lang.c d-namespace.c d-valprint.c \
cp-name-parser.y \
dbxread.c demangle.c dictionary.c disasm.c doublest.c \
dtrace-probe.c dummy-frame.c \
@@ -1072,7 +1072,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
frame-base.o \
inline-frame.o \
gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o \
- cp-namespace.o \
+ cp-namespace.o d-namespace.o \
reggroups.o \
trad-frame.o \
tramp-frame.o \