aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gdbhooks.py')
-rw-r--r--gcc/gdbhooks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py
index 09802c9..54056b3 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