gdb: address review comments of previous series
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 9 Dec 2020 19:49:02 +0000 (14:49 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 9 Dec 2020 19:49:15 +0000 (14:49 -0500)
commit6ad368b8caf6650852983fc23814c9f393da0439
tree8e0d02c1ef4fce05c41b6ed9ef8f0f012f4714db
parent5b56203a7cadd545b33713e98e274e582242e090
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
gdb/ChangeLog
gdb/gdbtypes.c