Debugger error when running a program with an unused function just before main "begin"
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
-
Reporter name: Juha Manninen
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
- Reporter name: Juha Manninen
Description:
Lazarus is installed from the official 1.2.2 download package for Windows.
The error is:
---
The GDB command:
"-break-delete 7"
did not return any result.
---
A demo program is attached. It is my testbed for code snippets and does not do anything sensible.
See Steps To Reproduce for details.
Steps to reproduce:
Run the attached program. Debugger gives an error at once.
However you can prevent the error by doing either of the following:
1. Uncomment the line
//nodrv := StripFileDrive(s);
so that StripFileDrive function is used.
- Move StripFileDrive function above the CalcNextUpdTime function. CalcNextUpdTime is already used.
This means the error happens only when a function just above the main program body is not used.
Mantis conversion info:
- Mantis ID: 26209
- OS: Windows
- OS Build: 7
- Version: 1.2.2
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 47567 (#f611836e)
- Target version: 1.6