public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/16999] HISTSIZE behavior should match Bash's Date: Wed, 17 Jun 2015 18:14:00 -0000 [thread overview] Message-ID: <bug-16999-4717-hNCtRiSxJf@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-16999-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=16999 --- Comment #6 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=bc460514b9db46a491c2c39cd118b02608742968 commit bc460514b9db46a491c2c39cd118b02608742968 Author: Patrick Palka <patrick@parcs.ath.cx> Date: Tue May 12 06:50:26 2015 -0400 Tweak the handling of $GDBHISTSIZE edge cases [PR gdb/16999] When GDB reads a nonsensical value for the GDBHISTSIZE environment variable, i.e. one that is non-numeric or negative, GDB then sets its history size to 0. This behavior is annoying and also inconsistent with the behavior of bash. This patch makes the behavior of invalid GDBHISTSIZE consistent with how bash handles HISTSIZE. When we encounter a null or out-of-range GDBHISTSIZE (outside of [0, INT_MAX]) we now set the history size to unlimited instead of 0. When we encounter a non-numeric GDBHISTSIZE we do nothing. gdb/ChangeLog: PR gdb/16999 * NEWS: Mention new GDBHISTSIZE behavior. * top.c (init_history): For null or out-of-range GDBHISTSIZE, set history size to unlimited. Ignore non-numeric GDBHISTSIZE. gdb/doc/ChangeLog: PR gdb/16999 * gdb.texinfo (Command History): Mention new GDBHISTSIZE behavior. gdb/testsuite/ChangeLog: PR gdb/16999 * gdb.base/gdbhistsize-history.exp: New test. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2015-06-17 18:14 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-05-30 3:36 [Bug gdb/16999] New: " ezyang at mit dot edu 2014-06-13 19:53 ` [Bug gdb/16999] " chrismatteri at gmail dot com 2014-07-11 11:05 ` jason.vas.dias at gmail dot com 2015-05-01 11:41 ` jason.vas.dias at gmail dot com 2015-05-01 15:55 ` dje at google dot com 2015-05-04 9:58 ` palves at redhat dot com 2015-06-17 18:14 ` cvs-commit at gcc dot gnu.org [this message] 2015-06-17 18:14 ` cvs-commit at gcc dot gnu.org 2015-06-17 18:30 ` patrick at parcs dot ath.cx
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-16999-4717-hNCtRiSxJf@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).