aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-section.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target-section.h')
-rw-r--r--gdb/target-section.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/target-section.h b/gdb/target-section.h
index ec6932d..b19bcf9 100644
--- a/gdb/target-section.h
+++ b/gdb/target-section.h
@@ -26,6 +26,15 @@
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. */