Renaming .debug to .zdebug and vice versa

Alan Modra amodra@gmail.com
Mon Dec 5 04:47:52 GMT 2022
On Sun, Dec 04, 2022 at 08:56:20PM -0500, Simon Marchi wrote:
>   CXX    gdb.o
> In file included from /home/simark/src/binutils-gdb/gdb/defs.h:37,
>                  from /home/simark/src/binutils-gdb/gdb/gdb.c:19:
> ../bfd/bfd.h: In function ‘char* bfd_debug_name_to_zdebug(bfd*, const char*)’:
> ../bfd/bfd.h:7970:30: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
>  7970 |   char *new_name = bfd_alloc (abfd, len + 2);
>       |                    ~~~~~~~~~~^~~~~~~~~~~~~~~
>       |                              |
>       |                              void*

Oops, I've committed the obvious fix.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list