Don't include readline headers from tracepoint.c
authorTom Tromey <tromey@adacore.com>
Mon, 12 Aug 2019 18:06:20 +0000 (12:06 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 13 Aug 2019 18:28:38 +0000 (12:28 -0600)
I was curious why updating readline caused so much to be to rebuilt,
so I look at all the uses of the readline headers.  Most are included
for valid reasons (either readline directory or for tilde_expand); but
the includes in tracepoint.c didn't seem to be used.

This patch removes them.  Tested by rebuilding.

gdb/ChangeLog
2019-08-13  Tom Tromey  <tromey@adacore.com>

* tracepoint.c: Don't include readline.h or history.h.

gdb/ChangeLog
gdb/tracepoint.c

index 12998aa2b1424aad3017266f19333e71c60e8564..6c4208f758a6357402e37bf5ab69e9a019a93976 100644 (file)
@@ -1,3 +1,7 @@
+2019-08-13  Tom Tromey  <tromey@adacore.com>
+
+       * tracepoint.c: Don't include readline.h or history.h.
+
 2019-08-12  Tom Tromey  <tom@tromey.com>
 
        * configure: Rebuild.
index ed1d75e170e1deec7fa229e2b58b0e8d6aa249a3..2d5b9c705effbe2780f607e673fe62b72e8369e8 100644 (file)
 #include "location.h"
 #include <algorithm>
 
-/* readline include files */
-#include "readline/readline.h"
-#include "readline/history.h"
-
-/* readline defines this.  */
-#undef savestring
-
 #include <unistd.h>
 
 /* Maximum length of an agent aexpression.