diff options
author | Vladislav Ivanishin <vlad@ispras.ru> | 2019-07-23 14:05:14 +0000 |
---|---|---|
committer | Vladislav Ivanishin <vlad@gcc.gnu.org> | 2019-07-23 14:05:14 +0000 |
commit | d894bafc5b744e8e21cfbd0c254f982a6efc718a (patch) | |
tree | 13ff40940e0aa852569989002832a54a996425ba /gcc | |
parent | e41dd06873b728bc62296fca39c526608c897ae2 (diff) | |
download | gcc-d894bafc5b744e8e21cfbd0c254f982a6efc718a.zip gcc-d894bafc5b744e8e21cfbd0c254f982a6efc718a.tar.gz gcc-d894bafc5b744e8e21cfbd0c254f982a6efc718a.tar.bz2 |
gdbinit.in: add reload-gdbhooks (rh) command
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gdbinit.in | 10 |
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 |