Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Get GDB to stop at Unaligned access
@ 1993-11-12 16:16 Chuck Packard
  0 siblings, 0 replies; only message in thread
From: Chuck Packard @ 1993-11-12 16:16 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-11-12 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-12 16:16 Get GDB to stop at Unaligned access Chuck Packard

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