diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-12-09 14:49:02 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-12-09 14:49:15 -0500 |
commit | 6ad368b8caf6650852983fc23814c9f393da0439 (patch) | |
tree | 8e0d02c1ef4fce05c41b6ed9ef8f0f012f4714db /gdb/python/py-varobj.c | |
parent | 5b56203a7cadd545b33713e98e274e582242e090 (diff) | |
download | gdb-6ad368b8caf6650852983fc23814c9f393da0439.zip gdb-6ad368b8caf6650852983fc23814c9f393da0439.tar.gz gdb-6ad368b8caf6650852983fc23814c9f393da0439.tar.bz2 |
gdb: address review comments of previous series
I forgot to include fixes for review comments I got before pushing the
previous commits (or I pushed the wrong commits). This one fixes it.
- Return {} instead of false in get_discrete_low_bound and
get_discrete_high_bound.
- Compute high bound after confirming low bound is valid in
get_discrete_bounds.
gdb/ChangeLog:
* gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
Return {} instead of false.
(get_discrete_bounds): Compute high bound only if low bound is
valid.
Change-Id: I5f9a66b3672adfac9441068c899ab113ab2c331a
Diffstat (limited to 'gdb/python/py-varobj.c')
0 files changed, 0 insertions, 0 deletions