aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-12-09 13:51:45 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2020-12-09 14:05:48 -0500
commitf5fca0ec15660667b202e4c2873af4df480956ea (patch)
treead1a1ddded8f71cc82404d89584a76f0133ca6a5 /gdb/mdebugread.c
parent8d55943698fcded0ac108284bfac77d77c7e4859 (diff)
downloadgdb-f5fca0ec15660667b202e4c2873af4df480956ea.zip
gdb-f5fca0ec15660667b202e4c2873af4df480956ea.tar.gz
gdb-f5fca0ec15660667b202e4c2873af4df480956ea.tar.bz2
gdb: make discrete_position return optional
Instead of returning a boolean status and returning the value through a pointer, return an optional that does both jobs. This helps in the following patches, and I think it is an improvement in general. gdb/ChangeLog: * ada-lang.c (ada_value_slice_from_ptr): Adjust. (ada_value_slice): Adjust. (pos_atr): Adjust. * gdbtypes.c (get_discrete_bounds): Adjust. (discrete_position): Return optional. * gdbtypes.h (discrete_position): Return optional. Change-Id: I758dbd8858b296ee472ed39ec35db1dbd624a5ae
Diffstat (limited to 'gdb/mdebugread.c')
0 files changed, 0 insertions, 0 deletions