]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gdbinit.in: add reload-gdbhooks (rh) command
authorVladislav Ivanishin <vlad@ispras.ru>
Tue, 23 Jul 2019 14:05:14 +0000 (14:05 +0000)
committerVladislav Ivanishin <vlad@gcc.gnu.org>
Tue, 23 Jul 2019 14:05:14 +0000 (14:05 +0000)
gcc/ChangeLog:

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

* gdbinit.in (reload-gdbhooks): New command with an attached doc string.
(rh): New alias for it.

From-SVN: r273738

gcc/ChangeLog
gcc/gdbinit.in

index 06d2e4f97a2ce49d2dd12d4e5310653e5c125e4a..87c56e77e0e12cd5b08d4f97fa26c678db342743 100644 (file)
@@ -1,3 +1,8 @@
+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
index 440fd2586f1ce8d0637a28c5664c1b6428174286..42302aecfe3c57f7e129ab11e767550f5820f183 100644 (file)
@@ -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