Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-11

gnu debugger

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ugaciaka

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

Reply by email

Mark Morgan Lloyd
to ugaciaka
ugaciaka wrote 5 lines
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.

I don't understand what you are trying to do. Why should putting a breakpoint in your code have any result on compilation?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Martin
to ugaciaka: a I use Lazarus on Arch Linux 64bit. I installed gdb and configured this debugger. But…
ugaciaka wrote 7 lines
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?

- 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

Reply by email

Martin
to Martin
Martin wrote 11 lines
On 27/11/2010 12:23, ugaciaka wrote: > 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? - Have a look here: download the latest gnu debugger from the link Vincent posted (last note)

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

Reply by email

Martin
to Martin
Martin wrote 9 lines
On 27/11/2010 12:45, Martin wrote: > On 27/11/2010 12:23, ugaciaka wrote: >> 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?

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)

Show quoted text 25 lines
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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Paul Ishenin
to Martin
Martin wrote
If 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

Reply by email

Sven Barth
to Martin: Sorry the link is for windows. You may need to find how to upgrade gdb for linux. Not…
Martin wrote
You 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

Reply by email

ugaciaka
to Sven Barth
Show quoted text 10 lines
> You 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

exactly. I resolved, i changed path, first path's debugger was wrong

Reply by email