From 086850b2378daf8475412e09112d8381da1e7bea Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 18 Sep 2013 17:47:56 +0000 Subject: [PATCH] 2013-09-18 Raunaq Bathija Ulrich Weigand * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type of c_value member. (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr. --- gdb/ChangeLog | 7 +++++++ gdb/xcoffread.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fbf3dc4aec6..8be06b1f119 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2013-09-18 Raunaq Bathija + Ulrich Weigand + + * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type + of c_value member. + (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr. + 2013-09-18 Pedro Alves Yue Lu diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 224cba94263..ee2a0fd1aa9 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -94,7 +94,7 @@ struct coff_symbol char *c_name; int c_symnum; /* Symbol number of this entry. */ int c_naux; /* 0 if syment only, 1 if syment + auxent. */ - long c_value; + CORE_ADDR c_value; unsigned char c_sclass; int c_secnum; unsigned int c_type; @@ -1033,7 +1033,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) unsigned int max_symnum; int just_started = 1; int depth = 0; - int fcn_start_addr = 0; + CORE_ADDR fcn_start_addr = 0; struct coff_symbol fcn_stab_saved = { 0 }; -- 2.30.2