[PATCH] gdbinit.in: add reload-gdbhooks (rh) command gcc/ * gdbinit.in (reload-gdbhooks): New command with an attached doc string. (rh): New alias for it. --- gcc/gdbinit.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index cec55f86749..2454441f859 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -216,6 +216,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 -- 2.22.0