diff --git a/bin/verilator b/bin/verilator index 901a9f0e3..3a2a81734 100755 --- a/bin/verilator +++ b/bin/verilator @@ -87,6 +87,9 @@ if ($opt_gdb) { # Generic GDB interactive run (("gdb"||$ENV{VERILATOR_GDB}) ." ".verilator_bin() + # Note, uncomment to set breakpoints before running: + # ." -ex 'break main'" + # Note, we must use double-quotes ("run ") # and not single ('run ') below. Bash swallows # escapes as you would expect in a double-quoted string.