Debug: Add default .gdbinit file
This commit is contained in:
parent
872a1216a7
commit
f4ca4edc64
|
|
@ -1,5 +1,6 @@
|
||||||
^CVS/
|
^CVS/
|
||||||
/CVS/
|
/CVS/
|
||||||
|
\.gdbinit$
|
||||||
\.git/
|
\.git/
|
||||||
\.svn/
|
\.svn/
|
||||||
\.(bak|old)/
|
\.(bak|old)/
|
||||||
|
|
|
||||||
|
|
@ -249,9 +249,9 @@ what made a <e####> line in the tree dumps):
|
||||||
|
|
||||||
To print a node:
|
To print a node:
|
||||||
|
|
||||||
p nodep->dumpCout()
|
call nodep->dumpCout() # aliased to "pn" in .gdbinit
|
||||||
p nodep->dumpTreeCout()
|
call nodep->dumpTreeCout() # aliased to "pnt" in .gdbinit
|
||||||
p nodep->dumpPtrsCout()
|
call nodep->dumpPtrsCout() # aliased to "pnp" in .gdbinit
|
||||||
|
|
||||||
=head1 DISTRIBUTION
|
=head1 DISTRIBUTION
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
source ../src/.gdbinit
|
||||||
Loading…
Reference in New Issue