From 8dbe58d843db2c5eadcc93f76a9df730747eea36 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Thu, 14 Jul 1994 20:20:49 +0000 Subject: [PATCH] Modified Files: stabsread.c ChangeLog * stabsread.c (read_huge_number): handle large unsigned number for stabs generated by os9k C compiler. --- gdb/ChangeLog | 5 +++++ gdb/stabsread.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7732611a38a..c3081fb0104 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 14 13:17:39 1994 Kung Hsu (kung@x1.cygnus.com) + + * stabsread.c (read_huge_number): handle large unsigned number + for stabs generated by os9k C compiler. + Wed Jul 13 18:58:15 1994 Stan Shebs (shebs@andros.cygnus.com) Breakpoint hit counts, from Bob Rusk (rrusk@mail.csd.harris.com). diff --git a/gdb/stabsread.c b/gdb/stabsread.c index cc0a7fea41c..144554063a7 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3265,7 +3265,11 @@ read_huge_number (pp, end, bits) p++; } - upper_limit = LONG_MAX / radix; + if (os9k_stabs) + upper_limit = ULONG_MAX / radix; + else + upper_limit = LONG_MAX / radix; + while ((c = *p++) >= '0' && c < ('0' + radix)) { if (n <= upper_limit) -- 2.30.2