What does go32-v2 reports in that DOSBox?
From: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>What does go32-v2 reports in that DOSBox?
Date: Sun, 30 Aug 2020 17:30:17 +0200
Saved in: C:\DOSBOX_dos_projects\DJGPP\testproj\test.cpp
With Windows7 (32bit) Cmd shell in that folder, called this, and got the
output:
C:\DOSBOX~3\DJGPP\testproj>gcc -g test.cpp -o test.exe
Exiting due to signal SIGSEGV
Stack Fault at eip=00000a11
eax=00010001 ebx=01c40080 ecx=0165a400 edx=004207bf esi=000023c2
edi=000023b2
ebp=0042773a esp=0042773a program=C:\DJGPP_~1\BIN\GCC.EXE
cs: sel=00cf base=0000d150 limit=00000db0
ds: sel=00b7 base=00005860 limit=0000ffff
es: sel=0040 invalid
fs: sel=0000
gs: sel=0000
ss: sel=00b7 base=00005860 limit=0000ffff
App stack: [00423b78..00223b7c] Exceptn stack: [00223ac8..00221b88]
.
Since the delorie.com site is currently down I looked elsewhere and
found some FAQ where it says this could come from the .env file having
extra whitespace somewhere... although supposedly fixed by now. And I
did not edit that file, it's the one I just unzipped.
Any ideas what could be wrong?
From: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>
Date: Sun, 30 Aug 2020 17:30:17 +0200
Saved in: C:\DOSBOX_dos_projects\DJGPP\testproj\test.cpp
With Windows7 (32bit) Cmd shell in that folder, called this, and got the output:
C:\DOSBOX~3\DJGPP\testproj>gcc -g test.cpp -o test.exe
Exiting due to signal SIGSEGV
Stack Fault at eip=00000a11
eax=00010001 ebx=01c40080 ecx=0165a400 edx=004207bf esi=000023c2
edi=000023b2
ebp=0042773a esp=0042773a program=C:\DJGPP_~1\BIN\GCC.EXE
cs: sel=00cf base=0000d150 limit=00000db0
ds: sel=00b7 base=00005860 limit=0000ffff
es: sel=0040 invalid
fs: sel=0000
gs: sel=0000
ss: sel=00b7 base=00005860 limit=0000ffff
App stack: [00423b78..00223b7c] Exceptn stack: [00223ac8..00221b88]
.
Since the delorie.com site is currently down I looked elsewhere and
found some FAQ where it says this could come from the .env file having
extra whitespace somewhere... although supposedly fixed by now. And I
did not edit that file, it's the one I just unzipped.
Any ideas what could be wrong?
From: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>
Date: Sun, 30 Aug 2020 18:32:41 +0200
go32/v2 version 2.0 built Oct 18 2015 09:41:08
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
well as v1 binaries (old makefiles). Put ahead of the old go32 in
your PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 704964 Kb
DPMI swap space available: 0 Kb
Hm. DPMI swap space 0 = bad?
problem. Maybe some Windows 7 specific problem? I think someone
posted here long ago tricks to get the Windows DPMI provider more
friendly... Anyone?
From: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>No, that's OK. Many "modern" DPMI providers just lump all the memory together (700MB in your case), and don't bother separating them into
Date: Sun, 30 Aug 2020 18:32:41 +0200
go32/v2 version 2.0 built Oct 18 2015 09:41:08
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as >> well as v1 binaries (old makefiles). Put ahead of the old go32 in
your PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 704964 Kb
DPMI swap space available: 0 Kb
Hm. DPMI swap space 0 = bad?
RAM and swap.
The memory amount sounds enough, so I'm puzzled what could be the
problem. Maybe some Windows 7 specific problem? I think someone
posted here long ago tricks to get the Windows DPMI provider more
friendly... Anyone?
From: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>
Date: Sun, 30 Aug 2020 18:32:41 +0200
go32/v2 version 2.0 built Oct 18 2015 09:41:08
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
well as v1 binaries (old makefiles). Put ahead of the old go32 in
your PATH
but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 704964 Kb
DPMI swap space available: 0 Kb
Hm. DPMI swap space 0 = bad?
No, that's OK. Many "modern" DPMI providers just lump all the memory together (700MB in your case), and don't bother separating them into
RAM and swap.
The memory amount sounds enough, so I'm puzzled what could be the
problem. Maybe some Windows 7 specific problem? I think someone
posted here long ago tricks to get the Windows DPMI provider more
friendly... Anyone?
From: "A. Wik (awik32@gmail.com) [via djgpp@delorie.com]" <djgpp@delorie.com> Date: Sun, 30 Aug 2020 18:35:55 +0000
I've said it before, but NT series Windows support for DOS programs is pathetic
I thought he was running DJGPP under DOSBox and not directly under Windows 7.
How about trying some other kind of virtual machine, eg. QEMU or VMWare?
Hi all,
On Sun, 30 Aug 2020 at 17:10, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] <djgpp@delorie.com> wrote:
I thought he was running DJGPP under DOSBox and not directly underFrom: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>No, that's OK. Many "modern" DPMI providers just lump all the memory
Date: Sun, 30 Aug 2020 18:32:41 +0200
go32/v2 version 2.0 built Oct 18 2015 09:41:08
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as >>> well as v1 binaries (old makefiles). Put ahead of the old go32 in
your PATH
but do not delete your old go32 - leave it in the PATH after this one. >>> Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 704964 Kb
DPMI swap space available: 0 Kb
Hm. DPMI swap space 0 = bad?
together (700MB in your case), and don't bother separating them into
RAM and swap.
The memory amount sounds enough, so I'm puzzled what could be the
problem. Maybe some Windows 7 specific problem? I think someone
posted here long ago tricks to get the Windows DPMI provider more
friendly... Anyone?
Windows 7. DOSBox is designed to be able to run old games, so not
even long filenames are implemented. How about trying some other kind
of virtual machine, eg. QEMU or VMWare?
I've said it before, but NT series Windows support for DOS programs is pathetic (and on 64-bit versions it is nonexistent). Then again,
Linux never directly supported DOS programs at all. In both cases,
virtual machines are the solution.
Cheers,
Albert.
Hi,
How about trying some other kind of virtual machine, eg. QEMU or VMWare?
I was now thinking of running a VirtualBox WinXp32 image on my system,
with a shared folder for the sources, and a build script I trigger manually. That would be somewhat workable, I guess.
I have no experience with QEMU or VMWare, and interoperability with
stuff that runs on the host system.
Hi,
I thought he was running DJGPP under DOSBox and not directly underWindows 7.
No no, I planned to make the programs run under DOSbox, but compiling is
from within windows.
I guess for debugging I would have to use RHIDE within DOSbox, esp.
because Graphics modes are involved.
But I'd prefer not to use it as an actual editor.
How about trying some other kind of virtual machine, eg. QEMU or VMWare?
I was now thinking of running a VirtualBox WinXp32 image on my system,
with a shared folder for the sources, and a build script I trigger
manually.
That would be somewhat workable, I guess.
I have no experience with QEMU or VMWare, and interoperability with
stuff that runs on the host system.
Hi all,
On Sun, 30 Aug 2020 at 17:10, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] <djgpp@delorie.com> wrote:binaries as
From: "sleepy_dog@gmx.de [via djgpp@delorie.com]" <djgpp@delorie.com>
Date: Sun, 30 Aug 2020 18:32:41 +0200
go32/v2 version 2.0 built Oct 18 2015 09:41:08
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2
one.well as v1 binaries (old makefiles). Put ahead of the old go32 in
your PATH
but do not delete your old go32 - leave it in the PATH after this
I thought he was running DJGPP under DOSBox and not directly underSet GO32_V2_DEBUG=y in the environment to get verbose output.No, that's OK. Many "modern" DPMI providers just lump all the memory
DPMI memory available: 704964 Kb
DPMI swap space available: 0 Kb
Hm. DPMI swap space 0 = bad?
together (700MB in your case), and don't bother separating them into
RAM and swap.
The memory amount sounds enough, so I'm puzzled what could be the
problem. Maybe some Windows 7 specific problem? I think someone
posted here long ago tricks to get the Windows DPMI provider more
friendly... Anyone?
Windows 7. DOSBox is designed to be able to run old games, so not
even long filenames are implemented. How about trying some other kind
of virtual machine, eg. QEMU or VMWare?
I've said it before, but NT series Windows support for DOS programs is pathetic (and on 64-bit versions it is nonexistent). Then again,
Linux never directly supported DOS programs at all. In both cases,
virtual machines are the solution.
Cheers,
Albert.
<div><br></div><div>Damian</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 30, 2020 at 12:09 PM <a href="mailto:sleepy_dog@gmx.de">sleepy_dog@gmx.de</a> [via <a href="mailto:djgpp@delorie.com">djgpp@delorie.com</a>] <<a href="mailto:djgpp@delorie.com">djgpp@delorie.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
DOSBox provides a (mostly) elegant solution to this -- just share your
files directly. Unlike other VMs, DOSBox allows you to directly mount
the host filesystem within the DOS VM -- so you can just edit the
files directly using your editor of choice on Windows, then switch to
DOSBox and build them. (You do need to watch out for long filenames,
though.) In the odd occurrence of being out of sync, the DOSBox
command "resync" will refresh its cached directory of the host FS.
Damian
On Sun, Aug 30, 2020 at 12:09 PM sleepy_dog@gmx.de
<mailto:sleepy_dog@gmx.de> [via djgpp@delorie.com
<mailto:djgpp@delorie.com>] <djgpp@delorie.com
<mailto:djgpp@delorie.com>> wrote:
Hi,
> I thought he was running DJGPP under DOSBox and not directly
under Windows 7.
No no, I planned to make the programs run under DOSbox, but
compiling is from within windows.
I guess for debugging I would have to use RHIDE within DOSbox,
esp. because Graphics modes are involved.
But I'd prefer not to use it as an actual editor.
> How about trying some other kind of virtual machine, eg. QEMU or
VMWare?
I was now thinking of running a VirtualBox WinXp32 image on my system,
with a shared folder for the sources, and a build script I trigger
manually.
That would be somewhat workable, I guess.
I have no experience with QEMU or VMWare, and interoperability with
stuff that runs on the host system.
> Hi all,
>
> On Sun, 30 Aug 2020 at 17:10, Eli Zaretskii (eliz@gnu.org
<mailto:eliz@gnu.org>) [via
> djgpp@delorie.com <mailto:djgpp@delorie.com>] <djgpp@delorie.com
<mailto:djgpp@delorie.com>> wrote:
>>> From: "sleepy_dog@gmx.de <mailto:sleepy_dog@gmx.de> [via
djgpp@delorie.com <mailto:djgpp@delorie.com>]" <djgpp@delorie.com
<mailto:djgpp@delorie.com>>
>>> Date: Sun, 30 Aug 2020 18:32:41 +0200
>>>
>>> go32/v2 version 2.0 built Oct 18 2015 09:41:08
>>> Usage: go32 coff-image [args]
>>> Rename this to go32.exe only if you need a go32 that can run
v2 binaries as
>>> well as v1 binaries (old makefiles). Put ahead of the old
go32 in
>>> your PATH
>>> but do not delete your old go32 - leave it in the PATH
after this one.
>>> Set GO32_V2_DEBUG=y in the environment to get verbose output.
>>>
>>> DPMI memory available: 704964 Kb
>>> DPMI swap space available: 0 Kb
>>>
>>> Hm. DPMI swap space 0 = bad?
>> No, that's OK. Many "modern" DPMI providers just lump all the
memory
>> together (700MB in your case), and don't bother separating them
into
>> RAM and swap.
>>
>> The memory amount sounds enough, so I'm puzzled what could be the
>> problem. Maybe some Windows 7 specific problem? I think someone
>> posted here long ago tricks to get the Windows DPMI provider more
>> friendly... Anyone?
> I thought he was running DJGPP under DOSBox and not directly under
> Windows 7. DOSBox is designed to be able to run old games, so not
> even long filenames are implemented. How about trying some
other kind
> of virtual machine, eg. QEMU or VMWare?
>
> I've said it before, but NT series Windows support for DOS
programs is
> pathetic (and on 64-bit versions it is nonexistent). Then again,
> Linux never directly supported DOS programs at all. In both cases,
> virtual machines are the solution.
>
> Cheers,
> Albert.
>
Ah! Resync. I didn't know that. I had heard of sync'ing problems with
DOSBox & file system and seen myself that files created from the host
OS after starting DOSBox aren't showing up.
Will try that. Lack of long file names in DOSBox is kind of a pain,
though.
DOSBox provides a (mostly) elegant solution to this -- just share
your files directly. Unlike other VMs, DOSBox allows you to directly
mount the host filesystem within the DOS VM -- so you can just edit
the files directly using your editor of choice on Windows, then
switch to DOSBox and build them. (You do need to watch out for long
filenames, though.) In the odd occurrence of being out of sync, the
DOSBox command "resync" will refresh its cached directory of the host FS.
Damian
On Sun, Aug 30, 2020 at 12:09 PM sleepy_dog@gmx.de
<mailto:sleepy_dog@gmx.de> [via djgpp@delorie.com
<mailto:djgpp@delorie.com>] <djgpp@delorie.com
<mailto:djgpp@delorie.com>> wrote:
Hi,
> I thought he was running DJGPP under DOSBox and not directly
under Windows 7.
No no, I planned to make the programs run under DOSbox, but
compiling is from within windows.
I guess for debugging I would have to use RHIDE within DOSbox,
esp. because Graphics modes are involved.
But I'd prefer not to use it as an actual editor.
> How about trying some other kind of virtual machine, eg. QEMU
or VMWare?
I was now thinking of running a VirtualBox WinXp32 image on my
system,
with a shared folder for the sources, and a build script I
trigger manually.
That would be somewhat workable, I guess.
I have no experience with QEMU or VMWare, and interoperability with
stuff that runs on the host system.
> Hi all,
>
> On Sun, 30 Aug 2020 at 17:10, Eli Zaretskii (eliz@gnu.org
<mailto:eliz@gnu.org>) [via
> djgpp@delorie.com <mailto:djgpp@delorie.com>]
<djgpp@delorie.com <mailto:djgpp@delorie.com>> wrote:
>>> From: "sleepy_dog@gmx.de <mailto:sleepy_dog@gmx.de> [via
djgpp@delorie.com <mailto:djgpp@delorie.com>]" <djgpp@delorie.com
<mailto:djgpp@delorie.com>>
>>> Date: Sun, 30 Aug 2020 18:32:41 +0200
>>>
>>> go32/v2 version 2.0 built Oct 18 2015 09:41:08
>>> Usage: go32 coff-image [args]
>>> Rename this to go32.exe only if you need a go32 that can run
v2 binaries as
>>> well as v1 binaries (old makefiles). Put ahead of the old
go32 in
>>> your PATH
>>> but do not delete your old go32 - leave it in the PATH
after this one.
>>> Set GO32_V2_DEBUG=y in the environment to get verbose output.
>>>
>>> DPMI memory available: 704964 Kb
>>> DPMI swap space available: 0 Kb
>>>
>>> Hm. DPMI swap space 0 = bad?
>> No, that's OK. Many "modern" DPMI providers just lump all the
memory
>> together (700MB in your case), and don't bother separating
them into
>> RAM and swap.
>>
>> The memory amount sounds enough, so I'm puzzled what could be the
>> problem. Maybe some Windows 7 specific problem? I think someone
>> posted here long ago tricks to get the Windows DPMI provider more
>> friendly... Anyone?
> I thought he was running DJGPP under DOSBox and not directly under
> Windows 7. DOSBox is designed to be able to run old games, so not
> even long filenames are implemented. How about trying some
other kind
> of virtual machine, eg. QEMU or VMWare?
>
> I've said it before, but NT series Windows support for DOS
programs is
> pathetic (and on 64-bit versions it is nonexistent). Then again,
> Linux never directly supported DOS programs at all. In both cases,
> virtual machines are the solution.
>
> Cheers,
> Albert.
>
Hi,
I thought he was running DJGPP under DOSBox and not directly under Windows 7.
No no, I planned to make the programs run under DOSbox, but compiling is from within windows.
I guess for debugging I would have to use RHIDE within DOSbox, esp. because Graphics modes are involved.
But I'd prefer not to use it as an actual editor.
How about trying some other kind of virtual machine, eg. QEMU or VMWare?
I was now thinking of running a VirtualBox WinXp32 image on my system,
with a shared folder for the sources, and a build script I trigger manually. That would be somewhat workable, I guess.
I have no experience with QEMU or VMWare, and interoperability with
stuff that runs on the host system.
Saved in: C:\DOSBOX_dos_projects\DJGPP\testproj\test.cpp
With Windows7 (32bit) Cmd shell in that folder, called this, and got the output:
C:\DOSBOX~3\DJGPP\testproj>gcc -g test.cpp -o test.exe
Exiting due to signal SIGSEGV
Stack Fault at eip=00000a11
eax=00010001 ebx=01c40080 ecx=0165a400 edx=004207bf esi=000023c2
edi=000023b2
ebp=0042773a esp=0042773a program=C:\DJGPP_~1\BIN\GCC.EXE
cs: sel=00cf base=0000d150 limit=00000db0
ds: sel=00b7 base=00005860 limit=0000ffff
es: sel=0040 invalid
fs: sel=0000
gs: sel=0000
ss: sel=00b7 base=00005860 limit=0000ffff
App stack: [00423b78..00223b7c] Exceptn stack: [00223ac8..00221b88]
"Serial debugging" was mentioned, I at first thought this would work
similar, just using a serialconnection instead of ethernet. Apparently
it does not work the same way as you'd debug a program via gdbserver
running on a remote system.
I'm not familiar with that at all. Can someone point me to an explanation? Since I am somewhat familiar with gdb and it is very common, going a
route that rests on that would probably make most sense, even if it
works somewhat different on DOS.
Hi all,
On Thu, 3 Sep 2020 at 22:55, sleep...@gmx.de [via dj...@delorie.com] <dj...@delorie.com> wrote:
"Serial debugging" was mentioned, I at first thought this would work similar, just using a serialconnection instead of ethernet. Apparently
it does not work the same way as you'd debug a program via gdbserver running on a remote system.
I'm not familiar with that at all. Can someone point me to an explanation?
Since I am somewhat familiar with gdb and it is very common, going a
route that rests on that would probably make most sense, even if it
works somewhat different on DOS.
Le vendredi 4 septembre 2020 à 01:15:04 UTC+2, A. Wik (awik32@gmail.com) [via djgpp@delorie.com] a écrit :drop djgpp support since version 8 or 9.
Hi all,Gdb and gdbserver have conception problems and have quiet the same hardware requirements. Gdb teams try solve that since a long time by making them sharing more and more software but when djgpp was supported by gdb, gdbserver did not. Now, they simply
On Thu, 3 Sep 2020 at 22:55, sleep...@gmx.de [via dj...@delorie.com]
<dj...@delorie.com> wrote:
"Serial debugging" was mentioned, I at first thought this would work
similar, just using a serialconnection instead of ethernet. Apparently
it does not work the same way as you'd debug a program via gdbserver
running on a remote system.
I'm not familiar with that at all. Can someone point me to an explanation?
To remote or cross debug, you have to build a cross gdb that target i586-msdos-djgpp. Gdb 7.12 is okay for that.catch interruption and talk to gdb at this moment.
To debug your program running on djgpp compliant environment, you have to embedded a gdbstub. You can find one on djgpp ftp. The stub will act like gdbserver by implementing gdb communication protocol but it will be a part of your program that will
Stubs use serial connection because it use less hardware and software that tcp/IP over ethernet.
The stubs on ftp doesn't implement all gdb features. It's okay for breakpoint, stepping, read and write memory, intercepted segmentation fault. Your program have to be single threaded, multi thread is not implemented.Since I am somewhat familiar with gdb and it is very common, going a
route that rests on that would probably make most sense, even if it
works somewhat different on DOS.
S. Guillaume
Thanks for that info! I'll look into that.simply drop djgpp support since version 8 or 9.
Single threaded, yeah. I don't think there is much to gain from using multiple threads for a program targeted for DOSBox, so I'm fine with that. pif...@gmail.com wrote:
Le vendredi 4 septembre 2020 à 01:15:04 UTC+2, A. Wik (awi...@gmail.com) [via dj...@delorie.com] a écrit :
Hi all,Gdb and gdbserver have conception problems and have quiet the same hardware requirements. Gdb teams try solve that since a long time by making them sharing more and more software but when djgpp was supported by gdb, gdbserver did not. Now, they
On Thu, 3 Sep 2020 at 22:55, sleep...@gmx.de [via dj...@delorie.com]
<dj...@delorie.com> wrote:
"Serial debugging" was mentioned, I at first thought this would work
similar, just using a serialconnection instead of ethernet. Apparently >>> it does not work the same way as you'd debug a program via gdbserver
running on a remote system.
I'm not familiar with that at all. Can someone point me to an explanation?
catch interruption and talk to gdb at this moment.To remote or cross debug, you have to build a cross gdb that target i586-msdos-djgpp. Gdb 7.12 is okay for that.
To debug your program running on djgpp compliant environment, you have to embedded a gdbstub. You can find one on djgpp ftp. The stub will act like gdbserver by implementing gdb communication protocol but it will be a part of your program that will
Stubs use serial connection because it use less hardware and software that tcp/IP over ethernet.
The stubs on ftp doesn't implement all gdb features. It's okay for breakpoint, stepping, read and write memory, intercepted segmentation fault. Your program have to be single threaded, multi thread is not implemented.Since I am somewhat familiar with gdb and it is very common, going a
route that rests on that would probably make most sense, even if it
works somewhat different on DOS.
S. Guillaume
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (2 / 14) |
Uptime: | 64:07:52 |
Calls: | 5,559 |
Calls today: | 2 |
Files: | 11,680 |
Messages: | 5,121,196 |