From: Vladislav Ivanishin Date: Tue, 23 Jul 2019 14:05:14 +0000 (+0000) Subject: gdbinit.in: add reload-gdbhooks (rh) command X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d894bafc5b744e8e21cfbd0c254f982a6efc718a;p=gcc.git gdbinit.in: add reload-gdbhooks (rh) command gcc/ChangeLog: 2019-07-23 Vladislav Ivanishin * gdbinit.in (reload-gdbhooks): New command with an attached doc string. (rh): New alias for it. From-SVN: r273738 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06d2e4f97a2..87c56e77e0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-23 Vladislav Ivanishin + + * gdbinit.in (reload-gdbhooks): New command with an attached doc string. + (rh): New alias for it. + 2019-07-23 Vladislav Ivanishin * gdbhooks.py: Pass replace=True to diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 440fd2586f1..42302aecfe3 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