From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bb3af7a4d5ab3d40 X-Google-Attributes: gidfee84,public From: Anthony Berent Subject: Re: unaligned access Date: 1996/11/21 Message-ID: <329437E2.41C6@reo.mts.dec.com>#1/1 X-Deja-AN: 198303051 references: <01bbd33f$b2223fd0$63531dc7@gautam> content-type: text/plain; charset=us-ascii organization: Digital Equipment Co. Ltd. - European Semiconductor Applications Engineering mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0Gold (X11; I; OSF1 V4.0 alpha) gautam wrote: > ... > So basically how do we figure out where the unaligned accesses > are occuring. > ... > > Gautam One way to find unaligned accesses is to run the program under ladebug (Digital's newer debugger). Compile the code with -g and then run it as follows: $ ladebug foo (ladebug)catch unaligned (ladebug)run When the program hits an unaligned access it will stop; and you can then get a stack trace (assuming the stack isn't corrupt) using the "where" command. You can then use dbx like commands to examine code etc. -- - Anthony (My views are my own; I do not speak for Digital and nothing I write should be read as Digital's position)