aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-18 09:51:10 -0600
committerTom Tromey <tromey@adacore.com>2022-06-02 09:04:45 -0600
commitddfc4ef12441bef95ea0bf0a2fb68fe58e24440a (patch)
treea95309e9b5c87b7870857c436ea2b4a5bd0392ae /gdb/coffread.c
parent0fecb1a78491d3d090c05b868a970a571688f66e (diff)
downloadgdb-ddfc4ef12441bef95ea0bf0a2fb68fe58e24440a.zip
gdb-ddfc4ef12441bef95ea0bf0a2fb68fe58e24440a.tar.gz
gdb-ddfc4ef12441bef95ea0bf0a2fb68fe58e24440a.tar.bz2
ODR warning for "struct find_targ_sec_arg"
"struct find_targ_sec_arg" is defined in multiple .c files, causing ODR warnings. This patch renames the types. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22395
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 75cf646..474a1aa 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -254,7 +254,7 @@ coff_locate_sections (bfd *abfd, asection *sectp, void *csip)
/* Return the section_offsets* that CS points to. */
static int cs_to_section (struct coff_symbol *, struct objfile *);
-struct find_targ_sec_arg
+struct coff_find_targ_sec_arg
{
int targ_index;
asection **resultp;
@@ -263,7 +263,7 @@ struct find_targ_sec_arg
static void
find_targ_sec (bfd *abfd, asection *sect, void *obj)
{
- struct find_targ_sec_arg *args = (struct find_targ_sec_arg *) obj;
+ struct coff_find_targ_sec_arg *args = (struct coff_find_targ_sec_arg *) obj;
if (sect->target_index == args->targ_index)
*args->resultp = sect;
@@ -274,7 +274,7 @@ static struct bfd_section*
cs_to_bfd_section (struct coff_symbol *cs, struct objfile *objfile)
{
asection *sect = NULL;
- struct find_targ_sec_arg args;
+ struct coff_find_targ_sec_arg args;
args.targ_index = cs->c_secnum;
args.resultp = &sect;
@@ -301,7 +301,7 @@ static CORE_ADDR
cs_section_address (struct coff_symbol *cs, bfd *abfd)
{
asection *sect = NULL;
- struct find_targ_sec_arg args;
+ struct coff_find_targ_sec_arg args;
CORE_ADDR addr = 0;
args.targ_index = cs->c_secnum;