Hi,
a
I use Lazarus on Arch Linux 64bit. I installed gdb and configured this debugger. But when add a breakpoint in my source and start compilation this not effect.
What can I do?
tnx

Mailing lists / lazarus / 2010-11
8 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
a
I use Lazarus on Arch Linux 64bit. I installed gdb and configured this debugger. But when add a breakpoint in my source and start compilation this not effect.
What can I do?
tnx
I don't understand what you are trying to do. Why should putting a breakpoint in your code have any result on compilation?
a I use Lazarus on Arch Linux 64bit. I installed gdb and configured this debugger. But…
- Have a look here: download the latest gnu debugger from the link Vincent posted (last note)
- You also must update to the latest Lazarus snapshot. Older versions of Lazarus do not work with the 64 bit debugger.
- As for fpc, I know t was tested for fpc from svn trunk. But it may work with fpc 2.4.2 too (tests are pending
Martin
Sorry the link is for windows.
You may need to find how to upgrade gdb for linux. Not sure what minimum version is required on linux.
It may even be that your gdb is already fine. Try upgrading Lazarus first.
- You also must update to the latest Lazarus snapshot. Older versions of Lazarus do not work with the 64 bit debugger.
This is definitely true for win and linux. Only the most recent snapshots of Lazarus (last 1 or 2 weeks) support debugging on 64 bit
- As for fpc, I know t was tested for fpc from svn trunk. But it may work with fpc 2.4.2 too (tests are pending
Also compile your apps with dwarf -gw
And one more: if all else fails.
Look at the link (that I forgot)
http://bugs.freepascal.org/view.php?id=15587
and compile your app with a diff imagebase
Note:
(0035256) Bernd Engelhardt
2010-03-11 15:12
If you use {$IMAGEBASE $400000} in you code the debugger works as expected.
> > - Have a look here: download the latest gnu debugger from the link > Vincent posted (last note)
forgot the line :) ...
http://bugs.freepascal.org/view.php?id=15587 (but anyway windows)
Martin wroteIf you use {$IMAGEBASE $400000} in you code the debugger works as expected.
Does imagebase has effect on linux? I thought it is windows only property.
Best regards,
Paul Ishenin
Sorry the link is for windows. You may need to find how to upgrade gdb for linux. Not…
Martin wroteYou may need to find how to upgrade gdb for linux. Not sure what minimum version is required on linux.
Current GDB version for ArchLinux (both i686 and x86_64) is 7.2 (of course the thread starter might have an older version if he has not updated his system).
Just for information, as I'm running ArchLinux on both architectures as well :D
Regards,
Sven
exactly. I resolved, i changed path, first path's debugger was wrong