Commit e41dd068 by Vladislav Ivanishin Committed by Vladislav Ivanishin

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
parent 0bd65f4f
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment