From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23899 invoked from network); 7 Apr 1998 10:01:31 -0000 Received: from finwds01.tu-graz.ac.at (129.27.138.60) by mail2.redhat.com with SMTP; 7 Apr 1998 10:01:31 -0000 Received: from finwal01.tu-graz.ac.at (tom@finwal01.tu-graz.ac.at [129.27.138.63]) by finwds01.tu-graz.ac.at (8.8.8/8.8.8) with SMTP id MAA19612; Tue, 7 Apr 1998 12:00:40 +0200 Received: from localhost by finwal01.tu-graz.ac.at (5.65v4.0/1.1.10.5/03Feb97-0824AM) id AA04772; Tue, 7 Apr 1998 12:00:39 +0200 Date: Tue, 7 Apr 1998 12:00:39 +0200 (MET DST) From: Thomas Leitner X-Sender: tom@finwal01.tu-graz.ac.at To: Richard Henderson Cc: Gene McCulley , axp-list@redhat.com Subject: Re: tracking down unaligned accesses In-Reply-To: <19980407025505.15382@dot.cygnus.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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!