[binutils-gdb] Re: Renaming .debug to .zdebug and vice versa
Alan Modra
amodra@sourceware.org
Mon Dec 5 04:47:20 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=47afa56ee2bba22111df848ebeeec8c0a616ae73
commit 47afa56ee2bba22111df848ebeeec8c0a616ae73
Author: Alan Modra <amodra@gmail.com>
Date: Mon Dec 5 15:13:23 2022 +1030
Re: Renaming .debug to .zdebug and vice versa
* compress.c (bfd_debug_name_to_zdebug): Fix C++ compile error.
(bfd_zdebug_name_to_debug): Likewise.
* bfd-in2.h: Regenerate.
Diff:
---
bfd/bfd-in2.h | 4 ++--
bfd/compress.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 48451175364..15f3c8c8f12 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -7967,7 +7967,7 @@ static inline char *
bfd_debug_name_to_zdebug (bfd *abfd, const char *name)
{
size_t len = strlen (name);
- char *new_name = bfd_alloc (abfd, len + 2);
+ char *new_name = (char *) bfd_alloc (abfd, len + 2);
if (new_name == NULL)
return NULL;
new_name[0] = '.';
@@ -7980,7 +7980,7 @@ static inline char *
bfd_zdebug_name_to_debug (bfd *abfd, const char *name)
{
size_t len = strlen (name);
- char *new_name = bfd_alloc (abfd, len);
+ char *new_name = (char *) bfd_alloc (abfd, len);
if (new_name == NULL)
return NULL;
new_name[0] = '.';
diff --git a/bfd/compress.c b/bfd/compress.c
index 95579847cf3..3d8c1d769f1 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -36,7 +36,7 @@ CODE_FRAGMENT
.bfd_debug_name_to_zdebug (bfd *abfd, const char *name)
.{
. size_t len = strlen (name);
-. char *new_name = bfd_alloc (abfd, len + 2);
+. char *new_name = (char *) bfd_alloc (abfd, len + 2);
. if (new_name == NULL)
. return NULL;
. new_name[0] = '.';
@@ -49,7 +49,7 @@ CODE_FRAGMENT
.bfd_zdebug_name_to_debug (bfd *abfd, const char *name)
.{
. size_t len = strlen (name);
-. char *new_name = bfd_alloc (abfd, len);
+. char *new_name = (char *) bfd_alloc (abfd, len);
. if (new_name == NULL)
. return NULL;
. new_name[0] = '.';
More information about the Binutils-cvs
mailing list