more debug output on exec fnc
Brought to you by:
bartoldeman
it is attempt to give more info when dosemu performs INT21 0x4B load/exec - it prints command name and its command line (which proved to be very useful when I was debugging of my black-box DOS program, which attempt to run several others programs - and they sometimes triggered even other programs).
This path is maybe a smut and should be reviewed.
One thing which I not understand are these debug output redefinitions. When pick out ifprint(debug_level(... [un]definitions from src/include/dosemu_debug.h, then got:
(reason for those redifinitions?)
and when I print where certain debug outputs are, then I get this:
it seems as e.g. I must enable joystick debug to see debug outputs from base/misc/dos2linux.c and plugin/commands/unix.c - which isn't too clear without reading dosemu sources.
Looks like a bug, patches welcome.
As for your patch.
- Why do you think "AL=03h:load overlay hasnot cmdline in EPB"?
- Please remove unrelated bits, like int28
- Please use 'git format-patch'
Hi Stas, thanks for all Your advices. Revised patch is attached.
Regarding to cmdline for subfn "AL=03h":load overlay, I take this info from Ralf Browns Interrupt list v61, "INTERRUP.G", INT21 AH=0x4B description:
From my tests, I found that AX=0x4B03 is called for "DEVICE=progdrivername"
statements in config.sys, and on EPB offset 2 is anything else than pointer to command line (although "DEVICE=" allows parameters !). It seems as loaded program/driver has another way to obtain their options - but I not know them.
Perhaps do you?
Applied, thanks.