diff options
author | Pierre Muller <muller@sourceware.org> | 2010-04-21 08:44:51 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-04-21 08:44:51 +0000 |
commit | 57174f3173f42762234548edd64f0a893edbcd9b (patch) | |
tree | 20333f3a6918860543cde5bd910a616b17f7ca47 /gdb | |
parent | efbae210a771854a7e5121ffa5a69cca6e23ee63 (diff) | |
download | gdb-57174f3173f42762234548edd64f0a893edbcd9b.zip gdb-57174f3173f42762234548edd64f0a893edbcd9b.tar.gz gdb-57174f3173f42762234548edd64f0a893edbcd9b.tar.bz2 |
Fix compilation warning on gcc-4.1.2.
* rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
local variable`pc' to zero.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/rs6000-aix-tdep.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a939f74..8f3db88 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> + + Fix compilation warning on gcc-4.1.2. + * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize + local variable`pc' to zero. + 2010-04-20 Joel Brobecker <brobecker@adacore.com> Implement thread support with core files on alpha-tru64. diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index 927cfe2..b7ffc8e 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -583,7 +583,7 @@ rs6000_convert_from_func_ptr_addr (struct gdbarch *gdbarch, the target address itself points to a section that is executable. */ if (s && (s->the_bfd_section->flags & SEC_CODE) == 0) { - CORE_ADDR pc; + CORE_ADDR pc = 0; struct obj_section *pc_section; struct gdb_exception e; |