diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-12-28 23:48:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-12-28 23:48:51 +0000 |
commit | eeec829cf9c23d8c5b4fac29438faf337b2ecb30 (patch) | |
tree | ac4fde65d96d9acbac4c5c611019f9dec6941948 /gdb/ia64-tdep.c | |
parent | f670d0980488689246b755839e21f74352f57930 (diff) | |
download | gdb-eeec829cf9c23d8c5b4fac29438faf337b2ecb30.zip gdb-eeec829cf9c23d8c5b4fac29438faf337b2ecb30.tar.gz gdb-eeec829cf9c23d8c5b4fac29438faf337b2ecb30.tar.bz2 |
* ia64-tdep.c (get_kernel_table): Correct signedness in check
for a negative return value.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index a65c56f..f815f6c 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -2486,13 +2486,14 @@ get_kernel_table (unw_word_t ip, unw_dyn_info_t *di) if (!ktab) { gdb_byte *ktab_buf; - size_t size; + LONGEST size; - ktab_size = getunwind_table (&ktab_buf); - if (ktab_size <= 0) + size = getunwind_table (&ktab_buf); + if (size <= 0) return -UNW_ENOINFO; - else - ktab = (struct ia64_table_entry *) ktab_buf; + + ktab = (struct ia64_table_entry *) ktab_buf; + ktab_size = size; for (etab = ktab; etab->start_offset; ++etab) etab->info_offset += KERNEL_START; |