unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Steven Tamm <steventamm@mac.com>
Cc: emacs-devel@gnu.org
Subject: process-connection-type nil & gdb (was Re: C-c C-c killing gdb on OS/X)
Date: Tue, 25 Nov 2003 09:02:45 -0800	[thread overview]
Message-ID: <307A721B-1F69-11D8-B29E-00039390AB82@mac.com> (raw)
In-Reply-To: <m2d6bmebsd.fsf@Majnun.local>

I noticed this bug a while ago in the carbon port, and it works 
correctly with both X11 and the terminal emacs.  It has to do with the 
(setq process-connection-type nil) problem.  With X & the terminal the 
subprocesses are allocated with a pty, while with carbon they are 
allocated with pipes.  So if you (setq process-connection-type t), gdb 
will work; and if you (setq process-connection-type nil) in X11 and the 
terminal, it will fail and will probably fail on other platforms as 
well.  The "real bug" is that process-connection-type needs to be nil 
for darwin due to a bug in the pty implementation.

I'm not that familiar with the process code, nor with ptys, so I have 
no idea what is going wrong.  Can someone else look and figure out what 
the problem with interrupting gdb with pipes is?

Thanks,
-Steven

On Thursday, November 20, 2003, at 05:43  PM, John Wiegley wrote:

> To any of the Mac developers:
>
> If I write a program that waits in a loop, and hit C-c C-c while in
> gdb under gud, gdb will terminate with:
>
>   C-c C-c
> Debugger finished
>
> But I do the same thing in the Terminal, it interrupts the program as
> I expect.
>
> Ideas?  I checked process.c, and it doesn't seem that anything is
> being done differently for darwin.
>
> John
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2003-11-25 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21  1:43 C-c C-c killing gdb on OS/X John Wiegley
2003-11-25 17:02 ` Steven Tamm [this message]
2003-11-25 20:05   ` process-connection-type nil & gdb Benjamin Riefenstahl
2003-11-26  3:24     ` Steven Tamm
2003-11-26 14:22       ` Benjamin Riefenstahl

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=307A721B-1F69-11D8-B29E-00039390AB82@mac.com \
    --to=steventamm@mac.com \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).