all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* finally getting gdb to work?
@ 2010-07-22  8:04 Andrea Crotti
  2010-07-22 10:41 ` Michael Albinus
  0 siblings, 1 reply; 7+ messages in thread
From: Andrea Crotti @ 2010-07-22  8:04 UTC (permalink / raw
  To: help-gnu-emacs

I don't understand what happens here, yesterday for the first time I saw
how I should be supposed to debug in emacs (with gdb).

It was great, jumping, easily set breakpoints and so on.
By default this  "gdb-many-windows" is nil and until I didn't set it to
"t" I thought that text-mode stuff was all I was getting.

After some other time and trying also out pdb then nothing works
anymore!

When I run
M-x gdb test
I don't anymore the windows set, and if I call gdb-restore-windows I
don't get a working debug environment anyway (only the windows set).
Here is my very simple conf

--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp :tangle yes
   (setq gdb-show-main nil)
   (setq gdb-many-windows t)

#+end_src 

*** Some advices for pdb
#+begin_src emacs-lisp :tangle yes
  (defadvice pdb (before gud-query-cmdline activate)
    "Provide a better default command line when called interactively."
    (interactive
     (list (gud-query-cmdline 'pdb.py
                              (file-name-nondirectory buffer-file-name)))))
#+end_src
--8<---------------cut here---------------end--------------->8---

Anyone has an idea?

Ah another thing, I also have to debug some code which compiles only on
a virtual machine, which I can access via ssh.

Now I work on it via sshfs, but I would like to debug it directly.
Is there some way to automate the debugging process from another
machine (with gdbserver or tramp maybe?)?

Thanks a lot




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-22 12:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22  8:04 finally getting gdb to work? Andrea Crotti
2010-07-22 10:41 ` Michael Albinus
2010-07-22 11:12   ` Andrea Crotti
2010-07-22 11:20     ` Andrea Crotti
2010-07-22 12:01       ` Bastian Beischer
2010-07-22 11:49     ` Michael Albinus
2010-07-22 11:58       ` Andrea Crotti

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.