This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/16999] HISTSIZE behavior should match Bash's


https://sourceware.org/bugzilla/show_bug.cgi?id=16999

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b58c513b7932cfb9852d66e07282b9c2379197ed

commit b58c513b7932cfb9852d66e07282b9c2379197ed
Author: Patrick Palka <patrick@parcs.ath.cx>
Date:   Wed Jun 17 13:31:56 2015 -0400

    Read $GDBHISTSIZE instead of $HISTSIZE

    The HISTSIZE environment variable is generally expected to be read by
    shells, not by applications.  Some distros for example globally export
    HISTSIZE in /etc/profile -- with the intention that it only affects
    shells -- and by doing so it renders useless GDB's own mechanism for
    setting the history size via .gdbinit.  Also, annoyances may arise when
    HISTSIZE is not interpreted the same way by the shell and by GDB, e.g.
    PR gdb/16999.  That can always be fixed on a shell-by-shell basis but it
    may be impossible to be consistent with the behavior of all shells at
    once.  Finally it just makes sense to not confound shell environment
    variables with application environment variables.

    gdb/ChangeLog:

        * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
        * top.c (init_history): Read from GDBHISTSIZE instead of
        HISTSIZE.
        (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.

    gdb/doc/ChangeLog:

        * gdb.texinfo (Command History): Replace occurrences of HISTSIZE
        with GDBHISTSIZE.

    gdb/testsuite/ChangeLog:

        * gdb.base/gdbinit-history.exp: Replace occurrences of HISTSIZE
        with GDBHISTSIZE.
        * gdb.base/readline.exp: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]