This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] show_commands (top.c) bug fix


[Here's another one I missed the first time through.]

In show_commands (top.c), we find the line:

	num = (parse_and_eval_address (args) - history_base) - Hist_print / 2;

Since num is just an integer, I'd like to change that to instead read:

	num = (parse_and_eval_long (args) - history_base) - Hist_print / 2;

The ChangeLog entry would be:

	* top.c (show_commands): Replace call to parse_and_eval_address
	with a call to parse_and_eval_long as we are evaluating an
	integer, not an address.

[Or, possibly just:

	* top.c (show_commands): Ditto.

if I commit it the same time as the trace_find_tracepoint_command fix.]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]