summaryrefslogtreecommitdiff
path: root/gdb/rs6000-aix-tdep.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2010-04-21 08:44:47 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2010-04-21 08:44:47 +0000
commit135d95fa2aeb55f8100bd7f98f086b06b1b85b12 (patch)
treec493a2e41fd1c573cc829f67fa4aec84b8d200b2 /gdb/rs6000-aix-tdep.c
parentca91f46b20ba544ccef7d50f8d3a63078e90e8b1 (diff)
downloadgdb-135d95fa2aeb55f8100bd7f98f086b06b1b85b12.tar.gz
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/rs6000-aix-tdep.c')
-rw-r--r--gdb/rs6000-aix-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index 927cfe2da20..b7ffc8e51d3 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;