gdb/testsuite: restructure gdb.base/dlmopen.exp

In the next commit I want to add more tests to the dlmopen.exp script.
Doing this will be easier if the dlmopen.exp script was structured so
that the current tests were contained inside separatate procs.  So
this commit moves all of the current tests within dlmopen into two
procs, and then calls these.

There should be no changes to what is actually being tested in this
commit.
1 file changed