summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-12-27 02:22:47 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-12-27 02:22:47 +0000
commit59c8961227680d4a2874fdbdafa481afcd231639 (patch)
treef4b2091b98819bceb7c4dafbd41e39b70ca439b8 /gnu
parent710c1b06b26d2a115d89947cda2cb2e93e45d00f (diff)
gdb: fix build with clang 15
The code wants a pointer to a "CORE_ADDR", thus the "(CORE_ADDR)" cast is erroneous. Just pass NULL. ok jsg@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/gdb/tui/tui-stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/tui/tui-stack.c b/gnu/usr.bin/binutils/gdb/tui/tui-stack.c
index 0ee538988f4..118d017f40e 100644
--- a/gnu/usr.bin/binutils/gdb/tui/tui-stack.c
+++ b/gnu/usr.bin/binutils/gdb/tui/tui-stack.c
@@ -356,7 +356,7 @@ tui_show_frame_info (struct frame_info *fi)
else
{
if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
- &low, (CORE_ADDR) NULL) == 0)
+ &low, NULL) == 0)
error ("No function contains program counter for selected frame.\n");
else
low = tui_get_low_disassembly_address (low, get_frame_pc (fi));