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 cli/17820] New: set history size unlimited in ~/.gdbinit disables history


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

            Bug ID: 17820
           Summary: set history size unlimited in ~/.gdbinit disables
                    history
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

I have this in my ~/.gdbinit:

set history size unlimited

but I generally always use emacs so I've never noticed this.

It doesn't work because while set_history_size_command knows how to
map "unlimited" (== UINT_MAX) to DTRT, init_history does not, which passes
UINT_MAX to stifle_history, which takes an int, and boom.

-- 
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]