debugger: remove duplicated code
debugger: remove duplicated code

Task-number: QTCREATORBUG-2322

KDE/android-qt-creator,duythanhphan/qt-creator,dmik/qt-creator-os2,dmik/qt-creator-os2,danimo/qt-creator,danimo/qt-creator,sandsmark/qtcreator-minimap,duythanhphan/qt-creator,bakaiadam/collaborative_qt_creator,syntheticpp/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,hdweiss/qt-creator-visualizer,duythanhphan/qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,KDAB/KDAB-Creator,KDE/android-qt-creator,richardmg/qtcreator,omniacreator/qtcreator,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,sandsmark/qtcreator-minimap,Distrotech/qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,renatofilho/QtCreator,KDE/android-qt-creator,colede/qtcreator,dmik/qt-creator-os2,pcacjr/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,Distrotech/qtcreator,colede/qtcreator,colede/qtcreator,kuba1/qtcreator,malikcjm/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,jonnor/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,azat/qtcreator,omniacreator/qtcreator,kuba1/qtcreator,renatofilho/QtCreator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,yinyunqiao/qtcreator,pcacjr/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,KDE/android-qt-creator,martyone/sailfish-qtcreator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,dmik/qt-creator-os2,KDE/android-qt-creator,syntheticpp/qt-creator,richardmg/qtcreator,KDAB/KDAB-Creator,farseerri/git_code,omniacreator/qtcreator,bakaiadam/collaborative_qt_creator,renatofilho/QtCreator,ostash/qt-creator-i18n-uk,sandsmark/qtcreator-minimap,yinyunqiao/qtcreator,maui-packages/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,yinyunqiao/qtcreator,richardmg/qtcreator,danimo/qt-creator,ostash/qt-creator-i18n-uk,Distrotech/qtcreator,xianian/qt-creator,pcacjr/qt-creator,bakaiadam/collaborative_qt_creator,KDE/android-qt-creator,pcacjr/qt-creator,jonnor/qt-creator,pcacjr/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,danimo/qt-creator,pcacjr/qt-creator,malikcjm/qtcreator,dmik/qt-creator-os2,farseerri/git_code,jonnor/qt-creator,syntheticpp/qt-creator,martyone/sailfish-qtcreator,azat/qtcreator,darksylinc/qt-creator,yinyunqiao/qtcreator,yinyunqiao/qtcreator,farseerri/git_code,malikcjm/qtcreator,syntheticpp/qt-creator,xianian/qt-creator,maui-packages/qt-creator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,Distrotech/qtcreator,hdweiss/qt-creator-visualizer,yinyunqiao/qtcreator,hdweiss/qt-creator-visualizer,darksylinc/qt-creator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,xianian/qt-creator,jonnor/qt-creator,danimo/qt-creator,KDE/android-qt-creator,Distrotech/qtcreator,omniacreator/qtcreator,renatofilho/QtCreator,kuba1/qtcreator,KDAB/KDAB-Creator,darksylinc/qt-creator,richardmg/qtcreator,colede/qtcreator,azat/qtcreator,sandsmark/qtcreator-minimap,jonnor/qt-creator,colede/qtcreator,KDE/android-qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,duythanhphan/qt-creator,renatofilho/QtCreator,KDAB/KDAB-Creator,renatofilho/QtCreator,omniacreator/qtcreator,AltarBeastiful/qt-creator,sandsmark/qtcreator-minimap,azat/qtcreator,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,jonnor/qt-creator,ostash/qt-creator-i18n-uk,AltarBeastiful/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,darksylinc/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,hdweiss/qt-creator-visualizer,darksylinc/qt-creator,ostash/qt-creator-i18n-uk,kuba1/qtcreator,xianian/qt-creator,hdweiss/qt-creator-visualizer,azat/qtcreator,bakaiadam/collaborative_qt_creator,farseerri/git_code,dmik/qt-creator-os2,malikcjm/qtcreator,bakaiadam/collaborative_qt_creator,syntheticpp/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,ostash/qt-creator-i18n-uk,sandsmark/qtcreator-minimap,malikcjm/qtcreator,azat/qtcreator,pcacjr/qt-creator,kuba1/qtcreator,kuba1/qtcreator,farseerri/git_code,ostash/qt-creator-i18n-uk,dmik/qt-creator-os2,colede/qtcreator,xianian/qt-creator,xianian/qt-creator,yinyunqiao/qtcreator,amyvmiwei/qt-creator,omniacreator/qtcreator,malikcjm/qtcreator,KDAB/KDAB-Creator,KDAB/KDAB-Creator,maui-packages/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator