Debug: Add default .gdbinit file

This commit is contained in:
Wilson Snyder 2012-03-02 20:59:47 -05:00
parent 872a1216a7
commit f4ca4edc64
4 changed files with 32 additions and 3 deletions

View File

@ -1,5 +1,6 @@
^CVS/
/CVS/
\.gdbinit$
\.git/
\.svn/
\.(bak|old)/

View File

@ -249,9 +249,9 @@ what made a <e####> line in the tree dumps):
To print a node:
p nodep->dumpCout()
p nodep->dumpTreeCout()
p nodep->dumpPtrsCout()
call nodep->dumpCout() # aliased to "pn" in .gdbinit
call nodep->dumpTreeCout() # aliased to "pnt" in .gdbinit
call nodep->dumpPtrsCout() # aliased to "pnp" in .gdbinit
=head1 DISTRIBUTION

27
src/.gdbinit Normal file
View File

@ -0,0 +1,27 @@
# DESCRIPTION: Verilator: GDB startup file with useful defines
#
# Copyright 2012-2012 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
define pn
call $arg0->dumpCout()
end
document pn
Verilator: Print single AstNode NODEP
end
define pnt
call $arg0->dumpTreeCout()
end
document pnt
Verilator: Print AstNode NODEP's tree
end
define pnp
call $arg0->dumpPtrsCout()
end
document pnp
Verilator: Print AstNode NODEP internal pointers
end

1
test_regress/.gdbinit Normal file
View File

@ -0,0 +1 @@
source ../src/.gdbinit