(Backtrace): Document that free-standing environments do not need
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Jun 2005 13:12:04 +0000 (13:12 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Jun 2005 13:12:04 +0000 (13:12 +0000)
to have a `main' function.

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index f30d5cd..93393b6 100644 (file)
@@ -11,6 +11,8 @@
        --with-sysroot.
        (Machine Code): Document possible problems with locations in
        shared libraries.
+       (Backtrace): Document that free-standing environments do not need
+       to have a `main' function.
 
 2005-06-18  Nick Roberts  <nickrob@snap.net.nz>
 
index b9c6599..0dd2f55 100644 (file)
@@ -4300,7 +4300,11 @@ you are interested in, or recompile without optimizations.
 @cindex startup code, and backtrace
 Most programs have a standard user entry point---a place where system
 libraries and startup code transition into user code.  For C this is
-@code{main}.  When @value{GDBN} finds the entry function in a backtrace
+@code{main}@footnote{
+Note that embedded programs (the so-called ``free-standing''
+environment) are not required to have a @code{main} function as the
+entry point.  They could even have multiple entry points.}.
+When @value{GDBN} finds the entry function in a backtrace
 it will terminate the backtrace, to avoid tracing into highly
 system-specific (and generally uninteresting) code.