Recent

Author Topic: GDB.exe stopped working  (Read 3550 times)

fbartra

  • New member
  • *
  • Posts: 8
GDB.exe stopped working
« on: September 04, 2015, 05:01:14 pm »
I am getting this message every time I close my application from lazarus
I am using Lazarus Version # 1.4.2
FPC : 2.6.4, i386-win32/win64

My PC is windows 7 professional
64bit

any suggestions?

thank you
Fausto

rvk

  • Hero Member
  • *****
  • Posts: 6169
Re: GDB.exe stopped working
« Reply #1 on: September 04, 2015, 05:16:30 pm »
Is your application using any of the TOpenDialog-components?

It's a known problem with the GDB standard delivered with Lazarus 1.4 (i.e. GDB 7.2). I have a topic about it here.

The solution would be to either use a newer GDB version from here or to set DisableLoadSymbolsForLibraries to true in Tools>Options>Debugger>General.

fbartra

  • New member
  • *
  • Posts: 8
Re: GDB.exe stopped working
« Reply #2 on: September 04, 2015, 05:30:17 pm »
Is your application using any of the TOpenDialog-components?

It's a known problem with the GDB standard delivered with Lazarus 1.4 (i.e. GDB 7.2). I have a topic about it here.

The solution would be to either use a newer GDB version from here or to set DisableLoadSymbolsForLibraries to true in Tools>Options>Debugger>General.

rvk:

thank you

Yes I am using TOpenDialog-components

I disabled the debugger option and it works
if I upgrade GDB, will it affect any other applications in my PC?

Thanks

Fausto

rvk

  • Hero Member
  • *****
  • Posts: 6169
Re: GDB.exe stopped working
« Reply #3 on: September 04, 2015, 05:42:28 pm »
if I upgrade GDB, will it affect any other applications in my PC?
No. The debugger is installed in \lazarus\mingw\i386-win32\bin.
You can see the path in Tools>Options>Debugger
Code: [Select]
$(LazarusDir)\mingw\$(TargetCPU)-$(TargetOS)\bin\gdb.exe
You could place the download of gdb_771.exe in the same folder and change the gdb.exe to gdb_771.exe in that option.

If you download with Internet Explorer you must not forget to "Unblock" the gdb_771.exe (IE always blocks executables during download).
You can right-click the gdb_771.exe and choose properties and check the Unblock option (or button). See attached image.

Because Lazarus uses it's own GDB version in the Windows version it will not effect any other programs. And for your executables... the GDB is only used during debugging in the Lazarus IDE itself.

B.T.W. for normal debugging a program you might not need the Symbols from Libraries so setting the DisableLoadSymbolsForLibraries maybe enough for you. So if you're not debugging in libraries you can just set that option to true.

 

TinyPortal © 2005-2018