aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2007-07-12 21:13:06 +0000
committerMichael Albinus2007-07-12 21:13:06 +0000
commit9c0a6042d2d9ad43dc2bc1f66f969ca35963003d (patch)
treedc09a33f73f2ebc80d5fad8e4cf4ea6fd3d235a0
parent60f0fb11dda9422e50dd58fb1e4dff76a960a107 (diff)
downloademacs-9c0a6042d2d9ad43dc2bc1f66f969ca35963003d.tar.gz
emacs-9c0a6042d2d9ad43dc2bc1f66f969ca35963003d.zip
* tramp.texi (Remote processes): Don't call it "experimental" any
longer. Add subsection about running a debugger on a remote host.
-rw-r--r--man/ChangeLog5
-rw-r--r--man/tramp.texi58
2 files changed, 49 insertions, 14 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index 65173aa2f5d..2509f926f58 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,8 @@
12007-07-12 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Remote processes): Don't call it "experimental" any
4 longer. Add subsection about running a debugger on a remote host.
5
12007-07-10 Carsten Dominik <dominik@science.uva.nl> 62007-07-10 Carsten Dominik <dominik@science.uva.nl>
2 7
3 * org.texi (Properties and columns): Chapter rewritten. 8 * org.texi (Properties and columns): Chapter rewritten.
diff --git a/man/tramp.texi b/man/tramp.texi
index fbcce166636..de72b6abaf3 100644
--- a/man/tramp.texi
+++ b/man/tramp.texi
@@ -212,7 +212,7 @@ Using @value{tramp}
212* Filename Syntax:: @value{tramp} filename conventions. 212* Filename Syntax:: @value{tramp} filename conventions.
213* Alternative Syntax:: URL-like filename syntax. 213* Alternative Syntax:: URL-like filename syntax.
214* Filename completion:: Filename completion. 214* Filename completion:: Filename completion.
215* Remote processes:: Integration with other @value{emacsname} packages (@sc{experimental}). 215* Remote processes:: Integration with other @value{emacsname} packages.
216 216
217The inner workings of remote version control 217The inner workings of remote version control
218 218
@@ -2019,7 +2019,7 @@ minute you have already forgotten that you hit that key!
2019* Filename Syntax:: @value{tramp} filename conventions. 2019* Filename Syntax:: @value{tramp} filename conventions.
2020* Alternative Syntax:: URL-like filename syntax. 2020* Alternative Syntax:: URL-like filename syntax.
2021* Filename completion:: Filename completion. 2021* Filename completion:: Filename completion.
2022* Remote processes:: Integration with other @value{emacsname} packages (@sc{experimental}). 2022* Remote processes:: Integration with other @value{emacsname} packages.
2023@end menu 2023@end menu
2024 2024
2025 2025
@@ -2228,17 +2228,14 @@ contents to @file{/}.
2228 2228
2229 2229
2230@node Remote processes 2230@node Remote processes
2231@section Integration with other @value{emacsname} packages (@sc{experimental}). 2231@section Integration with other @value{emacsname} packages.
2232@cindex compile 2232@cindex compile
2233@cindex recompile 2233@cindex recompile
2234@cindex gud
2235@cindex gdb
2236@cindex perldb
2237 2234
2238@value{tramp} has an @sc{experimental} implementation for running 2235@value{tramp} supports running processes on a remote host. This
2239processes on a remote host. This allows to exploit @value{emacsname} 2236allows to exploit @value{emacsname} packages without modification for
2240packages without modification for remote file names. It does not work 2237remote file names. It does not work for the @option{ftp} and
2241for the @option{ftp} and @option{smb} methods. 2238@option{smb} methods.
2242 2239
2243Remote processes are started when a corresponding command is executed 2240Remote processes are started when a corresponding command is executed
2244from a buffer belonging to a remote file or directory. Up to now, the 2241from a buffer belonging to a remote file or directory. Up to now, the
@@ -2298,17 +2295,50 @@ After you have started @code{eshell}, you could perform commands like
2298this: 2295this:
2299 2296
2300@example 2297@example
2301@b{~ $} cd @trampfnmhl{sudo, , /etc} 2298@b{~ $} cd @trampfnmhl{sudo, , /etc} @key{RET}
2302@b{@trampfn{sudo, root, host, /etc} $} hostname 2299@b{@trampfn{sudo, root, host, /etc} $} hostname @key{RET}
2303host 2300host
2304@b{@trampfn{sudo, root, host, /etc} $} id 2301@b{@trampfn{sudo, root, host, /etc} $} id @key{RET}
2305uid=0(root) gid=0(root) groups=0(root) 2302uid=0(root) gid=0(root) groups=0(root)
2306@b{@trampfn{sudo, root, host, /etc} $} find-file shadow 2303@b{@trampfn{sudo, root, host, /etc} $} find-file shadow @key{RET}
2307#<buffer shadow> 2304#<buffer shadow>
2308@b{@trampfn{sudo, root, host, /etc} $} 2305@b{@trampfn{sudo, root, host, /etc} $}
2309@end example 2306@end example
2310 2307
2311 2308
2309@subsection Running a debugger on a remote host
2310@cindex gud
2311@cindex gdb
2312@cindex perldb
2313
2314@file{gud.el} offers an unified interface to several symbolic
2315debuggers
2316@ifset emacs
2317@ifinfo
2318(@ref{Debuggers, , , @value{emacsdir}}).
2319@end ifinfo
2320@end ifset
2321With @value{tramp}, it is possible to debug programs on
2322remote hosts. You can call @code{gdb} with a remote file name:
2323
2324@example
2325@kbd{M-x gdb @key{RET}}
2326@b{Run gdb (like this):} gdb --annotate=3 @trampfnmhl{ssh, host, ~/myprog} @key{RET}
2327@end example
2328
2329The file name can also be relative to a remote default directory.
2330Given you are in a buffer that belongs to the remote directory
2331@trampfnmhl{ssh, host, /home/user}, you could call
2332
2333@example
2334@kbd{M-x perldb @key{RET}}
2335@b{Run perldb (like this):} perl -d myprog.pl @key{RET}
2336@end example
2337
2338It is not possible to use just the absolute local part of a remote
2339file name, like @kbd{perl -d /home/user/myprog.pl}, though.
2340
2341
2312@node Bug Reports 2342@node Bug Reports
2313@chapter Reporting Bugs and Problems 2343@chapter Reporting Bugs and Problems
2314@cindex bug reports 2344@cindex bug reports