From: jca Date: Tue, 27 Dec 2022 02:22:46 +0000 (+0000) Subject: gdb: fix build with clang 15 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a19b5bdcda58bae659949efbaf01a531962d4e92;p=openbsd 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@ --- 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));