gdb: integer division fix (actually, libc fix)

David Mosberger-Tang (davidm@azstarnet.com)
Sat, 8 Jun 1996 20:03:24 -0700


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)