From: Daniel Jacobowitz Date: Thu, 28 Dec 2006 23:48:51 +0000 (+0000) Subject: * ia64-tdep.c (get_kernel_table): Correct signedness in check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eeec829cf9c23d8c5b4fac29438faf337b2ecb30;p=binutils-gdb.git * ia64-tdep.c (get_kernel_table): Correct signedness in check for a negative return value. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0f85da195e6..04e96a6bab0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-12-28 Daniel Jacobowitz + + * ia64-tdep.c (get_kernel_table): Correct signedness in check + for a negative return value. + 2006-12-27 Gary Funck * dwarf2read.c (dwarf_attr_name, dwarf_cfi_name) @@ -7,7 +12,7 @@ * MAINTAINERS (Write After Approval): Add myself. -2006-12-26 Joel brobecker +2006-12-26 Joel Brobecker * sparc64-tdep.c (sparc64_extract_return_value): Add handling for array types. diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index a65c56f9589..f815f6c92a4 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;