This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Pass a NULL pointer as the last argument to find_pc_partial_function.
- From: John Baldwin <jhb at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 14 Jun 2016 18:54:36 -0000
- Subject: [binutils-gdb] Pass a NULL pointer as the last argument to find_pc_partial_function.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=683cd65eb4787e3e2921076699e0ca9b00762df3
commit 683cd65eb4787e3e2921076699e0ca9b00762df3
Author: John Baldwin <jhb@FreeBSD.org>
Date: Sat Jun 11 08:15:09 2016 -0700
Pass a NULL pointer as the last argument to find_pc_partial_function.
gdb/ChangeLog:
* tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/tui/tui-stack.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c0d4a3f..f2db9e9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2016-06-14 John Baldwin <jhb@FreeBSD.org>
+ * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
+
+2016-06-14 John Baldwin <jhb@FreeBSD.org>
+
* rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
2016-06-13 Nick Clifton <nickc@redhat.com>
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index da6c7b1..b6cf144 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -416,7 +416,7 @@ tui_show_frame_info (struct frame_info *fi)
{
if (find_pc_partial_function (get_frame_pc (fi),
(const char **) NULL,
- &low, (CORE_ADDR) 0) == 0)
+ &low, NULL) == 0)
{
/* There is no symbol available for current PC. There is no
safe way how to "disassemble backwards". */