CVS commit: src/external/gpl3/gdb/dist/readline
Module Name:src Committed By: christos Date: Thu Aug 20 17:25:50 UTC 2015 Modified Files: src/external/gpl3/gdb/dist/readline: util.c Log Message: use snprintf and cast to long. To generate a diff of this commit: cvs rdiff -u -r1.1.1.3 -r1.2 src/external/gpl3/gdb/dist/readline/util.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/readline/util.c diff -u src/external/gpl3/gdb/dist/readline/util.c:1.1.1.3 src/external/gpl3/gdb/dist/readline/util.c:1.2 --- src/external/gpl3/gdb/dist/readline/util.c:1.1.1.3 Sun Jun 22 19:40:08 2014 +++ src/external/gpl3/gdb/dist/readline/util.c Thu Aug 20 13:25:50 2015 @@ -507,7 +507,7 @@ _rl_tropen () if (_rl_tracefp) fclose (_rl_tracefp); - sprintf (fnbuf, /var/tmp/rltrace.%ld, getpid()); + snprintf (fnbuf, sizeof(fnbuf), /var/tmp/rltrace.%ld, (long)getpid()); unlink(fnbuf); _rl_tracefp = fopen (fnbuf, w+); return _rl_tracefp != 0;
CVS commit: src/external/gpl3/gdb/dist/readline
Module Name:src Committed By: joerg Date: Mon Oct 17 13:08:51 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/readline: xmalloc.h Log Message: Don't rename xfree to xfree_readline, it breaks the build. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/readline/xmalloc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/readline/xmalloc.h diff -u src/external/gpl3/gdb/dist/readline/xmalloc.h:1.1.1.1 src/external/gpl3/gdb/dist/readline/xmalloc.h:1.2 --- src/external/gpl3/gdb/dist/readline/xmalloc.h:1.1.1.1 Sat Sep 24 19:56:48 2011 +++ src/external/gpl3/gdb/dist/readline/xmalloc.h Mon Oct 17 13:08:51 2011 @@ -39,9 +39,6 @@ #endif /* !PTR_T */ -/* xmalloc and xrealloc should be also protected from RL_STATE_SIGHANDLER. */ -#define xfree xfree_readline - /* readline-5.1 backport. */ #define free xfree
CVS commit: src/external/gpl3/gdb/dist/readline
Module Name:src Committed By: christos Date: Sun Oct 16 19:41:30 UTC 2011 Modified Files: src/external/gpl3/gdb/dist/readline: display.c rltty.c terminal.c Log Message: add necessary headers for this to compile without warnings To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/readline/display.c \ src/external/gpl3/gdb/dist/readline/rltty.c \ src/external/gpl3/gdb/dist/readline/terminal.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/readline/display.c diff -u src/external/gpl3/gdb/dist/readline/display.c:1.1.1.1 src/external/gpl3/gdb/dist/readline/display.c:1.2 --- src/external/gpl3/gdb/dist/readline/display.c:1.1.1.1 Sat Sep 24 15:56:39 2011 +++ src/external/gpl3/gdb/dist/readline/display.c Sun Oct 16 15:41:30 2011 @@ -47,6 +47,7 @@ /* System-specific feature definitions and include files. */ #include rldefs.h +#include rltty.h #include rlmbutil.h /* Termcap library stuff. */ Index: src/external/gpl3/gdb/dist/readline/rltty.c diff -u src/external/gpl3/gdb/dist/readline/rltty.c:1.1.1.1 src/external/gpl3/gdb/dist/readline/rltty.c:1.2 --- src/external/gpl3/gdb/dist/readline/rltty.c:1.1.1.1 Sat Sep 24 15:56:44 2011 +++ src/external/gpl3/gdb/dist/readline/rltty.c Sun Oct 16 15:41:30 2011 @@ -37,9 +37,9 @@ #include rldefs.h -#if defined (GWINSZ_IN_SYS_IOCTL) +#if defined (HAVE_SYS_IOCTL_H) # include sys/ioctl.h -#endif /* GWINSZ_IN_SYS_IOCTL */ +#endif /* HAVE_SYS_IOCTL_H */ #include rltty.h #include readline.h Index: src/external/gpl3/gdb/dist/readline/terminal.c diff -u src/external/gpl3/gdb/dist/readline/terminal.c:1.1.1.1 src/external/gpl3/gdb/dist/readline/terminal.c:1.2 --- src/external/gpl3/gdb/dist/readline/terminal.c:1.1.1.1 Sat Sep 24 15:56:45 2011 +++ src/external/gpl3/gdb/dist/readline/terminal.c Sun Oct 16 15:41:30 2011 @@ -32,6 +32,10 @@ # include sys/file.h #endif /* HAVE_SYS_FILE_H */ +#if defined (HAVE_SYS_IOCTL_H) +#include sys/ioctl.h +#endif /* HAVE_SYS_IOCTL_H */ + #if defined (HAVE_UNISTD_H) # include unistd.h #endif /* HAVE_UNISTD_H */