gdb: convert "set debug dwarf-read" to new style
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 12 Nov 2020 19:43:58 +0000 (14:43 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 12 Nov 2020 19:44:16 +0000 (14:44 -0500)
commit6f738b01fc6e2d4831a9cd03d91eee82d785d638
tree4b305a7b5f0e6bec008a2b2daae0e42394424fd0
parent1de037a0c526a3e034ca11020cf4dd89785487c3
gdb: convert "set debug dwarf-read" to new style

Add dwarf_read_debug_printf and dwarf_read_debug_printf_v macros and use
them throughout dwarf2/read.c.  The second one is used for "verbose"
prints, when the value of "set debug dwarf-read" is >= 2.

gdb/ChangeLog:

* dwarf2/read.c (dwarf_read_debug_printf,
dwarf_read_debug_printf_v): New macros, use throughout the file.

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