summaryrefslogtreecommitdiff
path: root/gdb/ia64-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-12-28 23:48:51 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-12-28 23:48:51 +0000
commita8a0a918a7df9680662c9c5ed9fc0a7e9bd2e395 (patch)
tree5a6afadad8850c1f9e325b186f51e8f9abf7e4e5 /gdb/ia64-tdep.c
parent290e988652cd8089292a01806f2ab07e6b6304c4 (diff)
downloadgdb-a8a0a918a7df9680662c9c5ed9fc0a7e9bd2e395.tar.gz
* 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.c11
1 files changed, 6 insertions, 5 deletions
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;