make gdbhooks.py idempotent with respect to reloading

gcc/ChangeLog:

2019-07-23  Vladislav Ivanishin <vlad@ispras.ru>

	* gdbhooks.py: Pass replace=True to
	gdb.printing.register_pretty_printer.

From-SVN: r273737
This commit is contained in:
Vladislav Ivanishin 2019-07-23 13:57:43 +00:00 committed by Vladislav Ivanishin
parent 0bd65f4fde
commit e41dd06873
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
* gdbhooks.py: Pass replace=True to
gdb.printing.register_pretty_printer.
2019-07-23 Richard Biener <rguenther@suse.de>
PR debug/91231

View file

@ -605,7 +605,8 @@ def build_pretty_printer():
gdb.printing.register_pretty_printer(
gdb.current_objfile(),
build_pretty_printer())
build_pretty_printer(),
replace=True)
def find_gcc_source_dir():
# Use location of global "g" to locate the source tree