diff --git a/components/lazdebuggergdbmi/gdbmidebugger.pp b/components/lazdebuggergdbmi/gdbmidebugger.pp index 8b63ec6b3a..903baa9f1d 100644 --- a/components/lazdebuggergdbmi/gdbmidebugger.pp +++ b/components/lazdebuggergdbmi/gdbmidebugger.pp @@ -7941,7 +7941,9 @@ func="_$CODETEMPLATESDLG$_Ld98" func="??" *) - j := pos('$', func); + j := 0; + if (filename = '') and (fullname = '') then + j := pos('$', func); if j > 1 then begin un := ''; cl := '';