aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-06-11 20:37:05 +0000
committerJim Blandy <jimb@codesourcery.com>2002-06-11 20:37:05 +0000
commit919d772c556e521f21902cfdf3ac67e3468fce12 (patch)
tree4265c076a6980721d71d6c5f92f2ac4476629c37 /gdb/doc
parent6827a8f8fe10eb8f47681e3d8566a50e310faf29 (diff)
downloadgdb-919d772c556e521f21902cfdf3ac67e3468fce12.zip
gdb-919d772c556e521f21902cfdf3ac67e3468fce12.tar.gz
gdb-919d772c556e521f21902cfdf3ac67e3468fce12.tar.bz2
* gdb/source.c (source_info): Mention whether the symtab has
information about preprocessor macros. * gdb/testsuite/lib/gdb.exp (get_debug_format): Tolerate message saying whether preprocessor macro information is present. * gdb/doc/gdb.texinfo (Symbols): Update documentation for `info source' command.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog3
-rw-r--r--gdb/doc/gdb.texinfo22
2 files changed, 22 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 363a3fc..4d1fbb5 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,8 @@
2002-06-11 Jim Blandy <jimb@redhat.com>
+ * gdb.texinfo (Symbols): Update documentation for `info source'
+ command.
+
* gdb.texinfo (Macros): Call the command `info macro', not
`show macro'.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index bff763b..aa39d76 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -9020,9 +9020,25 @@ collect}.
@kindex info source
@item info source
-Show the name of the current source file---that is, the source file for
-the function containing the current point of execution---and the language
-it was written in.
+Show information about the current source file---that is, the source file for
+the function containing the current point of execution:
+@itemize @bullet
+@item
+the name of the source file, and the directory containing it,
+@item
+the directory it was compiled in,
+@item
+its length, in lines,
+@item
+which programming language it is written in,
+@item
+whether the executable includes debugging information for that file, and
+if so, what format the information is in (e.g., STABS, Dwarf 2, etc.), and
+@item
+whether the debugging information includes information about
+preprocessor macros.
+@end itemize
+
@kindex info sources
@item info sources