[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb mode with gdb command from the docker
From: |
William Xu |
Subject: |
Re: gdb mode with gdb command from the docker |
Date: |
Thu, 22 Oct 2020 20:41:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
Eli Zaretskii <eliz@gnu.org> writes:
> No, this setting is needed to separate the I/O device of the process
> being debugged from that of GDB, so that we could redirect I/O of the
> debuggee to a dedicated buffer used by "M-x gdb" to show interaction
> with the program.
Can we at least add an option to disable the I/O separation, like
gdb-disable-io-redirection? So that one can still have a working gdb,
even if the I/O are mixed with gdb commands. So that I would still have
the nice features of gdb modes, with which I can set breakpoints, follow
line by line in the source buffer. That is already a huge improvement on
the plain terminal gdb.
In addition, I just noticed that tramp seems supporting such kind of
remote debugging, from [[info:tramp#Remote processes][info:tramp#Remote
processes]]:
,----
| 5.5.5 Running a debugger on a remote host
| -----------------------------------------
|
| ‘gud.el’ provides a unified interface to symbolic debuggers (*note
| (emacs)Debuggers::). TRAMP can run debug on remote hosts by calling
| ‘gdb’ with a remote file name:
|
| M-x gdb <RET>
| Run gdb (like this): gdb -i=mi /ssh:host:~/myprog <RET>
`----
Only that when trying it out with ssh method, I got an error after the
file is loaded. Should I report a bug for it?
---------------------------------8<-------------------------------------
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/wx/tmp/a.out...
Debugger entered--Lisp error: (wrong-type-argument "consp nil")
signal(wrong-type-argument ("consp nil"))
tramp-signal-hook-function(wrong-type-argument (consp nil))
signal(wrong-type-argument (consp nil))
tramp-sh-handle-make-process(:name "gdb-inferior" :buffer #<buffer limbo<3>>
:command nil :stderr nil :noquery nil :file-handler t)
apply(tramp-sh-handle-make-process (:name "gdb-inferior" :buffer #<buffer
limbo<3>> :command nil :stderr nil :noquery nil :file-handler t))
tramp-sh-file-name-handler(make-process :name "gdb-inferior" :buffer #<buffer
limbo<3>> :command nil :stderr nil :noquery nil :file-handler t)
apply(tramp-sh-file-name-handler make-process (:name "gdb-inferior" :buffer
#<buffer limbo<3>> :command nil :stderr nil :noquery nil :file-handler t))
tramp-file-name-handler(make-process :name "gdb-inferior" :buffer #<buffer
limbo<3>> :command nil :stderr nil :noquery nil :file-handler t)
tramp-handle-start-file-process("gdb-inferior" #<buffer limbo<3>> nil)
apply(tramp-handle-start-file-process ("gdb-inferior" #<buffer limbo<3>> nil))
tramp-sh-file-name-handler(start-file-process "gdb-inferior" #<buffer
limbo<3>> nil)
apply(tramp-sh-file-name-handler start-file-process ("gdb-inferior" #<buffer
limbo<3>> nil))
tramp-file-name-handler(start-file-process "gdb-inferior" #<buffer limbo<3>>
nil)
apply(tramp-file-name-handler start-file-process "gdb-inferior" #<buffer
limbo<3>> nil nil)
start-file-process("gdb-inferior" #<buffer limbo<3>> nil)
apply(start-file-process "gdb-inferior" #<buffer limbo<3>> nil nil)
comint-exec-1("gdb-inferior" #<buffer limbo<3>> nil nil)
comint-exec(#<buffer limbo<3>> "gdb-inferior" nil nil nil)
make-comint-in-buffer("gdb-inferior" #<buffer limbo<3>> nil)
gdb-inferior-io-mode()
gdb-get-buffer-create(gdb-inferior-io)
gdb-init-1()
gdb-update()
gdb("gdb -i=mi /ssh:wx@SERVER:/home/wx/tmp...")
funcall-interactively(gdb "gdb -i=mi /ssh:wx@SERVER:/home/wx/tmp...")
call-interactively(gdb record nil)
command-execute(gdb record)
execute-extended-command(nil "gdb" nil)
funcall-interactively(execute-extended-command nil "gdb" nil)
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
---------------------------------8<-------------------------------------
--
William
- gdb mode with gdb command from the docker, William Xu, 2020/10/18
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/18
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/18
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/18
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/20
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/21
- Re: gdb mode with gdb command from the docker,
William Xu <=
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/22
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/22
Re: gdb mode with gdb command from the docker, Yuri Khan, 2020/10/18