all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: gdb mode with gdb command from the docker
Date: Sun, 18 Oct 2020 21:35:31 +0300	[thread overview]
Message-ID: <83a6wjqt58.fsf@gnu.org> (raw)
In-Reply-To: <m2k0vnxus1.fsf@gmail.com> (message from William Xu on Sun, 18 Oct 2020 20:18:22 +0200)

> From: William Xu <william.xwl@gmail.com>
> Date: Sun, 18 Oct 2020 20:18:22 +0200
> 
> >> (gdb) r
> >> Starting program: /test/a.out 
> >> /dev/ttys002: No such file or directory.
> >
> > This is not, but the error message seems to come from a.out, not from
> > GDB.  So I think you should review the program's code and see why it
> > fails that way.
> 
> Hmm, I saw similar error in my original executable, in the created test
> program,  it only prints a string:

The error message could come from some library function.

> Also as I mentioned, if I run the gdbWrapper directly outside emacs, on
> the terminal app (i'm running Terminal on macOS), there is no problem
> seen at all.

Of course: when the program is run from GDB under Emacs, the standard
output and standard input of the program are connected to a PTY
(pseudo-terminal), not to a real console device.  So it is a small
wonder that the behavior is different.

> I think it is more likely something wrong inside emacs's
> gdb mode.

Maybe so, but I don't see what would cause this in gdb mode.



  reply	other threads:[~2020-10-18 18:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a6wjqt58.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.