Linux MS DOS discussions
 help / color / mirror / Atom feed
* Re: Need advise on how to proceed in debugging ...
@ 2002-05-01 18:12 Stas Sergeev
  0 siblings, 0 replies; 2+ messages in thread
From: Stas Sergeev @ 2002-05-01 18:12 UTC (permalink / raw)
  To: linux-msdos

Hello.

Bryan J. Smith wrote:
> 1.  I'm having a bit of difficulty trying to figure out how to enable
> debugging.
There are a lot of debug options.
You may enable the debug logging with
-D9+xxx option, where xxx specifies the
type of events you are going to log.
So, to enable a file access logging,
you'll have to specify something like
"-D9+d -o /tmp/log" as a dosemu command-line
arguments. Consult "man dos" for more.
If you want to debug the program that
is running under dosemu, you have to
start "dosdebug" program that comes with
dosemu.
And if you want to debug dosemu itself
(which is what you have to do in case
it locks up), you have to recompile it
with debug info and attach a gdb to it.

> difference.  I understand you can also "boot" a non-mounted,
> "native/real" C: partition too.  If so, can I run multiple instances of
> DOSEmu, or am I limited to only 1 now since I'm booting a real
> partition?
Even if you are not strictly limited,
you'll certainly have a filesystem
corruption once the both instances of
dosemu are going to write something
simultaneously.


^ permalink raw reply	[flat|nested] 2+ messages in thread
* Need advise on how to proceed in debugging ...
@ 2002-05-01  7:51 Bryan J. Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan J. Smith @ 2002-05-01  7:51 UTC (permalink / raw)
  To: linux-msdos

I have a program that works near-perfect under DOSEmu.  But it will
"hang" when doing two different, distinct operations -- and it starts
eating up CPU time.  It, of course, doesn't hang under "real" DOS, so
it's gotta be some sort of DOSEmu setting.  No file corruption occurs,
DOSEmu just hangs before it corrupts anything (thank God).  For the most
part, this setup is working _better_ than I anticipated (long story),
and it is _far_more_reliable_ to run it under multiple DOSEmu instances
on a single machine, than to SMB share out to Windows systems (yes, even
with Oplocks disabled, again, long story).  [ BTW, the lock happens even
when there is only one instance running -- whenever I try to do those 2
specific things. ]

Questions:

1.  I'm having a bit of difficulty trying to figure out how to enable
debugging.  I've done a bit of RTFM, but I can't figure it out (yeah,
bad excuse ;-).  Anyone got a 1-to-2 "liner" on a typical set of
settings to use to dump out everything?

2.  I'm suspecting it is a file access issue.  I'm "booting" a directory
where it runs io.sys directly, etc..., so ledir and VFS is used.  I've
tried using both a EXT2 and MSDOS (not VFAT) mounted as
/var/lib/dosemu/drdos703 (or msdos622) directory (which are my boot
directories, depending on which one I'm running), which makes no
difference.  I understand you can also "boot" a non-mounted,
"native/real" C: partition too.  If so, can I run multiple instances of
DOSEmu, or am I limited to only 1 now since I'm booting a real
partition?

Thanx ... sorry for the "generic" stuff here, but I'll post more info
when I get some hard debugging info.

-- Bryan

-- 
They "sell" software "like a book" so they can sell it en masse
without a written agreement.  But if you want to "transfer" it,
they say it's not "like a book" but "licensed" under agreement.
---------------------------------------------------------------
Bryan J. Smith, SmithConcepts, Inc.   mailto:b.j.smith@ieee.org
Engineers and IT Professionals     http://www.SmithConcepts.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-01 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-01 18:12 Need advise on how to proceed in debugging Stas Sergeev
  -- strict thread matches above, loose matches on Subject: below --
2002-05-01  7:51 Bryan J. Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox