[D] Fix regression in py-lookup-type.exp
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 26 Sep 2015 07:08:12 +0000 (09:08 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 26 Sep 2015 07:13:40 +0000 (09:13 +0200)
commitba587d55a56db16e9e47d1e0975f5125fbafc6db
treeac6680f5fcbcab8de66341d0724c1c89f9890078
parent03fa52cea208036e3db029c412d6baf4b9f8fb5a
[D] Fix regression in py-lookup-type.exp

In the console interpreter, primitive types are resolved in the expression
parser.  However that didn't take into consideration the script interface.

gdb/ChangeLog:

* d-namespace.c (d_lookup_symbol): New arg langdef.
All callers updated.  Support looking up symbol as a primitive type.
(lookup_module_scope): New arg langdef.  All callers updated.
Call d_lookup_symbol directly for simple bare symbols.
gdb/ChangeLog
gdb/d-namespace.c