summaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2010-05-17 01:15:19 +0000
committerMichael Snyder <msnyder@specifix.com>2010-05-17 01:15:19 +0000
commit0f04a3f794db9695c131ea6d830dcb506f2adb07 (patch)
tree14f08985fa475d71379bbda76b7bb2a2a763f5b0 /gdb/top.c
parenteed0e7eb3a8adc67fbb8f8b4fe1d25c8abbffb6e (diff)
downloadgdb-0f04a3f794db9695c131ea6d830dcb506f2adb07.tar.gz
2010-05-16 Michael Snyder <msnyder@vmware.com>
* target.c: White space. * target-descriptions.c: White space. * target-memory.c: White space. * thread.c: White space. * top.c: White space. * tracepoint.c: White space. * trad-frame.c: White space. * tramp-frame.c: White space. * ui-file.c: White space. * ui-out.c: White space. * user-regs.c: White space. * utils.c: White space.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 5108089e40f..3687cf7a6ec 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;