Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: gdb: integer division fix (actually, libc fix)
Date: Sat, 8 Jun 1996 20:03:24 -0700	[thread overview]
Message-ID: <199606090303.UAA24325@koala.azstarnet.com> (raw)

If you're tired of gdb loosing control when trying to "next" over a
line that contains a (non-constant) integer division/remainder
operation, apply the following fix to libc and rebuild all the div*
and rem* functions.  It will cure the problem.

	--david

--- libc-linux/sysdeps/alpha/divrem.S	Sat Jun  8 19:57:19 1996
+++ libc-linux/sysdeps/alpha/divrem.S~	Sat Sep 16 10:17:51 1995
@@ -84,7 +84,7 @@
 	.align 5
 FUNC_NAME:
 #	define FRAME_SIZE	0x30
-	.frame	sp,FRAME_SIZE,retaddr,0
+	.frame	sp,FRAME_SIZE,ra,0
 	lda	sp,-FRAME_SIZE(sp)
 	.prologue 1
 	stq	arg1,0x00(sp)

                 reply	other threads:[~1996-06-09  3:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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