diff options
author | Kung Hsu <kung@cygnus> | 1994-07-14 20:20:49 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1994-07-14 20:20:49 +0000 |
commit | 8dbe58d843db2c5eadcc93f76a9df730747eea36 (patch) | |
tree | 07b715f7af208f1284e6cb29baf173e9ef08d65a /gdb/stabsread.c | |
parent | cdf7137776a86fca4f62f9add8316032c580db14 (diff) | |
download | gdb-8dbe58d843db2c5eadcc93f76a9df730747eea36.zip gdb-8dbe58d843db2c5eadcc93f76a9df730747eea36.tar.gz gdb-8dbe58d843db2c5eadcc93f76a9df730747eea36.tar.bz2 |
Modified Files:
stabsread.c ChangeLog
* stabsread.c (read_huge_number): handle large unsigned number
for stabs generated by os9k C compiler.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index cc0a7fe..1445540 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) |