* decladebug / gdb trap on: Unaligned access errors??
@ 1996-06-27 4:00 Curt Smith
1996-06-27 4:00 ` James Bonfield
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Curt Smith @ 1996-06-27 4:00 UTC (permalink / raw)
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??
We're running DEC Unix version 3.2d-2, what /bin/decladebug gives;
DECladebug Debugger Version 4.0-7.
Thanks.
Curt Smith
curts@compgen.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: decladebug / gdb trap on: Unaligned access errors??
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 ` Jeff Diewald
1996-07-01 4:00 ` Tim Lucia
2 siblings, 0 replies; 5+ messages in thread
From: James Bonfield @ 1996-06-27 4:00 UTC (permalink / raw)
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?
Try looking at "uac" (unaligned access control). Something like "uac p sigbus"
will force the OS to generate SIGBUS signals whenever an unaligned access
occurs. Both debuggers should then be able to trap it. See the uac manual page
for more information.
James
--
James Bonfield (jkb@mrc-lmb.cam.ac.uk) Tel: 01223 402499 Fax: 01223 412282
Medical Research Council - Laboratory of Molecular Biology,
Hills Road, Cambridge, CB2 2QH, England.
Also see Staden Package WWW site at http://www.mrc-lmb.cam.ac.uk/pubseq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: decladebug / gdb trap on: Unaligned access errors??
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 ` Jeff Diewald
1996-07-01 4:00 ` Tim Lucia
2 siblings, 0 replies; 5+ messages in thread
From: Jeff Diewald @ 1996-07-01 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: decladebug / gdb trap on: Unaligned access errors??
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 ` Jeff Diewald
@ 1996-07-01 4:00 ` Tim Lucia
1996-07-05 4:00 ` Curt Smith
2 siblings, 1 reply; 5+ messages in thread
From: Tim Lucia @ 1996-07-01 4:00 UTC (permalink / raw)
To: Curt Smith
An alternative to using the "catch unaligned" command is to note the PC at which
the fault occurs, and issue a "stopi at 0x12345678" command. Then, you can see
the routine and line number where the error occurs.
Regards,
Tim
--
Timothy J. Lucia Email: mailto:lucia@zko.dec.com
Digital Equipment Corporation Phone: 603.881.2615
110 Spitbrook Road ZK2-3Q08 Fax: 603.881.0120
Nashua, NH USA 03062-2698 I'd rather be cycling.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: decladebug / gdb trap on: Unaligned access errors??
1996-07-01 4:00 ` Tim Lucia
@ 1996-07-05 4:00 ` Curt Smith
0 siblings, 0 replies; 5+ messages in thread
From: Curt Smith @ 1996-07-05 4:00 UTC (permalink / raw)
Tim Lucia (lucia@zko.dec.com) wrote:
: An alternative to using the "catch unaligned" command is to note the PC at which
: the fault occurs, and issue a "stopi at 0x12345678" command. Then, you can see
: the routine and line number where the error occurs.
From a previous post, the following is what pleases us the most:
uac p sigbus
gdb program_exe
- run
- Gdb traps on SIGBUS
- Poof; the src line number of the offending statment
is displayed.
QED, and thanks.
Curt Smith
curts@compgen.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-07-05 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` Jeff Diewald
1996-07-01 4:00 ` Tim Lucia
1996-07-05 4:00 ` Curt Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox