This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] get_int_var_value
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 20 Jul 2017 18:02:00 -0400
- Subject: [binutils-gdb] get_int_var_value
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT edb0c9cb22e5be90a76b8698b45e9eaee596f315 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: edb0c9cb22e5be90a76b8698b45e9eaee596f315
get_int_var_value
I noticed that get_int_var_value's parameters could use some
constification. And then realized that client code would become
simpler by changing the interface to return the success/failure
indication as actual return value, as it allows getting rid of the
local "boolean" variable.
gdb/ChangeLog:
2017-07-20 Pedro Alves <palves@redhat.com>
* ada-lang.c (ada_to_fixed_type_1): Adjust.
(get_var_value): Constify parameters.
(get_int_var_value): Change prototype.
(to_fixed_range_type): Adjust.
* ada-lang.h (get_int_var_value): Change prototype.