all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gdb mode with gdb command from the docker
@ 2020-10-18 15:08 William Xu
  2020-10-18 15:57 ` Eli Zaretskii
  2020-10-18 18:48 ` Yuri Khan
  0 siblings, 2 replies; 13+ messages in thread
From: William Xu @ 2020-10-18 15:08 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm trying to use gdb mode with the gdb command from the docker image.
So i defined a wrapper of gdb from docker:

---------------------------------8<-------------------------------------        
#!/bin/sh
arg="$@"
docker exec -i myproject gdb -i=mi ${arg}
---------------------------------8<-------------------------------------

Then invoke the gdb with: (gdb "/path/gdbWrapper").  The *gud* buffer
can be created successfully. The executable file can be loaded OK,
however,  it reports some tty error while trying to run the executable: 

---------------------------------8<------------------------------------- 
(gdb) file a.out
Load new symbol table from "a.out"? (y or n) [answered Y; input not from terminal]
Reading symbols from a.out...done.
(gdb) r
Starting program: /test/a.out 
/dev/ttys002: No such file or directory.
During startup program exited with code 1.
(gdb) 
---------------------------------8<------------------------------------- 

If I run the gdbWrapper directly from a terminal application,
everything is fine, i don't see the same error there.  What could be
wrong in the gdb mode? 

-- 
William




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

end of thread, other threads:[~2020-10-22 19:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-18 15:08 gdb mode with gdb command from the docker William Xu
2020-10-18 15:57 ` Eli Zaretskii
2020-10-18 18:18   ` William Xu
2020-10-18 18:35     ` Eli Zaretskii
2020-10-20 19:54       ` William Xu
2020-10-21 16:10         ` Eli Zaretskii
2020-10-22 18:41           ` William Xu
2020-10-22 18:49             ` Eli Zaretskii
2020-10-22 19:27               ` William Xu
2020-10-18 18:48 ` Yuri Khan
2020-10-18 19:00   ` otadmor
2020-10-19  6:41     ` William Xu
2020-10-19  6:39   ` William Xu

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.