ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

gdb-76-readline.patch (567B)


      1 some newer version of readline uses history_max_entries
      2 as an alias to max_input_history.
      3 all other occurences in the code use max_input_history.
      4 
      5 fix for consistency and to make the code again work with
      6 libedit as a drop-in replacement for readline.
      7 
      8 --- gdb-7.6.2.org/gdb/top.c
      9 +++ gdb-7.6.2/gdb/top.c
     10 @@ -1446,7 +1446,7 @@
     11  
     12        /* Restore previous value before throwing.  */
     13        if (history_is_stifled ())
     14 -	history_size_setshow_var = history_max_entries;
     15 +	history_size_setshow_var = max_input_history;
     16        else
     17  	history_size_setshow_var = UINT_MAX;
     18