[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/process.c

From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/process.c
Date: Wed, 31 May 2006 08:58:02 +0000

Index: emacs/src/process.c
diff -u emacs/src/process.c:1.481 emacs/src/process.c:1.482
--- emacs/src/process.c:1.481   Mon May  8 05:19:42 2006
+++ emacs/src/process.c Wed May 31 08:58:02 2006
@@ -4135,6 +4135,25 @@
+/* Use a wrapper around select to work around a bug in gdb 5.3.
+   Normally, the wrapper is optimzed away by inlining.
+   If emacs is stopped inside select, the gdb backtrace doesn't
+   show the function which called select, so it is practically
+   impossible to step through wait_reading_process_output.  */
+#ifndef select
+static INLINE int
+select_wrapper (n, rfd, wfd, xfd, tmo)
+  int n;
+  SELECT_TYPE *rfd, *wfd, *xfd;
+  EMACS_TIME *tmo;
+  return select (n, rfd, wfd, xfd, tmo);
+#define select select_wrapper
 /* Read and dispose of subprocess output while waiting for timeout to
    elapse and/or keyboard input to be available.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]