On 10 January 2014 13:24, Iain Buclaw wrote: > On 9 January 2014 21:54, Tom Tromey wrote: >> The usual approach in cases like this is to do a "pure move" patch to >> move the functions to another file, followed by a second patch to >> implement the fixes. >> > > OK, I'll split it into two separate patches. > Couldn't find an easy way to move, then fix. So I did fix, then move. First change, fixes D demangling in GDB as per first post. 2014-01-10 Iain Buclaw gdb/ * d-lang.h (d_parse_symbol): Add declaration. * d-lang.c (extract_identifiers) (extract_type_info): Remove functions. (parse_call_convention, parse_attributes) (parse_function_types, parse_function_args) (parse_type, parse_identifier, call_convention_p) (d_parse_symbol): New functions. (d_demangle): Use d_parse_symbol to demangle D symbols. gdb/testsuite/ * gdb.dlang/demangle.exp: New file. ---