diff options
| author | Simon Marchi <simon.marchi@efficios.com> | 2025-08-27 10:07:50 -0400 |
|---|---|---|
| committer | Simon Marchi <simon.marchi@efficios.com> | 2025-08-28 10:13:42 -0400 |
| commit | 69b9f23264b1c9156f9499125df96c69e9927f14 (patch) | |
| tree | 0251d16ef069d0905004013dddfe2e76d2e7a36b | |
| parent | a1bc13149815f14c5e0fee8eb304dff5209b6de1 (diff) | |
| download | binutils-69b9f23264b1c9156f9499125df96c69e9927f14.zip binutils-69b9f23264b1c9156f9499125df96c69e9927f14.tar.gz binutils-69b9f23264b1c9156f9499125df96c69e9927f14.tar.bz2 | |
gdb/objfiles: add comment explaining when obj_section::the_bfd_section is nullptr
Change-Id: Iae17492f468efba7b76463a6ff8526171e412040
Reviewed-By: Tom de Vries <tdevries@suse.de>
| -rw-r--r-- | gdb/objfiles.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index bce8557..da9d2f3 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -395,7 +395,9 @@ struct obj_section return addr >= this->addr () && addr < endaddr (); } - /* BFD section pointer */ + /* BFD section pointer. This is nullptr if the corresponding BFD section is + not allocatable (!SEC_ALLOC), in which case this obj_section can be + considered NULL / empty. */ struct bfd_section *the_bfd_section; /* Objfile this section is part of. */ |
