IDE: fixed duplicate code, break cycle lfmunitresource

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42895 4005530d-fff6-0310-9dd1-cebe43e6787f
FpGDBMIDbg: updated for fpdbg changes 

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42896 4005530d-fff6-0310-9dd1-cebe43e6787f