Look in your preferences:
General -> Editors -> File Associations
Maybe the .dbg is already associated with an editor.
Edit: With CDT, you should probably add the .gdb extension in the list of executable file types. To do so, go to Preferences, in General -> Content Type, open Binary File, click on Executable File, then on the Add button. Then enter *.gdb in the dialog box.