Debug info stores used unit name instead of realname() of unit source on case-preserving systems
Original Reporter info from Mantis: Adriaan van Os
-
Reporter name: Adriaan van Os
Original Reporter info from Mantis: Adriaan van Os
- Reporter name: Adriaan van Os
Description:
Suppose, I have a unit
UNIT myUnit;
with filename "myUnit.p" and a program P that uses the unit as follows
program P;
USES Myunit;
Now, FPC will record in the debugger-info "Myunit.p" for the filename instead of "myUnit.p". Xcode on Mac OS X complains:
"Xcode could not locate source file: ./Sources/Myunit.p (line: 3)"
and it will display breakpoints for the Unit orange colored rather than blue. This has been observed with stabs (-gpl) as well as dwarf (-gwl).
Additional information:
[p17:~] adriaan% fpc -i
Free Pascal Compiler version 2.3.1
Compiler Date : 2007/06/27
Compiler CPU Target: i386
Supported targets:
GO32 V2 DOS extender
Linux for i386
OS/2
Win32 for i386
FreeBSD/ELF for i386
Solaris for i386 (under development)
Beos for i386 (under development)
NetBSD for i386 (under development)
Netware for i386(clib)
WDOSX DOS extender
OpenBSD for i386 (under development)
OS/2 via EMX
Watcom compatible DOS extenders
Netware for i386(libc)
WinCE for i386
Linux for x64_6432
Darwin for i386
Symbian OS for i386
Supported CPU instruction sets:
386
PENTIUM
PENTIUM2
PENTIUM3
PENTIUM4
PENTIUMM
Supported FPU instruction sets:
X87
SSE
SSE2
SSE3
Supported Optimizations:
REGVAR
UNCERTAIN
STACKFRAME
PEEPHOLE
ASMCSE
LOOPUNROLL
TAILREC
This program comes under the GNU General Public Licence
For more information read COPYING.FPC
Report bugs,suggestions etc to:
bugs@freepascal.org
Mantis conversion info:
- Mantis ID: 9172
- Version: 2.3.1
- Fixed in version: 2.2.2
- Fixed in revision: 8477 (#35681c23)