diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-05 15:13:23 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-05 15:15:15 +1030 |
commit | 47afa56ee2bba22111df848ebeeec8c0a616ae73 (patch) | |
tree | 9f2e818f4da3fc2c75f0bfd540ab9172b08494c1 /bfd | |
parent | 125b7ff73a691353de114149a3a3951828cfb2be (diff) | |
download | gdb-47afa56ee2bba22111df848ebeeec8c0a616ae73.zip gdb-47afa56ee2bba22111df848ebeeec8c0a616ae73.tar.gz gdb-47afa56ee2bba22111df848ebeeec8c0a616ae73.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/bfd-in2.h | 4 | ||||
-rw-r--r-- | bfd/compress.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 4845117..15f3c8c 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 9557984..3d8c1d7 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] = '.'; |