gdb/dwarf: add some logging in dwarf2/read.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 21 Jan 2021 01:57:49 +0000 (20:57 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 21 Jan 2021 01:57:49 +0000 (20:57 -0500)
commit17e593e9668c000f2bfa88d11a8957dfc52297dd
tree5bad55a82098f1247412587aae6cc943b689cba5
parent6bd434d6caa4c08a5ea87fe327d802c1e00a5c5e
gdb/dwarf: add some logging in dwarf2/read.c

This patch adds some logging that helped me diagnose the problems fixed
later in this series.  I'm thinking that if it helped me now, it could
help somebody else (or myself) in the future, so I might as well add
them for real.

They can happen quite frequently and be noisy, so I used
dwarf_read_debug_printf_v for them, which means they'll only print if
`set debug dwarf-read` is >= 2.

gdb/ChangeLog:

* dwarf2/read.c (follow_die_offset): Add logging.
(dwarf2_per_objfile::age_comp_units): Add logging.

Change-Id: I7483c0b05c37bc9710b9b5d40e272935bc010863
gdb/ChangeLog
gdb/dwarf2/read.c