From: Thomas Leitner <tom@finwds01.tu-graz.ac.at>
To: Richard Henderson <rth@cygnus.com>
Cc: Gene McCulley <mcculley@cuspy.com>, axp-list@redhat.com
Subject: Re: tracking down unaligned accesses
Date: Tue, 7 Apr 1998 12:00:39 +0200 (MET DST) [thread overview]
Message-ID: <Pine.OSF.3.96.980407115640.2749D-100000@finwal01.tu-graz.ac.at> (raw)
In-Reply-To: <19980407025505.15382@dot.cygnus.com>
On Tue, 7 Apr 1998, Richard Henderson wrote:
> On Tue, Apr 07, 1998 at 09:30:13AM +0200, Thomas Leitner wrote:
> > You don't need that. The unaligned access message tells you all you need.
> > Just start your program in gdb and set a breakpoint at the address...
>
> Maybe, maybe not. Just setting a breakpoint at the address is
> slow and irritating if the point is crossed a couple million
> times before the errant data is presented.
Yes but in my experience most unaligned accesses occur when the point
in the code is executed the first time.
> Having a signal generated is much friendlier under the debugger.
I wouldn't exactly call it "friendlier" to have to modify my code in
order to debug it.
In any case: Your method can be used *if* the point is executed
many times before the unaligned access happens. But I'd try to set a
breakpoint and look before modifying my code to trigger the signal.
Tom
--------------------------------------------------------------------------
T o m L e i t n e r Dept. of Communications
Graz University of Technology,
e-mail : tom@finwds01.tu-graz.ac.at Inffeldgasse 12
Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe
Fax : +43-316-463-697
Home page : http://wiis.tu-graz.ac.at/people/tom.html
PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send
mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net
--------------------------------------------------------------------------
Before we have the paperless office, we have the paperless toilet!
next prev parent reply other threads:[~1998-04-07 10:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <13609.39173.90817.201628@coral.cuspy.com>
1998-04-07 3:38 ` tracking down unaligned accesses Richard Henderson
1998-04-07 7:30 ` Thomas Leitner
1998-04-07 9:55 ` Richard Henderson
1998-04-07 10:00 ` Thomas Leitner [this message]
1998-04-07 12:24 ` Stefan Traby
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