help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb with tramp problem


From: Joe Bloggs
Subject: Re: gdb with tramp problem
Date: Mon, 14 Jul 2008 03:23:42 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Nick Roberts <address@hidden> writes:

>  > When I load a remote c file with tramp, and run gdb through emacs on the 
>  > corresponding executable, tramp runs gdb on the remote machine as 
> required. 
>  > However when I set a breakpoint and try stepping through the code, it fails
>  > to indicate the current position in the buffer containing the remote 
> source 
>  > (as it would if I ran gdb locally with a local source file). Instead it 
> opens 
>  > a new empty buffer, and gives it the same name as the remote source file, 
>  > and with a local path (e.g. instead of /address@hidden:/home/me/file.c
>  > it's listed as /home/me/file.c).
>  > Can anyone tell me how to fix this?
>
> It works for me.  What version of Emacs are you using?  What version of GDB?
> What platform?  It's best if you report a bug using M-x report-emacs-bug.
> After GDB stops at the breakpoint What does "info source" give?
>
> -- 
> Nick                                           http://www.inet.net.nz/~nickrob

Emacs 21.4.1 on Debian Etch with gdb 6.4.90-debian, and using cc-mode version 
5.31.3
'info source' from within gdb gives the correct path to the source file.
Strange thing is I can set the breakpoint from within the source buffer with 
C-x <SPC>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]