Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: cpackard@mathworks.com (Chuck Packard)
Subject: Get GDB to stop at Unaligned access
Date: 12 Nov 1993 16:16:13 GMT	[thread overview]
Message-ID: <cpackard-121193111453@144.212.1.15> (raw)

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


                 reply	other threads:[~1993-11-12 16:16 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