User Tools

Site Tools


blog:pushbx:2023:0911_early_september_work_-_msdebug_toclip_ldebug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blog:pushbx:2023:0911_early_september_work_-_msdebug_toclip_ldebug [2023-09-11 20:07:25 +0200 Sep Mon]
ecm created
blog:pushbx:2023:0911_early_september_work_-_msdebug_toclip_ldebug [2023-09-12 11:09:08 +0200 Sep Tue] (current)
ecm [Debugger relocation in init]
Line 67: Line 67:
 ==== Debugger relocation in init ==== ==== Debugger relocation in init ====
  
-Referring back to the FreeDOS kernel buffer underflow bug that randomly occurred when using WarpLink, there is obviously a use for installing the debugger in another spot than it would be loaded by FreeCOM by default. (LH would work, but the initial executable allocation of the debugger is much higher than its final allocation, so our UMBs do not have enough space for a direct installation there on dosemu2.)+Referring back to [[blog:pushbx:2023:0828_late_august_work#freedos_kernel|the FreeDOS kernel buffer underflow bug]] that randomly occurred when using WarpLink, there is obviously a use for installing the debugger in another spot than it would be loaded by FreeCOM by default. (LH would work, but the initial executable allocation of the debugger is much higher than its final allocation, so our UMBs do not have enough space for a direct installation there on dosemu2.)
  
 Instead of juggling two debuggers, it was desirable [[https://hg.pushbx.org/ecm/ldebug/rev/3ef2c29eb6b3|to add an option to the debugger]] to install itself at another location. This, of course, requires the dreaded process relocation. It was a simple matter to adjust [[https://hg.pushbx.org/ecm/tsr/file/00a31da6be94/transien.asm#l1240|the code from the TSR example's process relocation]]. Setting the UMB link state and memory allocation strategy, as well as allocating memory for the process block and environment block, were also readily apparent. Instead of juggling two debuggers, it was desirable [[https://hg.pushbx.org/ecm/ldebug/rev/3ef2c29eb6b3|to add an option to the debugger]] to install itself at another location. This, of course, requires the dreaded process relocation. It was a simple matter to adjust [[https://hg.pushbx.org/ecm/tsr/file/00a31da6be94/transien.asm#l1240|the code from the TSR example's process relocation]]. Setting the UMB link state and memory allocation strategy, as well as allocating memory for the process block and environment block, were also readily apparent.
blog/pushbx/2023/0911_early_september_work_-_msdebug_toclip_ldebug.txt ยท Last modified: 2023-09-12 11:09:08 +0200 Sep Tue by ecm