Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing.
Always I get "No debugger support available".
Thank you for your help.
Lubomir Cabla

Mailing lists / fpc-pascal / 2014-03
13 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing.
Always I get "No debugger support available".
Thank you for your help.
Lubomir Cabla
Sorry for the late reply.
This is indeed a packaging error.
I managed to build a IDE containing GDB 7.4 library.
Nevertheless, before changing the idedos.zip
in dist/2.6.4/i386-go32v2/separate/
and the content of the files at
dist/2.6.4/i386-go32v2/ level.
I would like you, if possible to test this executable out and report
if debugging is really functional (ideally on a true dos machine )
I was only able to test the resulting executable under windows XP.
I uploaded the new binary as a compressed zip file named fpgdb.zip
in dist/2.6.4/i386-go32v2/separate/.
Note that this is a huge file (9Mb zipped, and 28Mb unzipped,
which contains full debugging information of fp.exe itself,
including for the libgdb.a library).
It would be most helpful if you (or someone else)
could test this IDE on bare Dos and report if debugging is functional.
If this is the case, I will modify idedos.zip and the big zip files in dist/2.6.4/i386-go32v2/ directory.
Thanks in advance and sorry for the error.
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 17 mars 2014 20:54
À : FPC-Pascal users discussions
Objet : [fpc-pascal] FPC 2.6.4 for GO32
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing.
Always I get "No debugger support available".
Thank you for your help.
Lubomir Cabla
No need to apologize, thank you and Tomas Hajny for your help.
I made a fresh installation of FPC GO32V2 2.6.4 in pure DOS from Win98 SE/FAT32 with DOSLFN.
(BTW, in package dos264full.zip is missing cwsdpmi.exe)
For testing FP.EXE with GDB is used small test program:
var x : word;
begin
x:=1;
writeln('x=',x);
end.1. Compilation of test program
Options - Compiler - Browser
No browser - O.K.
Only Global browser - error
Local and global browser - error
Only for selected option "No browser" is compilation O.K., otherwise I always get this error:
z-test.pas(5,1) Fatal: Compilation aborted
Error: Compiler exited
Error: Range check error
and then "No debugger support available"
With selected option "No browser" is GDB available and it seems to be O.K.
2. Run new FP.EXE
After first compilation at every start of new FP.EXE I get an error in Compiler messages:
hugevall.c(0) Fatal: $009E53FB of hugevall.c
Fatal: $000020B5
I made some screenshots if you want to see.
Thank you for your support.
Lubomir Cabla
I was able to reproduce your problem,
but not to fix it yet
I hope I will find a fast fix.
Sorry for the trouble,
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 24 mars 2014 15:54
À : FPC-Pascal users discussions
Objet : Re: [fpc-pascal] FPC 2.6.4 for GO32
No need to apologize, thank you and Tomas Hajny for your help.
I made a fresh installation of FPC GO32V2 2.6.4 in pure DOS from Win98 SE/FAT32 with DOSLFN.
(BTW, in package dos264full.zip is missing cwsdpmi.exe)
For testing FP.EXE with GDB is used small test program:
var x : word;
begin
x:=1;
writeln('x=',x);
end.1. Compilation of test program
Options - Compiler - Browser
No browser - O.K.
Only Global browser - error
Local and global browser - error
Only for selected option "No browser" is compilation O.K.,
otherwise I always get this error:
z-test.pas(5,1) Fatal: Compilation abortedError: Compiler exited
Error: Range check error
and then "No debugger support available"
With selected option "No browser" is GDB available and it seems to be O.K.
2. Run new FP.EXE
After first compilation at every start of new FP.EXE I get an error in Compiler messages:
hugevall.c(0) Fatal: $009E53FB of hugevall.c
Fatal: $000020B5
I made some screenshots if you want to see.
Thank you for your support.
Lubomir Cabla
On Mon, Mar 24, 2014 at 10:00 AM, Pierre Free Pascal wrote:
Sorry for the late reply.
This is indeed a packaging error.
I managed to build a IDE containing GDB 7.4 library.
Nevertheless, before changing the idedos.zip
in dist/2.6.4/i386-go32v2/separate/
and the content of the files at
dist/2.6.4/i386-go32v2/ level.
I would like you, if possible to test this executable out and report
if debugging is really functional (ideally on a true dos machine )
I was only able to test the resulting executable under windows XP.
I uploaded the new binary as a compressed zip file named fpgdb.zip
in dist/2.6.4/i386-go32v2/separate/.
Note that this is a huge file (9Mb zipped, and 28Mb unzipped,
which contains full debugging information of fp.exe itself,
including for the libgdb.a library).
It would be most helpful if you (or someone else)
could test this IDE on bare Dos and report if debugging is functional.
If this is the case, I will modify idedos.zip and the big zip files in dist/2.6.4/i386-go32v2/ directory.
Thanks in advance and sorry for the error.
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 17 mars 2014 20:54
À : FPC-Pascal users discussions
Objet : [fpc-pascal] FPC 2.6.4 for GO32
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing.
Always I get "No debugger support available".
Thank you for your help.
Lubomir Cabla
I found the cause of the ugly behavior
See
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision <http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=27281> &revision=27281
Its astonishing this was not found before
I suspect this is mainly due to the fact that
most of the time djgpp_last_ctor contained a NIL pointer,
but this was just a coincidence.
Hopefully, with that fix include, I will be able to generate
a functional IDE
I will send a new message after I update the fpgdb.zip file.
Pierre Muller
De :
De la part de Pierre Free
Pascal
Envoyé : lundi 24 mars 2014 23:36
À : 'FPC-Pascal users discussions'
Objet : Re: [fpc-pascal] FPC 2.6.4 for GO32
I was able to reproduce your problem,
but not to fix it yet
I hope I will find a fast fix.
Sorry for the trouble,
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 24 mars 2014 15:54
À : FPC-Pascal users discussions
Objet : Re: [fpc-pascal] FPC 2.6.4 for GO32
No need to apologize, thank you and Tomas Hajny for your help.
I made a fresh installation of FPC GO32V2 2.6.4 in pure DOS from Win98 SE/FAT32 with DOSLFN.
(BTW, in package dos264full.zip is missing cwsdpmi.exe)
For testing FP.EXE with GDB is used small test program:
var x : word;
begin
x:=1;
writeln('x=',x);
end.1. Compilation of test program
Options - Compiler - Browser
No browser - O.K.
Only Global browser - error
Local and global browser - error
Only for selected option "No browser" is compilation O.K.,
otherwise I always get this error:
z-test.pas(5,1) Fatal: Compilation abortedError: Compiler exited
Error: Range check error
and then "No debugger support available"
With selected option "No browser" is GDB available and it seems to be O.K.
2. Run new FP.EXE
After first compilation at every start of new FP.EXE I get an error in Compiler messages:
hugevall.c(0) Fatal: $009E53FB of hugevall.c
Fatal: $000020B5
I made some screenshots if you want to see.
Thank you for your support.
Lubomir Cabla
On Mon, Mar 24, 2014 at 10:00 AM, Pierre Free Pascal wrote:
Sorry for the late reply.
This is indeed a packaging error.
I managed to build a IDE containing GDB 7.4 library.
Nevertheless, before changing the idedos.zip
in dist/2.6.4/i386-go32v2/separate/
and the content of the files at
dist/2.6.4/i386-go32v2/ level.
I would like you, if possible to test this executable out and report
if debugging is really functional (ideally on a true dos machine )
I was only able to test the resulting executable under windows XP.
I uploaded the new binary as a compressed zip file named fpgdb.zip
in dist/2.6.4/i386-go32v2/separate/.
Note that this is a huge file (9Mb zipped, and 28Mb unzipped,
which contains full debugging information of fp.exe itself,
including for the libgdb.a library).
It would be most helpful if you (or someone else)
could test this IDE on bare Dos and report if debugging is functional.
If this is the case, I will modify idedos.zip and the big zip files in dist/2.6.4/i386-go32v2/ directory.
Thanks in advance and sorry for the error.
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 17 mars 2014 20:54
À : FPC-Pascal users discussions
Objet : [fpc-pascal] FPC 2.6.4 for GO32
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing.
Always I get "No debugger support available".
Thank you for your help.
Lubomir Cabla
A new fpgdb.zip is available
in dist/2.6.4/i386-go32v2/separate/ directory.
I added a readme.dos containing the changes
made to 2.6.4 sources in order to get a hopefully
fully functional IDE with debugger included.
Please test and report,
Pierre Muller
De :
De la part de Pierre Free
Pascal
Envoyé : mardi 25 mars 2014 12:26
À : 'FPC-Pascal users discussions'
Objet : Re: [fpc-pascal] FPC 2.6.4 for GO32
I found the cause of the ugly behavior
See
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision <http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=27281> &revision=27281
Its astonishing this was not found before
I suspect this is mainly due to the fact that
most of the time djgpp_last_ctor contained a NIL pointer,
but this was just a coincidence.
Hopefully, with that fix include, I will be able to generate
a functional IDE
I will send a new message after I update the fpgdb.zip file.
Pierre Muller
De :
De la part de Pierre Free
Pascal
Envoyé : lundi 24 mars 2014 23:36
À : 'FPC-Pascal users discussions'
Objet : Re: [fpc-pascal] FPC 2.6.4 for GO32
I was able to reproduce your problem,
but not to fix it yet
I hope I will find a fast fix.
Sorry for the trouble,
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 24 mars 2014 15:54
À : FPC-Pascal users discussions
Objet : Re: [fpc-pascal] FPC 2.6.4 for GO32
No need to apologize, thank you and Tomas Hajny for your help.
I made a fresh installation of FPC GO32V2 2.6.4 in pure DOS from Win98 SE/FAT32 with DOSLFN.
(BTW, in package dos264full.zip is missing cwsdpmi.exe)
For testing FP.EXE with GDB is used small test program:
var x : word;
begin
x:=1;
writeln('x=',x);
end.1. Compilation of test program
Options - Compiler - Browser
No browser - O.K.
Only Global browser - error
Local and global browser - error
Only for selected option "No browser" is compilation O.K.,
otherwise I always get this error:
z-test.pas(5,1) Fatal: Compilation abortedError: Compiler exited
Error: Range check error
and then "No debugger support available"
With selected option "No browser" is GDB available and it seems to be O.K.
2. Run new FP.EXE
After first compilation at every start of new FP.EXE I get an error in Compiler messages:
hugevall.c(0) Fatal: $009E53FB of hugevall.c
Fatal: $000020B5
I made some screenshots if you want to see.
Thank you for your support.
Lubomir Cabla
On Mon, Mar 24, 2014 at 10:00 AM, Pierre Free Pascal wrote:
Sorry for the late reply.
This is indeed a packaging error.
I managed to build a IDE containing GDB 7.4 library.
Nevertheless, before changing the idedos.zip
in dist/2.6.4/i386-go32v2/separate/
and the content of the files at
dist/2.6.4/i386-go32v2/ level.
I would like you, if possible to test this executable out and report
if debugging is really functional (ideally on a true dos machine )
I was only able to test the resulting executable under windows XP.
I uploaded the new binary as a compressed zip file named fpgdb.zip
in dist/2.6.4/i386-go32v2/separate/.
Note that this is a huge file (9Mb zipped, and 28Mb unzipped,
which contains full debugging information of fp.exe itself,
including for the libgdb.a library).
It would be most helpful if you (or someone else)
could test this IDE on bare Dos and report if debugging is functional.
If this is the case, I will modify idedos.zip and the big zip files in dist/2.6.4/i386-go32v2/ directory.
Thanks in advance and sorry for the error.
Pierre Muller
De :
De la part de Lubomír Cabla
Envoyé : lundi 17 mars 2014 20:54
À : FPC-Pascal users discussions
Objet : [fpc-pascal] FPC 2.6.4 for GO32
Maybe I'm doing something wrong but in the IDE from FPC 2.6.4 for GO32 is GDB missing.
Always I get "No debugger support available".
Thank you for your help.
Lubomir Cabla
First the good news:
this new release of FP.EXE has removed previous errors and it seems that GDB works. Thank you for your work.
Now the bad news:
1.
When I press "ALT+0" to get window list I get this error regardless if a file(s) are opened or not:
Runtime error 219 at $00004868
$00004868 FPC_CHECK_OBJECT_EXT, line 853 of
e:/fpc264/fpcsrc/rtl/inc/generic.inc
$000A614C TWINDOWLISTBOX__GETTEXT, line 81 of fpmwnd.inc $000423B5 TLISTVIEWER__DRAW, line 3530 of src/views.pas $0003C8DD TVIEW__DRAWVIEW, line 1433 of src/views.pas $0003E8E0 TGROUP__DRAWSUBVIEWS, line 2162 of src/views.pas $0003EA24 TGROUP__DRAW, line 2209 of src/views.pas $0003C8DD TVIEW__DRAWVIEW, line 1433 of src/views.pas $0003E8E0 TGROUP__DRAWSUBVIEWS, line 2162 of src/views.pas $0003C82C TVIEW__DRAWUNDERRECT, line 1409 of src/views.pas $0003C884 TVIEW__DRAWUNDERVIEW, line 1424 of src/views.pas
2.
Another problem I got with the keys Trace into (F7) and Step over (F8).
With a simple program using keys F7 and F8 works fine.
I have a project (about 200 000 lines).
When program running in IDE encounters a breakpoint program just hangs.
The same happens when I use a key F7 to trace any procedure (whether there is a breakpoint or not).
I'm afraid that something overwrites memory because sometimes the result is a corrupted FAT table.
When I use the "oldies but goldies" FPC 1.0.11 (IDE 0.9.2, GDB 5.2.1) for the same project everything works well.
Lubomir Cabla
Great...
This is the problem when you use seldom checked features like -CR...
This adds an explicit test when typecasting an
object or class to some specific type,
which revealed an error in the source (the error itself is harmless) as both types do use the same GetTitle method.
See
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=27305
This is a problem I often also see when trying to debug the IDE itself... It seems that when the program runs out of virtual memory, the behavior is not very reproducible...
Not sure what can be done here ...
Did you try to use -O- to recompile all rtl/packages to rule out optimization error?
Anyway, I uploaded a new fpgdb.zip file to
dist/2.6.4/i386-go32v2/separate/
this time compiled using
make distclean all OPT="-n -gsl -O-"
at fpcsrc level.
Please try it out and report,
Pierre Muller
I have only good news...
The window list with ALT+0 works, good job, thank you. Yes, I am using the option -Cr just for debugging purpose.
Did you try to use -O- to recompile all rtl/packages to rule out optimization error?
Not yet, because I found the cause of the freezing program FP.EXE when I use trace key F7 or run program with breakpoint(s).
*The cause is CWSDPMI.EXE r7.*
If I use an earlier version CWSDPMI.EXE r5 or another DPMI server (hdpmi32.exe)
everything works as it should!
Some users reported a bug to me (using new CWSDPMI r7)
Page Fault cr2=00400000 at eip=419; flags=3206
Eax=00000300 ebx=00330021 ecx=000000a6 edx=bfeb00bf esi=00000000 edi=00000000
Ebp=00000001 esp=00003ffa cs=87 ds=bf es=b7 fs=0 gs=0 ss=a7 error=0006
The explanation on http://www.delorie.com/djgpp/v2faq/faq12_2.html:
"This usually means the program tried to access some data via a NULL or an uninitialized pointer."
But using CWSDPMI.EXE r5 or hdpmi32.exe no error occurs (with the same program).
SUMMARY:
Thank you very much, now I am happy because everything works including the possibility of debugging.
I'll do more tests but I assume that everything will be fine.
Lubomir Cabla
Great !
No idea what could trigger that behavior change... I never tested cwsdpmi r7...
Great, please report all findings!
Pierre Muller
No idea what could trigger that behavior change... I never tested cwsdpmi r7...
But this release CWSDPMI r7 is included in the installation package basedos.zip from FPC 2.6.4 for DOS. However it does not matter.
Lubomir Cabla
If the issues with CWSDPMI r7 are reproducible, we should indeed revert to an earlier version (or report the difference to CWSDPMI maintainer).
Tomas
Yes, it is reproducible.
I will try to reduce size of my program and debug it in fp.exe. But testing will be difficult because often occurs crash of FAT after forced restart.
It is also possible that the error is in my program.
If I find something I'll let you know.
Lubomir Cabla