• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónc15a79c78cc0111296b487de3fa59365f13df3bc (tree)
Tiempo2019-08-13 01:57:56
AutorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

Remove gdb workaround from readline/xfree.c

There is a gdb-local patch to deal with interrupts during completion.
The original thread adding this patch is here:

https://sourceware.org/ml/gdb-patches/2011-06/msg00147.html

I believe readline now implements the approach suggested by
Chet Ramey:

https://sourceware.org/ml/gdb-patches/2011-06/msg00493.html

So, I believe this patch can be removed.

readline/ChangeLog.gdb
2018-10-07 Tom Tromey <tom@tromey.com>

* Makefile.in (xfree.o): Don't depend on readline.h.
* xfree.c (xfree): Remove gdb workaround.
* xmalloc.h (xfree): Remove #define.

Cambiar Resumen

Diferencia incremental

--- a/readline/ChangeLog.gdb
+++ b/readline/ChangeLog.gdb
@@ -1,5 +1,11 @@
11 2019-08-12 Tom Tromey <tom@tromey.com>
22
3+ * Makefile.in (xfree.o): Don't depend on readline.h.
4+ * xfree.c (xfree): Remove gdb workaround.
5+ * xmalloc.h (xfree): Remove #define.
6+
7+2018-08-12 Tom Tromey <tom@tromey.com>
8+
39 * emacs_keymap.c: Remove gdb workaround.
410
511 2018-08-12 Tom Tromey <tom@tromey.com>
--- a/readline/Makefile.in
+++ b/readline/Makefile.in
@@ -437,7 +437,7 @@ vi_mode.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
437437 vi_mode.o: readline.h keymaps.h rltypedefs.h chardefs.h tilde.h
438438 vi_mode.o: history.h ansi_stdlib.h rlstdc.h
439439 xfree.o: ${BUILD_DIR}/config.h
440-xfree.o: ansi_stdlib.h readline.h
440+xfree.o: ansi_stdlib.h
441441 xmalloc.o: ${BUILD_DIR}/config.h
442442 xmalloc.o: ansi_stdlib.h
443443
--- a/readline/xfree.c
+++ b/readline/xfree.c
@@ -31,10 +31,7 @@
3131 # include "ansi_stdlib.h"
3232 #endif /* HAVE_STDLIB_H */
3333
34-#include <stdio.h>
35-
3634 #include "xmalloc.h"
37-#include "readline.h"
3835
3936 /* **************************************************************** */
4037 /* */
@@ -48,10 +45,6 @@ void
4845 xfree (string)
4946 PTR_T string;
5047 {
51- /* Leak a bit. */
52- if (RL_ISSTATE(RL_STATE_SIGHANDLER))
53- return;
54-
5548 if (string)
5649 free (string);
5750 }
--- a/readline/xmalloc.h
+++ b/readline/xmalloc.h
@@ -38,9 +38,6 @@
3838
3939 #endif /* !PTR_T */
4040
41-/* xmalloc and xrealloc should be also protected from RL_STATE_SIGHANDLER. */
42-#define xfree xfree_readline
43-
4441 extern PTR_T xmalloc PARAMS((size_t));
4542 extern PTR_T xrealloc PARAMS((void *, size_t));
4643 extern void xfree PARAMS((void *));