From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,2045a3c418da4c17,start X-Google-Attributes: gidf678f,public From: "legend" Subject: A problem with debugger dbx Date: 1996/12/12 Message-ID: <01bbe8e8$49fe9b60$83c660ca@pcnode.sta.net.cn>#1/1 X-Deja-AN: 203687410 organization: LASSH newsgroups: comp.unix.osf.misc 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