This patch changes find_pc_partial_function so that *block is set to
nullptr when it fails, so that fill_in_stop_func won't access an
uninitialized variable.
gdb/ChangeLog:
2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
* blockframe.c (find_pc_partial_function): Set *block to nullptr
when the function fails.
+2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * blockframe.c (find_pc_partial_function): Set *block to nullptr
+ when the function fails.
+
2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
* s390-tdep.c (s390_type_align): New function.
*address = 0;
if (endaddr != NULL)
*endaddr = 0;
+ if (block != nullptr)
+ *block = nullptr;
return 0;
}