aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-05-03 15:53:29 +0930
committerAlan Modra <amodra@gmail.com>2023-05-03 15:53:29 +0930
commita07223191bdda5e85a500e3b8206ee8fe8bcdfed (patch)
tree0184018534c7fc1c58bcb3ddb223916123f55c56
parent717d4bd6d199fcf834f741489aaf3bd800f9769f (diff)
downloadgdb-a07223191bdda5e85a500e3b8206ee8fe8bcdfed.zip
gdb-a07223191bdda5e85a500e3b8206ee8fe8bcdfed.tar.gz
gdb-a07223191bdda5e85a500e3b8206ee8fe8bcdfed.tar.bz2
Remove unused args from bfd_make_debug_symbol
The ptr and size args are unused. Make the function look the same as bfd_make_empty_symbol.
-rw-r--r--bfd/bfd-in2.h6
-rw-r--r--bfd/coffgen.c4
-rw-r--r--bfd/libbfd-in.h2
-rw-r--r--bfd/libbfd.h2
-rw-r--r--bfd/libcoff-in.h2
-rw-r--r--bfd/libcoff.h2
-rw-r--r--bfd/syms.c11
-rw-r--r--bfd/targets.c2
-rw-r--r--gas/config/obj-coff.c2
9 files changed, 14 insertions, 19 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index a5a9f1c..7be18db 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1280,8 +1280,8 @@ void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
asymbol *_bfd_generic_make_empty_symbol (bfd *);
-#define bfd_make_debug_symbol(abfd,ptr,size) \
- BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
+#define bfd_make_debug_symbol(abfd) \
+ BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd))
int bfd_decode_symclass (asymbol *symbol);
@@ -7655,7 +7655,7 @@ typedef struct bfd_target
while using BFD for everything else. Currently used by the assembler
when creating COFF files. */
asymbol *
- (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
+ (*_bfd_make_debug_symbol) (bfd *);
#define bfd_read_minisymbols(b, d, m, s) \
BFD_SEND (b, _read_minisymbols, (b, d, m, s))
long (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 05f2640..ac936de 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -1991,9 +1991,7 @@ coff_make_empty_symbol (bfd *abfd)
/* Make a debugging symbol. */
asymbol *
-coff_bfd_make_debug_symbol (bfd *abfd,
- void * ptr ATTRIBUTE_UNUSED,
- unsigned long sz ATTRIBUTE_UNUSED)
+coff_bfd_make_debug_symbol (bfd *abfd)
{
size_t amt = sizeof (coff_symbol_type);
coff_symbol_type *new_symbol = (coff_symbol_type *) bfd_alloc (abfd, amt);
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index b3f5190..07ef59a 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -450,7 +450,7 @@ extern bool _bfd_nosymbols_find_line
extern bool _bfd_nosymbols_find_inliner_info
(bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_bfd_make_debug_symbol
- (bfd *, void *, unsigned long) ATTRIBUTE_HIDDEN;
+ (bfd *) ATTRIBUTE_HIDDEN;
extern long _bfd_nosymbols_read_minisymbols
(bfd *, bool, void **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_minisymbol_to_symbol
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index f56f2b8..05508c9 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -456,7 +456,7 @@ extern bool _bfd_nosymbols_find_line
extern bool _bfd_nosymbols_find_inliner_info
(bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_bfd_make_debug_symbol
- (bfd *, void *, unsigned long) ATTRIBUTE_HIDDEN;
+ (bfd *) ATTRIBUTE_HIDDEN;
extern long _bfd_nosymbols_read_minisymbols
(bfd *, bool, void **, unsigned int *) ATTRIBUTE_HIDDEN;
extern asymbol *_bfd_nosymbols_minisymbol_to_symbol
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index a0d286d..d0839c7 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -360,7 +360,7 @@ extern void coff_get_symbol_info
extern bool _bfd_coff_is_local_label_name
(bfd *, const char *);
extern asymbol *coff_bfd_make_debug_symbol
- (bfd *, void *, unsigned long);
+ (bfd *);
extern bool coff_find_nearest_line
(bfd *, asymbol **, asection *, bfd_vma,
const char **, const char **, unsigned int *, unsigned int *);
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index 12bd758..235d5c3 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -364,7 +364,7 @@ extern void coff_get_symbol_info
extern bool _bfd_coff_is_local_label_name
(bfd *, const char *);
extern asymbol *coff_bfd_make_debug_symbol
- (bfd *, void *, unsigned long);
+ (bfd *);
extern bool coff_find_nearest_line
(bfd *, asymbol **, asection *, bfd_vma,
const char **, const char **, unsigned int *, unsigned int *);
diff --git a/bfd/syms.c b/bfd/syms.c
index 57ac52f..6979096 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -569,11 +569,10 @@ FUNCTION
DESCRIPTION
Create a new <<asymbol>> structure for the BFD @var{abfd},
- to be used as a debugging symbol. Further details of its use have
- yet to be worked out.
+ to be used as a debugging symbol.
-.#define bfd_make_debug_symbol(abfd,ptr,size) \
-. BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
+.#define bfd_make_debug_symbol(abfd) \
+. BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd))
.
*/
@@ -1577,9 +1576,7 @@ _bfd_nosymbols_find_inliner_info
}
asymbol *
-_bfd_nosymbols_bfd_make_debug_symbol (bfd *abfd,
- void *ptr ATTRIBUTE_UNUSED,
- unsigned long sz ATTRIBUTE_UNUSED)
+_bfd_nosymbols_bfd_make_debug_symbol (bfd *abfd)
{
return (asymbol *) _bfd_ptr_bfd_null_error (abfd);
}
diff --git a/bfd/targets.c b/bfd/targets.c
index 021c808..3dbcd08 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -420,7 +420,7 @@ BFD_JUMP_TABLE macros.
. while using BFD for everything else. Currently used by the assembler
. when creating COFF files. *}
. asymbol *
-. (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
+. (*_bfd_make_debug_symbol) (bfd *);
.#define bfd_read_minisymbols(b, d, m, s) \
. BFD_SEND (b, _read_minisymbols, (b, d, m, s))
. long (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 465a990..6216b1f 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -238,7 +238,7 @@ fetch_coff_debug_section (void)
{
const asymbol *s;
- s = bfd_make_debug_symbol (stdoutput, NULL, 0);
+ s = bfd_make_debug_symbol (stdoutput);
gas_assert (s != 0);
debug_section = s->section;
}