aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gdbinit.in10
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 06d2e4f..87c56e7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
+ * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
+ (rh): New alias for it.
+
+2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
+
* gdbhooks.py: Pass replace=True to
gdb.printing.register_pretty_printer.
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 440fd25..42302ae 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -219,6 +219,16 @@ is emitted (as opposed to those warnings that are suppressed by
command-line options).
end
+define reload-gdbhooks
+python import imp; imp.reload(gdbhooks)
+end
+
+document reload-gdbhooks
+Load the gdbhooks.py module again in order to pick up any changes made to it.
+end
+
+alias rh = reload-gdbhooks
+
# Define some macros helpful to gdb when it is expanding macros.
macro define __FILE__ "gdb"
macro define __LINE__ 1