From a19b5bdcda58bae659949efbaf01a531962d4e92 Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 27 Dec 2022 02:22:46 +0000 Subject: [PATCH] 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@ --- gnu/usr.bin/binutils/gdb/tui/tui-stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.20.1