[binutils-gdb] Use previous count when 'x' command is repeated

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Fri May 4 20:33:00 GMT 2018


*** TEST RESULTS FOR COMMIT 9be2ae8fc6b908746d9d7ebaf77aec8abba5dd2c ***

Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 9be2ae8fc6b908746d9d7ebaf77aec8abba5dd2c

Use previous count when 'x' command is repeated

About the 'x' command, the manual says:

    If you use <RET> to repeat the 'x' command, the repeat count N is
    used again; the other arguments default as for successive uses of
    'x'.

However, PR gdb/22619 points out that this does not work.

This patch fixes the problem.

ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

	PR gdb/22619:
	* printcmd.c (last_count): New global.
	(x_command): Use saved count when repeating.

testsuite/ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

	PR gdb/22619:
	* gdb.base/long_long.exp (gdb_test_long_long): Add test for repeat
	behavior.



More information about the Gdb-testers mailing list