diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-06-18 11:39:36 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-06-18 11:39:36 +0000 |
commit | 397ca115344837d62d02f33e0bd6ac94a921336a (patch) | |
tree | 56fc6784ca296965297c5d7c037ca70334d04390 /gdb/doc/gdb.texinfo | |
parent | 86f91582c30415e314fcdd87c9fc92df839d6f37 (diff) | |
download | gdb-397ca115344837d62d02f33e0bd6ac94a921336a.zip gdb-397ca115344837d62d02f33e0bd6ac94a921336a.tar.gz gdb-397ca115344837d62d02f33e0bd6ac94a921336a.tar.bz2 |
(Server): Clarify that `file' should be used before connecting to the server.
(Files): Add an xref to the above description.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 2446da5..88b9a26 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -10618,9 +10618,10 @@ way to do this is at start-up time, using the arguments to Out of @value{GDBN}}). Occasionally it is necessary to change to a different file during a -@value{GDBN} session. Or you may run @value{GDBN} and forget to specify -a file you want to use. In these situations the @value{GDBN} commands -to specify new files are useful. +@value{GDBN} session. Or you may run @value{GDBN} and forget to +specify a file you want to use. Or you are debugging a remote target +via @code{gdbserver} (@pxref{Server, file}). In these situations the +@value{GDBN} commands to specify new files are useful. @table @code @cindex executable file @@ -11941,8 +11942,12 @@ For TCP connections, you must start up @code{gdbserver} prior to using the @code{target remote} command. Otherwise you may get an error whose text depends on the host system, but which usually looks something like @samp{Connection refused}. You don't need to use the @code{load} -command in @value{GDBN} when using gdbserver, since the program is -already on the target. +command in @value{GDBN} when using @code{gdbserver}, since the program is +already on the target. However, if you want to load the symbols (as +you normally would), do that with the @code{file} command, and issue +it @emph{before} connecting to the server; otherwise, you will get an +error message saying @code{"Program is already running"}, since the +program is considered running after the connection. @end table |