From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bf8cfaf1576bcae X-Google-Attributes: gidfee84,public From: diewald@virrus.zko.dec.com (Jeff Diewald) Subject: Re: Debugging with gdb Date: 1996/04/09 Message-ID: <4kdskn$qnl@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 146904470 distribution: world references: <4jo6t6$6r9@mercury.hgmp.mrc.ac.uk> organization: Digital Equipment Corporation reply-to: diewald@virrus.zko.dec.com (Jeff Diewald) newsgroups: comp.unix.osf.osf1 In article <4jo6t6$6r9@mercury.hgmp.mrc.ac.uk>, Chris Mungall writes: |>How do I get gdb to trap unaligned accesses (ie the equivalent of |>0x
/i in dbx)? |> Chris, I don't know about gdb, but 0x
/i is generally used for displaying memory addresses and not for unaligned access trapping. The Ladebug debugger has a "catch unaligned" command that allows you to trap unaligned accesses. There's a corresponding "ignore unaligned" command to turn unaligned access trapping off. The default is to ignore unaligned accesses. This is covered in chapter 9 of the latest Ladebug documentation. ------------------------------------------------------------------------- Jeff Diewald EASYNET: VIRRUS::DIEWALD Ladebug group INTERNET: diewald@zko.dec.com Digital Equipment Corp. Note: I don't read every article in this group. If you have debugger questions, I may be able to get you an answer. You're much more likely to get an answer if you put "Ladebug" somewhere in your subject line.