[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

603.0. "Toggling the DEBUG bit ?" by ILO::LENIHAN (John Lenihan 353-91-25128) Mon Nov 23 1987 13:17

    Hi...
    	Maybe someone out there has the following utility. Does anyone
    know how to make an image which was linked in an ordinary fashion
    to go into DEBUG when it is issued the command RUN. I think  there's
    a bit in the header which can be toggled but am not sure which one
    or how to go about it. Does anyone have a utility to do this.
    
    Apologies if this has been mentioned before.
    
    Thanks in Advance
    
    � J.
T.RTitleUserPersonal
Name
DateLines
603.1OXMYX::POLLAKCounting trees, in the Sahara.Mon Nov 23 1987 13:211
     Something other than $ run/debug ?
603.2TLE::BRETTMon Nov 23 1987 14:5017
    You have to
    
    	(a) add an address to the vector of startup addresses
    
    	(b) turn on the bit
                      
    
    Its an interesting problem in using
    
    	STARLET/LIB.REQ
    	Analyse/image
    	DUMP
    	PATCH/ABSOLUTE
    
          
    
    /Bevin
603.3SETIMAGE from the toolshed.VAXWRK::NEEDLEJeff NeedleMon Nov 23 1987 19:344
    Check out the tool called SETIMAGE in the tool shed on
    METOO::SW_TOOLS_CATALOG.
    
    j.
603.4VIDEO::LEICHTERJJerry LeichterMon Nov 23 1987 22:4155
I KNOW I've posted this before - perhaps in the DEBUG notesfile - but
here we go again....
							-- Jerry
-------------------DEBUG_OFF.COM----------------------
$ o = ""
$ if p2 .nes. "" then o = "/OUTPUT:" + p2
$ patch/absolute/journal:_NL:'o' 'p1'
examine/long 20			! get the link flags longword
deposit/long 20 = <\/2>*2	! clear the LNKDEBUG bit
!
update
$ exit
-------------------DEBUG_ON.COM----------------------
$ o = ""
$ if p2 .nes. "" then o = "/OUTPUT:" + p2
$ on warning then goto move
$! Try to just turn the "LNKDEBUG" bit on
$ patch/absolute/journal:_NL: 'o' 'p1'
examine/word 2
define base = \
!
verify/long base = 7ffedf68
!
examine/long 20			! get the link flags longword
deposit/long 20 = <\/2>*2+1	! set the LNKDEBUG bit
!
update
$ exit
$! No previous entry for debugger in vector, do things the hard way:
$! (insert one)
$move:
$ on warning then continue
$ patch/absolute/journal:_NL:'o' 'p1'
examine/word 2
define base = \
!
examine/long base + 8
define contents = \
deposit/long base + 0c = contents
!
examine/long base + 4
define contents = \
deposit/long base + 8 = contents
!
examine/long base
define contents = \
deposit/long base + 4 = contents
!
deposit/long base = 7ffedf68
!
examine/long 20			! get the link flags longword
deposit/long 20 = <\/2>*2+1	! set the LNKDEBUG bit
!
update
$done:
603.5ILO::LENIHANJohn Lenihan 353-91-25128Tue Nov 24 1987 04:585
    Thanks all for the instant help !
    
    
    
    � John.