Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: diewald@virrus.zko.dec.com (Jeff Diewald)
Subject: Re: decladebug / gdb trap on: Unaligned access errors??
Date: 1996/07/01	[thread overview]
Message-ID: <4r9b5i$j06@zk2nws.zko.dec.com> (raw)
In-Reply-To: 4qtopf$k8t@nntp.atlanta.com



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 [<signal>] 

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.



      parent reply	other threads:[~1996-07-01  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-27  4:00 decladebug / gdb trap on: Unaligned access errors?? Curt Smith
1996-06-27  4:00 ` James Bonfield
1996-07-01  4:00 ` Tim Lucia
1996-07-05  4:00   ` Curt Smith
1996-07-01  4:00 ` Jeff Diewald [this message]
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