From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,503358cd24d0fd9a X-Google-Attributes: gidfee84,public From: diewald@virrus.zko.dec.com (Jeff Diewald) Subject: Re: decladebug / gdb trap on: Unaligned access errors?? Date: 1996/07/01 Message-ID: <4r9b5i$j06@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 163154573 distribution: world references: <4qtopf$k8t@nntp.atlanta.com> organization: Digital Equipment Corporation reply-to: diewald@virrus.zko.dec.com (Jeff Diewald) newsgroups: comp.unix.osf.osf1 In article <4qtopf$k8t@nntp.atlanta.com>, curts@compgen.com (Curt Smith) writes: |>Hi, |> |>Anyone offer advice on how to easily zoom in on what line of source is |>causing the Unaligned access processor traps? |> |>I once read in a release note that decladebug of some version can trap |>on this event. The man page for decladebug gives no hint. |> |>Any help for either decladebug or gdb version 4.16?? |> Unfortunately, you're running ladebug 4.0-7. If you can upgrade to ladebug 4.0-14 or greater, you can use the "catch unaligned" command: virrus[jeff 4]> ladebug Welcome to the Ladebug Debugger Version 4.0-19 Directory search path for source files: . /usr/users/diewald/ladebug/ladebug (ladebug) help catch catch [] Enter the 'catch' command or the 'ignore' command without an argument to see which operating system signals the debugger currently traps or ignores. Use the 'catch' or the 'ignore' command followed by an argument to trap or ignore, respectively, that signal. Only one signal at a time can be added to, or removed from, the list of trapped or ignored signals. The 'catch' and 'ignore' commands operate on a per program basis; you must first load a program (using the 'load' command) or attach to a process (using the 'attach' command). Enter the 'catch unaligned' command to instruct the debugger to stop when unaligned data access occurs in the debuggee process. The debugger stops at the instruction following the instruction where the unaligned access occurs, and issues a message. The default is 'ignore unaligned'. (ladebug) Section 9.11 of the March 1996 Ladebug documentation provides more details about debugging unaligned data accesses. In particular, there are interactions if you use the uac command, or call setsysinfo. ------------------------------------------------------------------------- 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.