[Top][All Lists]

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

Re: [tramp-devel] Trying to debug remote gdb issue

From: Michael Albinus
Subject: Re: [tramp-devel] Trying to debug remote gdb issue
Date: Mon, 15 Oct 2007 21:08:50 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

"Abhijeet More" <address@hidden> writes:

> Okay - here's what's happenning: when I set a breakpoint the file I
> set a break point on is fetched. The buffer is not displayed - However
> if I do change to that buffer I can see the red dot gud puts in.
> Now if I step through the program, the source buffer should be
> displayed with an arrow next to the line to be executed - but this
> doesn't happen. The buffer is not displayed.

I will try to check it next days. As always, I'm short in time ...

> The traces are huge - I gave up trying to figure out the relevant data
>>from them ( tried with tramp-verbose = 6..10).

Yes, but the traces are in outline mode. So it shall be possible to
filter them. tramp-(g|s)et-file-properties use trace level 8.

> Am currently trying to 'edebug' to see what's going on:
> I have a few questions:
>  How does file-exists-p call tramp-handle-file-exists-p? Is it set up
> as an advice? I couldn't see any defadvice for this.

See (info "(elisp)Magic File Names") for the mechanism behind.

> Also there's a utility function called tramp-gud-file-name - when is
> this called?

It is defined in tramp-util.el. This whole file is intended to be "a
hack" running commands on a remote host even if the underlying (X)Emacs
does not support this. Consequently, tramp-util.el is not used anymore
in Emacs 23.

tramp-gud-file-name is used in gud-%s-find-file - see the defadvices in

> I set a break on this function (edebug) and traced through a 'C-c C-n'
> in gud-mode - but this function wasn't called.

That needs more investigation.

> AM

Best regards, Michael.

reply via email to

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