Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: "legend" <legend@public.sta.net.cn>
Subject: A problem with debugger dbx
Date: 1996/12/12	[thread overview]
Message-ID: <01bbe8e8$49fe9b60$83c660ca@pcnode.sta.net.cn> (raw)


Dear Sir,

I'm a assembly language programmer for Digital UNIX 3.2D. I have a
unexpected problem recently when I debug my executable files using the
traditional debugger under UNIX, dbx. It is listed in the following:

      (dbx) li      
       >[main,0x120001350]   lda    sp, -352(s0)       
        [main,0x120001354]   ldah   gp,8192(r27)
        [main,0x120001358]   lda    gp,28112(g0)  
        [main,0x12000135c]   stq    r16,0(sp)   
        [main,0x120001360]   stq    r17,312(sp)
        [main,0x120001364]   stq    r16,304(sp) 
        [main,0x120001368]   ldl    r1,304(sp) 
        [main,0x12000136c]   cmplt  r1,0x2,r2
        [main,0x120001370]   beq    r2,0x1200013e0  
        [main,0x120001374]   ldq    r27,032472(gp)

      (dbx) patch 0x120001350=0x4421e801
       >[main,0x120001350]   xor    r1, r1, r1 

     (dbx) 0x120001350/10i
       >[main,0x120001350]   xor    r1, r1, r1  
        [main,0x120001354]   call_pal    halt
        [main,0x120001358]   lda    gp,28112(g0)  
        [main,0x12000135c]   stq    r16,0(sp)   
        [main,0x120001360]   stq    r17,312(sp) 
        [main,0x120001364]   stq    r16,304(sp) 
        [main,0x120001368]   ldl    r1,304(sp)
        [main,0x12000136c]   cmplt  r1,0x2,r2
        [main,0x120001370]   beq    r2,0x1200013e0       
        [main,0x120001374]   ldq    r27,032472(gp)


The problem is that I want to change the instruction 'lda sp, -352(sp)'
at address 0x120001350 to that instruction ' xor r1, r1, r1' ONLY, but
the next intruction at address 0x120001354 is changed to 'call_pal  halt'
unexpectedly.

Why ? Is this a bug of Digital UNIX 3.2D ?

Any advice or help is welcome.   

                  Address:  3/F Zhongxi Mansion, 121-123 Jiangsu Road,
                             Shanghai (200050), China
                  Tel:       0086-21-62104066
                  Fax:       0086-21-62106508
                  E-Mail:    legend@public.sta.net.cn

Thanks in advance !!
Best Regards,
Qin Qinghua



                 reply	other threads:[~1996-12-12  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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