gdb: fix build with clang 15
authorjca <jca@openbsd.org>
Tue, 27 Dec 2022 02:22:46 +0000 (02:22 +0000)
committerjca <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

index 0ee5389..118d017 100644 (file)
@@ -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));