X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftop.c;h=3687cf7a6ecfc9bffa8b6d4a8cb937073731da01;hb=5d5021647dbce1a933576243b9d54281a88eb3b5;hp=5108089e40f0d3cafefef99389560b21686c0c8e;hpb=3a6f1766e1c8ec54e2baa00f51d375c554ee63b3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/top.c b/gdb/top.c index 5108089e40..3687cf7a6e 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -370,6 +370,7 @@ execute_command (char *p, int from_tty) { #ifdef HAVE_SBRK char *lim = (char *) sbrk (0); + space_at_cmd_start = lim - lim_at_start; #endif } @@ -515,6 +516,7 @@ command_loop (void) { #ifdef HAVE_SBRK char *lim = (char *) sbrk (0); + space_at_cmd_start = lim - lim_at_start; #endif } @@ -538,6 +540,7 @@ command_loop (void) { #ifdef HAVE_SBRK char *lim = (char *) sbrk (0); + long space_now = lim - lim_at_start; long space_diff = space_now - space_at_cmd_start; @@ -785,6 +788,7 @@ static void gdb_rl_operate_and_get_next_completion (void) { int delta = where_history () - operate_saved_history; + /* The `key' argument to rl_get_previous_history is ignored. */ rl_get_previous_history (delta, 0); operate_saved_history = -1;