aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-12-27 19:37:12 +0000
committerMichael Snyder <msnyder@vmware.com>2001-12-27 19:37:12 +0000
commitfe95c7871a83a7a161e18eda83ef860b693ac817 (patch)
treed179ccac45e65ba2be3fc6e85a290d4b0fb9dfcf /gdb/doc
parentb01d807cd94c1c2dec6038501adec4f39c9c0244 (diff)
downloadfsf-binutils-gdb-fe95c7871a83a7a161e18eda83ef860b693ac817.zip
fsf-binutils-gdb-fe95c7871a83a7a161e18eda83ef860b693ac817.tar.gz
fsf-binutils-gdb-fe95c7871a83a7a161e18eda83ef860b693ac817.tar.bz2
2001-12-26 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (maint info sections): Document.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog2
-rw-r--r--gdb/doc/gdb.texinfo47
2 files changed, 49 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 6c40ea4..c3bd47b 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,7 @@
2001-12-26 Michael Snyder <msnyder@redhat.com>
+ * gdb.texinfo (maint info sections): Document.
+
* gdb.texinfo (info proc): Comment out documentation for
'info proc' sub-options that are currently not implemented.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index d9a9b8b..6c90cc4 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -9347,6 +9347,53 @@ use by @value{GDBN}, and the files from which symbols were loaded. The
command @code{help target} lists all possible targets rather than
current ones.
+@kindex maint info sections
+@item maint info sections
+Another command that can give you extra information about program sections
+is @code{maint info sections}. In addition to the section information
+displayed by @code{info files}, this command displays the flags and file
+offset of each section in the executable and core dump files. In addition,
+@code{maint info sections} provides the following command options (which
+may be arbitrarily combined):
+
+@table @code
+@item ALLOBJ
+Display sections for all loaded object files, including shared libraries.
+@item @var{sections}
+Display info only for named var{sections}.
+@item @var{section-flags}
+Display info only for sections for which @var{section-flags} are true.
+The section flags that @value{GDBN} currently knows about are:
+@table @code
+@item ALLOC
+Section will have space allocated in the process when loaded.
+Set for all sections except those containing debug information.
+@item LOAD
+Section will be loaded from the file into the child process memory.
+Set for pre-initialized code and data, clear for @code{.bss} sections.
+@item RELOC
+Section needs to be relocated before loading.
+@item READONLY
+Section cannot be modified by the child process.
+@item CODE
+Section contains executable code only.
+@tem DATA
+Section contains data only (no executable code).
+@item ROM
+Section will reside in ROM.
+@item CONSTRUCTOR
+Section contains data for constructor/destructor lists.
+@item HAS_CONTENTS
+Section is not empty.
+@item NEVER_LOAD
+An instruction to the linker to not output the section.
+@item COFF_SHARED_LIBRARY
+A notification to the linker that the section contains
+COFF shared library information.
+@item IS_COMMON
+Section contains common symbols.
+@end table
+@end table
@end table
All file-specifying commands allow both absolute and relative file names