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]

Re: [RFA] show_commands (top.c) bug fix


It is CLI, so I guess I can approve it.  Elena's interest on top.c is 
related to the event loop.

Thanks for the fix.

Fernando


David Taylor wrote:
> 
> [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.]

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

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