ODR warnings for "struct coff_symbol"
[binutils-gdb.git] / gdb / target-section.h
index ec6932da0a6b02b185abec1035b1fe717ffdc1d4..9ae982fbd1a0c16beb9817ccd13f69beb1e19ad9 100644 (file)
@@ -1,6 +1,6 @@
 /* Target sections.
 
-   Copyright (C) 2020 Free Software Foundation, Inc.
+   Copyright (C) 2020-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
 struct target_section
 {
+  target_section (CORE_ADDR addr_, CORE_ADDR end_, struct bfd_section *sect_,
+                 void *owner_ = nullptr)
+    : addr (addr_),
+      endaddr (end_),
+      the_bfd_section (sect_),
+      owner (owner_)
+  {
+  }
+
   /* Lowest address in section.  */
   CORE_ADDR addr;
   /* Highest address in section, plus 1.  */