Bug 16863 - "set history size unlimited" not working
Summary: "set history size unlimited" not working
Status: RESOLVED WORKSFORME
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: 7.5
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-21 22:54 UTC by Björn Kautler
Modified: 2014-04-22 01:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Kautler 2014-04-21 22:54:34 UTC
https://sourceware.org/gdb/current/onlinedocs/gdb/Command-History.html#Command-History mentions that you can increase the history size to being unbound by invoking "set history size unlimited". This command is not working though.
Comment 1 Sergio Durigan Junior 2014-04-22 00:41:37 UTC
This works for me.

Trying with:

  #> (HISTSIZE=2 ./gdb/gdb)

I see that GDB only keeps 2 commands in the history.  However, if I "set history size unlimited", it starts keeping more and more commands as I type.
Comment 2 Sergio Durigan Junior 2014-04-22 00:42:06 UTC
It is worth noting that I tried our git master HEAD.
Comment 3 Björn Kautler 2014-04-22 01:26:03 UTC
Ah, ok, then it seems to be fixed in the HEAD.
In my 7.5 version it says "No symbol table loaded. Use the >>file<<-command", or if started with an executable, "No symbol 'unlimited' in current context.".
So it seems GDB tries to resolve "unlimited" as symbol in the debugee here.
I probably should have posted this along with the report.
Comment 4 Sergio Durigan Junior 2014-04-22 01:42:02 UTC
This has been fixed by bug #15294.