trace_find_tracepoint_command (tracepoint.c) & show_commands (top.c) bug fixes

David Taylor taylor@cygnus.com
Thu Nov 16 07:01:00 GMT 2000


These have been committed.

Date: Wed, 15 Nov 2000 15:13:23 -0500
From: David Taylor <taylor@texas.cygnus.com>

In trace_find_tracepoint_command (tracepoint.c), we find the line:

	tdp = parse_and_eval_address (args);

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

	tdp = parse_and_eval_long (args);

The ChangeLog entry would be:

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

David

Date: Wed, 15 Nov 2000 15:42:25 -0500
From: David Taylor <taylor@texas.cygnus.com>

[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.]


More information about the Gdb-patches mailing list