FPDebug highlights wrong lines on crash
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
FPDebug highlights wrong lines on crash.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
procedure FormClick(Sender: TObject);
private
procedure AAA;
procedure BBB;
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.AAA;
var i: Integer;
l: TLabel;
begin
i:=1;
l.caption:='abc';
i:=2;
end;
procedure TForm1.BBB;
var i: Integer;
begin
i:=1;
AAA;
i:=2;
end;
procedure TForm1.FormClick(Sender: TObject);
var i: Integer;
begin
i:=1;
BBB;
i:=2;
end;
end.
Steps to reproduce:
Set Debugger to FPDebug in Options. Open Call Stack window. Run project. Click the form. Now project crashes.
Click the relevant line in Call Stack window.
While with GDB it highlights the correct lines, with FPDebug it highlights the next lines (i:=2;).
Additional information:
Lazarus 2.1.0 r59879 FPC 3.3.1 x86_64-linux-qt
Mantis conversion info:
- Mantis ID: 34753
- OS: Linux
- OS Build: Chakra 64-bit
- Build: 59879
- Platform: amd64
- Version: 2.1 (SVN)
- Fixed in version: 2.2
- Fixed in revision: 59978 (#7ccec4c2)
- Target version: 2.2