diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2022-12-27 02:22:47 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2022-12-27 02:22:47 +0000 |
commit | 59c8961227680d4a2874fdbdafa481afcd231639 (patch) | |
tree | f4b2091b98819bceb7c4dafbd41e39b70ca439b8 /gnu/usr.bin/binutils | |
parent | 710c1b06b26d2a115d89947cda2cb2e93e45d00f (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/usr.bin/binutils')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/tui/tui-stack.c | 2 |
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)); |