artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b71341a
)
gdb: fix build with clang 15
author
jca
<jca@openbsd.org>
Tue, 27 Dec 2022 02:22:46 +0000
(
02:22
+0000)
committer
jca
<jca@openbsd.org>
Tue, 27 Dec 2022 02:22:46 +0000
(
02:22
+0000)
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
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/binutils/gdb/tui/tui-stack.c
b/gnu/usr.bin/binutils/gdb/tui/tui-stack.c
index
0ee5389
..
118d017
100644
(file)
--- 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));