Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 30 May 2016 12:11:43 +0000 (14:11 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 30 May 2016 12:11:43 +0000 (14:11 +0200)
commit3a2b436ae9958a1029545c03201b7223ff33c150
tree938cd18f7ab5c1d0d7105998d285d55596cffd4e
parent2adb06b571adc7c56702e2f57fa53db97d69c0fa
Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum

Make the code (maybe) more readable + primarily prepare it for [patch 2/2]
enum extension.

This change should have no code change impact.

gdb/ChangeLog
2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>

Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
* dwarf2read.c (enum pc_bounds_kind) New.
(dwarf2_get_pc_bounds): Use it in the declaration.
(process_psymtab_comp_unit_reader): Adjust caller.  Rename has_pc_info
to cu_bounds_kind.
(read_func_scope, read_lexical_block_scope, read_call_site_scope):
Adjust callers.
(dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
(dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
gdb/ChangeLog
gdb/dwarf2read.c