Register window not filled out when program starts
Original Reporter info from Mantis: ahydra447
-
Reporter name: Colin_Haywood
Original Reporter info from Mantis: ahydra447
- Reporter name: Colin_Haywood
Description:
The "Registers" debug window only fills up with information if the window is opened after hitting a breakpoint. If the window is open to start with no information ever appears.
With the program specified in the "Steps to Reproduce" section it seemed to reliably behave this way; but with my main project it did not always work if the breakpoint was put in the subprocedure (the only reliable way to get the register info was to have the window closed, breakpoint the main program code, run the program to this breakpoint THEN open the window and continue).
AFAICR the debug windows all worked fine under 0.9.26.2.
Steps to reproduce:
Use this simple program
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes;
//{IFDEF WINDOWS}{
R project1.rc}{$ENDIF}
procedure SomeProcedure;
begin
writeln('In SomeProcedure');
end;
begin
writeln('In Main');
SomeProcedure;
Readln;
end.
Open the register window before starting the program. With a breakpoint at any (valid) point in the code run the program. The breakpoint will be hit but the register window will not be filled with information.
If on the other hand you have the register window closed, then start the program and when the breakpoint is reached open it, it will have info.
Additional information:
I also had some problems with F8-stepping through (Intel-syntax, using $ASMMODE INTEL) assembly language code when it would step first into some system code and then I had to hit F8 again to return to my actual program. In the assembler window (that popped up out of my control) some lines of the program source were replaced with rather odd assembler code (eg movl %edi, %edi) that looked nothing like the source I had written. Unfortunately this bug is somewhat tricky to reproduce.
Mantis conversion info:
- Mantis ID: 17148
- OS: tested on Windows Vista64 & XP32
- Build: beta
- Version: 0.9.28.2
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 28138 (#f77062d2)
- Target version: 0.9.30
- LazTarget: 1.0