From: Vladislav Ivanishin Date: Tue, 23 Jul 2019 13:57:43 +0000 (+0000) Subject: make gdbhooks.py idempotent with respect to reloading X-Git-Tag: misc/cutover-git~3830 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e41dd06873b728bc62296fca39c526608c897ae2;p=thirdparty%2Fgcc.git make gdbhooks.py idempotent with respect to reloading gcc/ChangeLog: 2019-07-23 Vladislav Ivanishin * gdbhooks.py: Pass replace=True to gdb.printing.register_pretty_printer. From-SVN: r273737 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 41058783c0b3..06d2e4f97a2c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-23 Vladislav Ivanishin + + * gdbhooks.py: Pass replace=True to + gdb.printing.register_pretty_printer. + 2019-07-23 Richard Biener PR debug/91231 diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index 09802c9ce244..54056b34c21a 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -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