From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,2ac787f6dae2a89a,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,2ac787f6dae2a89a,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-11-12 11:48:56 PST Xref: gmd.de comp.unix.osf.osf1:1491 comp.unix.programmer:10231 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!zippy.MathWorks.Com!NewsWatcher!user From: cpackard@mathworks.com (Chuck Packard) Newsgroups: comp.unix.osf.osf1,comp.unix.programmer Subject: Get GDB to stop at Unaligned access Followup-To: comp.unix.programmer Date: 12 Nov 1993 16:16:13 GMT Organization: The Mathworks, Inc. Message-ID: NNTP-Posting-Host: cpackard.mathworks.com Hi, I'm trying to build an app under OSF 1.3 on an Alpha. Can anyone tell me how to get gdb or dbx to stop at the C line causing an 'Unaligned access' error message to be printed? In case someone as seen my problem, let me describe it. When I use gdb to stop at the pc contained in an unaligned access message (via 'break *0x1a2b3c4d5'), it claims the error comes from a line where I've got a link list and I'm trying to set a pointer to NULL; like head->next->next = (struct_type *) NULL; I don't see why an assignment should cause this kind of error! Any one seen this or know how I can investigate further? Regards, Chuck Packard cpackard@mathworks.com The Mathworks, Inc. 508.653.1415 ------------------------------------------------------------- If we had known 10 years ago today would be 10 years from now, would we spend tomorrows yesterdays and make it last somehow. - from "No Time to Kill" by Clint Black