With CFLAGS='-Og -g', F21 gcc hits -Werror=maybe-uninitialized on jmp in
the call "prepare_thread (pid2, jmp)". It's fine with -O2/-O0.
The only way this could be unset is if the loop before ran to
completion, and there's already an assert against this case.
This patch initializes jmp anyway to convince gcc it's ok.
Signed-off-by: Josh Stone <jistone@redhat.com>
+2015-02-11 Josh Stone <jistone@redhat.com>
+
+ * backtrace.c (exec_dump): Initialize jmp.
+
2015-02-11 Petr Machata <pmachata@redhat.com>
* run-dwarf-ranges.sh: New test.
#else /* __x86_64__ */
is_x86_64_native = ehdr->e_ident[EI_CLASS] == ELFCLASS64;
#endif /* __x86_64__ */
- void (*jmp) (void);
+ void (*jmp) (void) = 0;
if (is_x86_64_native)
{
// Find inferior symbol named "jmp".