diff options
author | Pierre Muller <muller@sourceware.org> | 2010-09-10 16:12:22 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-09-10 16:12:22 +0000 |
commit | 5e8db3985c2f510fead393fe1feefcc93e2031de (patch) | |
tree | 1e30e8f7c36081536275218ec23da0d5034d5207 /gdb | |
parent | 37049e3199b0ca9c580128979244f8306a284cad (diff) | |
download | gdb-5e8db3985c2f510fead393fe1feefcc93e2031de.zip gdb-5e8db3985c2f510fead393fe1feefcc93e2031de.tar.gz gdb-5e8db3985c2f510fead393fe1feefcc93e2031de.tar.bz2 |
* coffread.c (struct coff_symbol): Change c_value type from `long' to
`CORE_ADDRESS' as it might contain target addresses.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/coffread.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9a03b8d..dfa62b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> + * coffread.c (struct coff_symbol): Change c_value type from `long' to + `CORE_ADDRESS' as it might contain target addresses. + +2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> + * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro before cast to pointer to avoid warning. diff --git a/gdb/coffread.c b/gdb/coffread.c index 85e8140..7f1ecd0 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -131,7 +131,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, etc */ - long c_value; + CORE_ADDR c_value; int c_sclass; int c_secnum; unsigned int c_type; |